Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 524
Kickar Avatar asked Mar 29 '17 15:03

Kickar


2 Answers

Upgrade your ios platform in config.xml:

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

Then reinstall your platform:

rm -rf platforms/
cordova prepare
like image 90
Guillaume Girou Avatar answered Sep 28 '22 19:09

Guillaume Girou


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.

like image 35
Brian Knoblauch Avatar answered Sep 28 '22 19:09

Brian Knoblauch