在准备cordova环境的时候通过cordova requirements
查看情况,照着下面的帖子安装Xcode之后重启电脑,创建一个Cordova项目之后,再次使用**cordova requirements
**发现Xcode没有安装成功–
解决方案:
使用下面的命令将路径切换到Xcode的目录下:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
之后在使用cordova requirements
发现已经安装成功