解决办法
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
导入PackageApplication
然后执行命令:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
如遇到permission denied
执行$ sudo chmod -R 777 某一目录
-R 是指级联应用到目录里的所有子目录和文件
777 是所有用户都拥有最高权限