運行腳本后報錯:
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下載地址:
https://pan.baidu.com/s/1jHJF2Lo