I met this error when I run the command "git clone xxx"
dyld: library not loaded: @ rpath / libswiftCore.dylib Link to: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild Reason: image not found git: error: cannot find xcodebuild, please make sure the path to the Xcode folder is specified correctly! git: error: you can set the path to the Xcode folder using / usr / bin / xcode-select -switch
Then run the command
xcode-select -p
pointing to /Applications/Xcode.app/Contents/Developer
After running the sudo xcode-select -switch /Library/Developer/CommandLineTools
this points to /Library/Developer/CommandLineTools
source share