xcrun:错误:无法找到实用程序“PackageApplication",不是开发人员工具或在 PATH 中 - 自从更新 Xcode [英] xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH - Since updating Xcode

查看:28
本文介绍了xcrun:错误:无法找到实用程序“PackageApplication",不是开发人员工具或在 PATH 中 - 自从更新 Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早上更新了 Xcode,现在 ionic 项目无法部署到设备上.

ionic run ios --device

返回:

** 构建成功 **xcrun:错误:无法找到实用程序PackageApplication",不是开发人员工具或在 PATH 中错误:命令的错误代码 72:带有 args 的 xcrun:-sdk,iphoneos,PackageApplication,-v

不知道如何解决,谷歌搜索返回了很多选项,但没有一个是正确的.

解决方案

Cordova 正在尝试使用 PackageApplication 工具.但它自 Xcode 8.3 起被删除.(感谢@guyromb

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

ionic run ios --device

Returns:

** BUILD SUCCEEDED **


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

Error: Error code 72 for command: xcrun with args: -sdk,iphoneos,PackageApplication,-v

No idea what to do to fix, Googling returns lots of options but none correct.

解决方案

Cordova is trying to use PackageApplication tool. But it was removed since Xcode 8.3. ( Thanks @guyromb for this )

For those who are coming from an error from Jenkins/fastlane here is a temporary fix till jenkins xcode plugin gives a fix on this

If you have Xcode 8.2.1 or any version below 8.3, copy PackageApplication script from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

OR you can Download from this link - https://gist.github.com/anonymous/48f3e4c5ae25313dc0fe10d9ec50c3fc

Go to finder - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

paste the copied/downloaded above file here.

这篇关于xcrun:错误:无法找到实用程序“PackageApplication",不是开发人员工具或在 PATH 中 - 自从更新 Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆