I want to launch iPhone simulator from command line.
until now I have been using the below command
/Applications/Xcode.app/Contents/Developer
To boot a simulator:
xcrun simctl boot "iPhone X"
It will boot as a headless mode. To make the simulator visible:
open -a Simulator
xcrun simctl boot is simpler than xcrun instruments -w. instruments requires the full device name.
xcrun simctl boot
xcrun instruments -w
instruments