執行指令碼後報錯:
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
後面根據對比發現新版的Xcode少了這個PackageApplication(轉註: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
2句分開執行
最後附上PackageApplication下載地址: