Xcrun: Error: Unable to Find Utility "Packageapplication", Not a Developer Tool or in Path - Since Updating Xcode

What's the replacement for Xcode's PackageApplication?

Apparently there is no need to use any other tool, and it's also not necessary to change the process that leads to the *.app package (in other words: no need to use xcodebuild -exportArchive).

All we have to do, is to zip that *.app package:

pushd "/build"
mkdir ./Payload
cp -R "$PATH_TO_SIGNED_APP_PACKAGE.app" ./Payload
zip -qyr MyApp.ipa ./Payload
rm -r ./Payload
popd

Note:

  1. Jump into the target directory, here /build. This ensures we don't have the full path in the zip archive later.
  2. Create a folder named Payload (important, this cannot vary)
  3. Copy the *.app bundle to the Payload folder
  4. Zip the folder and instead of *.zip use *.ipa as extension
  5. Jump back to where you came from

Delphi PAClient Error: E0776 xcrun: error: unable to find utility PackageApplication, not a developer tool or in PATH

What finally fixed this was downloading a fresh copy of Xcode 9.4.1 and then deploying a blank app from Xcode - which is apparently essential. Right after that, Delphi created an .ipa file for the application store.

{NativeScript} xcrun: error: unable to find utility PackageApplication, not a developer tool or in PATH -- Unable to run app on device

This was an error caused by an update of XCode. You can update your global version of NativeScript to fix now.

npm install -g nativescript


Related Topics



Leave a reply



Submit