運(yùn)行腳本后報(bào)錯(cuò):
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
后面根據(jù)對(duì)比發(fā)現(xiàn)新版的Xcode少了這個(gè)PackageApplication(轉(zhuǎn)注:PackageApplication在前幾個(gè)版本已被標(biāo)識(shí)為廢棄,在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
2句分開執(zhí)行
最后附上PackageApplication下載地址:
https://pan.baidu.com/s/1jHJF2Lo
本文轉(zhuǎn)載自別人