您的位置:首页 > 运维架构 > Shell

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

2018-02-11 16:34 459 查看
http://blog.csdn.net/kongdeqin/article/details/78050599

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

升级完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


在打包就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: