Skip to content

Instantly share code, notes, and snippets.

@shirlymanor
Last active August 24, 2017 22:02
Show Gist options
  • Save shirlymanor/1730e241a811576acedec93ee6675a63 to your computer and use it in GitHub Desktop.
Save shirlymanor/1730e241a811576acedec93ee6675a63 to your computer and use it in GitHub Desktop.
Instructions in case you encounter with an error on iOS

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment