I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed?
I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed?
from the desktop: utilities/system information/software/developer -- lists the installed SDK's
The simplest why I found is to run this command line:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
OR, if you have multiple XCode versions:
sudo xcode-select -switch /Applications/Xcode<version_number>.app/Contents/Developer
fastlane isn't able to successfully execute that command so it sounds like that you don't have an Xcode version selected for xcodebuild to run things with. Running the xcode-select command above should do the trick for you ;)
xcode-select --print-path #print your current path Probably this path
/Library/Developer/CommandLineTools
sudo xcode-select --reset #reset to the default command line tools path
xcode-select --print-path# the default should this path
/Applications/Xcode.app/Contents/Developer
xcrun -sdk iphonesimulator --show-sdk-path #the path: /usr/bin/xcrun
#should to print the num of iPhoneSimulator:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator{num}.sdk