Last active
August 29, 2025 19:44
-
-
Save leviathan/0c806022cd83d0a51a15c92b6b53db49 to your computer and use it in GitHub Desktop.
xcrun cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Removes old simulators, which xcode no longer uses | |
| $ xcrun simctl delete unavailable | |
| // xcrun allows you to invoke developer tools from the terminal. | |
| // In this case simctl, which is a command line utility to control the iOS Simulator. | |
| // simctl has the subcommand: openurl to open URLs in a given simulator | |
| // most of the cases you would like to open on the current booted device, so you add | |
| // the flag booted or type the simulator id. | |
| $ xcrun simctl openurl booted "http://google.com" | |
| // Print the UUID of the device in your simulator | |
| $ xcrun simctl list | egrep '(Booted)' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is very useful. Do you know how to open the url on a real device? I was trying
xcrun devicectl device process launch --device <device-udid> com.apple.mobilesafari --payload-url http://www.google.combut no luck