美文网首页iOS程序猿
xcrun: error: unable to find uti

xcrun: error: unable to find uti

作者: _海角_ | 来源:发表于2017-11-22 11:53 被阅读42次

运行脚本后报错:

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

Xcode升级到9.0后 用命令进行打包 提示下面这个错误

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

然后删除原有build文件,重新打包
最后附上PackageApplication下载地址:
链接: https://pan.baidu.com/s/1slG6C2p 密码: vcn4

相关文章

网友评论

    本文标题:xcrun: error: unable to find uti

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