xcrun: error: unable to find utility “PackageApplication”, not a developer tool or in PATH - Since updating Xcode

后端 未结 10 633
暗喜
暗喜 2020-12-08 06:42

Updated Xcode this morning and now ionic project wont deploy to a device.

ionic run ios --device

Returns:

** BUILD SUCCEEDE         


        
相关标签:
10条回答
  • 2020-12-08 07:26

    I found a workaround to solve this using command line, with device connected on your mac: ionic build ios --device ios-deploy --noninteractive --debug --bundle build/device/YOURAPP.app

    After this, stop debug using Ctrl C, and your app will be working on your device.

    Hope work for you guys.

    0 讨论(0)
  • 2020-12-08 07:27

    The is caused by the deprecated PackageApplication. If you're using the remotebuild tool to run from Windows, it will be solved when the remotebuild bug has been fixed: https://github.com/Microsoft/remotebuild/issues/26

    0 讨论(0)
  • 2020-12-08 07:29

    I've just come across this and my solution was to remove the iOS platform from the project:

    ionic platform rm ios
    

    Then add it back in again

    ionic platform add ios
    

    I needed to run an initial build for it to fail with no signing set, so opening up the project in Xcode to just fix that. After that, building via the ionic cli worked as expected. I am guessing that re-adding the platform pulled in a new version of cordova-ios.

    Update: I had only started on this project and created the base project from the blank template. I have Xcode 8.3.1 installed and using Ionic 3 (still with the --v2 switch with ionic cli).

    0 讨论(0)
  • 2020-12-08 07:30

    Another solution is to downgrade XCode.

    Here if the explanation on how to uninstall current XCode.

    And here you can download XCode 8.2.

    0 讨论(0)
提交回复
热议问题