In case you get the following error:
ERROR: ERROR: Failed to determine SDK version for iphonesimulator
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: unable to lookup item 'SDKVersion' in SDK 'iphonesimulator'
First try
xcode-select -p
If it is not: /Applications/Xcode.app/Contents/Developer
, run this:
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer <br>
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH"