1. 程式人生 > >xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

view chmod baidu aid log nts pac mod ica

Xcode升級到8.3後 用命令進行打包 提示下面這個錯誤

xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

後面根據對比發現新版的Xcode少了這個PackageApplication
先去找個舊版的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

最後附上PackageApplication下載地址:
鏈接:https://pan.baidu.com/s/1ihh9j70KLAlHICEMooVlCQ 密碼:cvq7

xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH