Xcode5.1 xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

100grams picture 100grams · Mar 13, 2014 · Viewed 11.6k times · Source

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?

Answer

Bart van Kuik picture Bart van Kuik · Dec 8, 2016

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