坑
升级 Xcode 或者系统的时候遇到的 Git 使用不了的问题:
dyld: Library not loaded: @rpath/libswiftCore.dylibReferenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuildReason: image not foundgit: 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/
Flutter doctor
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developersudo xcodebuild -runFirstLaunch
