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

升级到Xcode8.3.2之后,打包提示

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

原因是新版的Xcode里少了"PackageApplication"

解决方法:

  1. 拷贝一个 "PackageApplication"到Xcode的 目录下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
  1. 分别执行如下命令
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容