Xcode升級到8.3后 用命令進行打包 提示下面這個錯誤
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
后面根據(jù)對比發(fā)現(xiàn)新版的Xcode少了這個PackageApplication
先去找個舊版的Xcode里面copy一份過來
放到下面這個目錄:
/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/1NYU59k7yEaBMXBFjq6jnzQ 提取碼: 4e3n