美文网首页收藏
命令打包报错 xcrun: error: unable to f

命令打包报错 xcrun: error: unable to f

作者: 浅y | 来源:发表于2018-01-09 16:46 被阅读6次

没次升级xcode 终端命令打包的时候都会报错:

xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

原因是缺少了PackageApplication,据说在8.3版本彻底移除了
先去找个旧版的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下载地址:

下载地址

相关文章

网友评论

    本文标题:命令打包报错 xcrun: error: unable to f

    本文链接:https://www.haomeiwen.com/subject/ffhgnxtx.html