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

后端 未结 10 636
暗喜
暗喜 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: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).

提交回复
热议问题