xcode9打包报错:xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PAT

来源:互联网 发布:云南旅游业数据统计 编辑:程序博客网 时间:2024/06/08 13:15

转自:http://blog.csdn.net/itiapp_home/article/details/70241011


卸载8.X版本Xcode,安装最新Xcode9以后,xcrun 命令打包的时候,出现

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/1jIPw0Iy 密码: 4htw


阅读全文
0 0