sh -c ‘/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk

卸载了xcode后,重新安装,使用时,出现以下报信息:

/xcrun:1:1: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -find pngcrush 2> /dev/null' failed with exit code 17920: (null) (errno=No such file or directory)

打开xcode的偏好设置项:

Locations->Command line Tools选择一下

如果没有,就去苹果官方开发者网站下载一下对应的命令行安装一下:

https://developer.apple.com/download/more/

安装完成后,再按照第二步选择一下命令行即可。

或者使用以下命令亦行:sudo xcode-select --switch /Library/Developer/CommandLineTools/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章