I want to run the simulator from the command line. Is there any way to find the simulator path through command line. Apple frequently changes the simulator location like
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator
/Applications ........ / IOS simulato....
Is there any way to find the simulator path from terminal. ?
Here are two suggestions:
You can use
xcode-selectto print the path to Xcode:You can use
xcrunto find the path of a xcodebuild tool in the iphonesimulator SDK, then deducting the path from here: