升級到Xcode8.3.2之后,打包提示
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
原因是新版的Xcode里少了"PackageApplication"
解決方法:
- 拷貝一個 "PackageApplication"到Xcode的 目錄下:
/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