MacOS 更新XCode后 Terminal使用Git报错解决方法
更新了XCode后,在Terminal使用git,发现报错:
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/
最后更新于 2019-11-10 16:23:05 并被添加「」标签,已有 3628 位童鞋阅读过。
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处