xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
Posted lxlx1798
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH相关的知识,希望对你有一定的参考价值。
Xcode升级到8.3后 用命令进行打包 提示下面这个错误
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
后面根据对比发现新版的Xcode少了这个PackageApplication
先去找个旧版的Xcode里面copy一份过来
放到下面这个目录:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
然后执行命令
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
最后附上PackageApplication下载地址:
链接:https://pan.baidu.com/s/1ihh9j70KLAlHICEMooVlCQ 密码:cvq7
以上是关于xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH的主要内容,如果未能解决你的问题,请参考以下文章
File upload error - unable to create a temporary file
Android异常篇 Error: Execution failed for task ‘:app:clean‘. Unable to delete file
Error message: Failed to spawn: unable to access process with pid 413 due to system restrictions; tr
error: Unable to find vcvarsall.bat