Kickar
Kickar

Reputation: 163

Cordova iOS: xcrun can't find "PackageApplication" after xcode update

This morning, xcode got updated to version 8.3 on my osx building device.

Since then, when I try to build my iOs app with Cordova, I get the following error at the end of the building process:

 [exec] 
 [exec] ** BUILD SUCCEEDED **
 [exec]
 [exec] xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
 [exec] Error: Error code 72 for command: xcrun with args: -sdk,iphoneos,PackageApplication,-v,[source.app]-o,[destination.ipa]
 [exec] Result 1

I can't seem to get this fixed in my Cordova or Xcode setup. Wouldn't know where to start ;)

Did anyone experience the same issue? Do you have some advise for a solution.

Thank you!

(I'll be happy to buy a beer if you could help me out)

Upvotes: 7

Views: 5704

Answers (5)

Alpan Karaca
Alpan Karaca

Reputation: 968

After you try to build on device using

ionic run ios --device -l -c

Open the project on the xCode without terminating the code you typed

Try to run the project on xCode too and tada. It works on phone with debug on terminal.

Upvotes: 0

Guillaume Girou
Guillaume Girou

Reputation: 136

Upgrade your ios platform in config.xml:

<engine name="ios" spec="~4.3.1" />

Then reinstall your platform:

rm -rf platforms/
cordova prepare

Upvotes: 5

Brian Knoblauch
Brian Knoblauch

Reputation: 21369

There's a cordova-ios PR (#257, now merged - https://github.com/apache/cordova-ios/pull/257) for this issue.

So, updating cordova-ios is the fix.

Upvotes: 2

Oleksandr Poshtaruk
Oleksandr Poshtaruk

Reputation: 2146

We only solution we had is:

  1. Copied from xcode Contents\Developer\Platforms\IPhoneOS.platform\DeviceSupport\10.3 folder
  2. rolled back to xcode 8.2 but put 10.3 back in Contents\Developer\Platforms\IPhoneOS.platform\DeviceSupport\
  3. Packaging start working.

Upvotes: 1

SamDR12
SamDR12

Reputation: 71

This tool has been removed from Xcode 8.3. It was marked as deprecated for a few versions, and now it's sadly gone.

You will need to use xcodebuild and it may be a bit of a pain with Cordova

Upvotes: -1

Related Questions