To manage iOS simulator: “xcrun simctl”

i have encountered with a simulator control command line lately.

this line provides us with ability to manage simulator. Like commands:

>> “xcrun simctl help”

to get more information about sub commands such as ‘openurl’ :

>> “xcrun simctl openurl help

Sample command for adding media to simulator:

>>xcrun simctl addmedia booted /path/to/images/*

Sample command for opening url in simulator:

>>xcrun simctl openurl booted

openurl command may be useful to try out universal links on simulator easily.

booted’ command means find the booted simulator and run the command on this simulator.

There are other commands which may be useful for you, just say ‘help’.

Have fun.