Xcode升級(jí)到8.3后 用命令進(jìn)行打包 提示下面這個(gè)錯(cuò)誤
xcrun:error: unabletofind utility"PackageApplication",nota developer toolorinPATH
后面根據(jù)對(duì)比發(fā)現(xiàn)新版的Xcode少了這個(gè)PackageApplication
先去找個(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下載地址:
鏈接: https://pan.baidu.com/s/1jIPw0Iy 密碼: 4htw