xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
1、复制一份packageappliation 到下面目录
/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/
2、执行命令
sudo code-select -switch /applications/xcode.app/contens/developer/
chmod +x /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/packageappliation
(下载地址:https://pan.baidu.com/s/1jHJF2Lo)