更新了xcode Terminal报错 Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

更新xcode 或者操作系统报错解决方式:
报错信息如下:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Reason: image not found
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

 

 

亲测解决方案有效:

sudo xcode-select --switch /Library/Developer/CommandLineTools/

posted @ 2020-03-25 14:30  Louiezhou  阅读(1019)  评论(0编辑  收藏  举报