Search code examples
xcodedelphidelphi-10.2-tokyo

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


Delphi 10.2.3 deploying to Application Store gets this error:

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

The recommended solution in this question did not solve the problem. xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH - Since updating xCode

I downloaded the PackageApplication script, placed it inside of Xcode.app, and ran the chmod command. chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

The error persists.

Where does Delphi and/or Xcode expect this PackageApplication script to be?


Solution

  • 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.