1、找到要切换的xcode版本的路径
2、切换xcode路径的方法为:sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer(xcode路径)
3、查看切换后的xcode版本路径:
xcode-select -print-path