Skip to content

Instantly share code, notes, and snippets.

@leviathan
Last active August 29, 2025 19:44
Show Gist options
  • Select an option

  • Save leviathan/0c806022cd83d0a51a15c92b6b53db49 to your computer and use it in GitHub Desktop.

Select an option

Save leviathan/0c806022cd83d0a51a15c92b6b53db49 to your computer and use it in GitHub Desktop.
xcrun cheat sheet
// 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)'
@IshanG97
Copy link

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.com but no luck

@leviathan
Copy link
Author

@IshanG97 no, I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment