沒次升級(jí)xcode 終端命令打包的時(shí)候都會(huì)報(bào)錯(cuò):
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
原因是缺少了PackageApplication,據(jù)說在8.3版本徹底移除了
先去找個(gè)舊版的Xcode里面copy一份過來熊经,放到下面這個(gè)目錄:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
然后執(zhí)行命令
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
最后附上PackageApplication下載地址: