升级到xcode9 shell脚本自动打包失败

来源:互联网 发布:域名注册是免费么? 编辑:程序博客网 时间:2024/06/05 04:15

升级完xcode9 自动打包报:
xcrun: error: unable to find utility “PackageApplication”, not a developer tool or in PATH
Build step ‘Execute shell’ marked build as failure

因为8.3以后把PackageApplication删除了,
一下是我的解决方案
1.https://gist.github.com/anonymous/48f3e4c5ae25313dc0fe10d9ec50c3fc 下载PackageApplication文件
2.、放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin 文件下
3.命令行输入 :
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneO‌​S.platform/Developer‌​/usr/bin/PackageAppl‌​ication or chmod +x /Applications/Xcode-beta.app/Contents/Developer/Platforms/iP‌​honeOS.platform/Deve‌​loper/usr/bin/Packag‌​eApplication

在打包就可以了

阅读全文
0 1
原创粉丝点击