All I want to do is be able to do the same thing as Cmd
+ R
that I'm able to do in Xcode, except from the Terminal. But so far look at multiple stack overflow posts and articles have left me lost.
So far I've been able to run the simulator from the command line:
open -a Simulator --args -CurrentDeviceUDID <UDID for iPhone 7>
But I've been unable to install and launch the application using these commands
xcrun simctl install booted <PATH-TO-APPLICATION-BUNDLE>
xcrun simctl launch booted <BUNDLE-ID-OF-APP-BUNDLE>
I don't know how to find the <PATH-TO-APPLICATION-BUNDLE>
. I'm assuming it's not as easy as just putting the path to the .xcodeproj
...
If anyone could write the steps & specific commands I need to (1) build .xcodeproj
from command line and (2) run the app on the simulator from the command line that would be greatly appreciated!
P.S. I know there are tools like ios-sim that probably make this whole process easier, but I'd like to do it raw (i.e. using Xcode command line tools)