After installing Xcode5.1 with iPhone7.1 sdk I am getting the following error when trying to package my application in the command line:
xcodebuild: error: SDK "iPhoneOS7.1.sdk" cannot be located. xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
I have already installed Xcode command line tools in previous version of Xcode and the upgrade to Xcode5.1 did not remove them. The option to install "command line tools" is not available in Xcode preferences/downloads.
Any ideas how to fix this error?
I got this error when using Carthage. It happened because I first installed the commandline tools, and only afterwards, the full Xcode application. To fix this, I had to run the following command:
$ sudo xcode-select --reset