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

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

在打包就可以了

猜你喜欢

转载自blog.csdn.net/qq_24459491/article/details/79311716