how to set default device in iOS simulator from command line how to set default device in iOS simulator from command line jenkins jenkins

how to set default device in iOS simulator from command line


You can use xcrun to open your device

xcrun instruments -w "iPhone 6 (8.4 Simulator)"

If you want to know all devices installed

xcrun instruments -s

If you need to build and install some app use.

xcodebuild -sdk iphonesimulator8.4 -arch i386 install DSTROOT=~/YourAppxcrun simctl install booted ~/YourApp/Applications/YourApp.app


You can choose the device that is booted when the simulator launches by passing it on the command line. See Xcode 6 - Launch simulator from command line


Yes as mentioned this is a duplicate.

But to answer your question,

You can use the instruments to launch the simulator of your choice. For Ex:

xcrun instruments -w "iPhone 6 (8.2 Simulator)"

"From the screen shot it seems like you are already on iOS 8. "