报错内容如下:
未能找到金属编译器安装的Xcode。请安装Xcode并运行Xcode.app来接受协议,或确保激活的开发者目录设为当前的Xcode安装(使用xcode-select)。
原因:Xcode安装目录和appium所检测的路径不同。
解决办法:
1.通过命令查看自己的Xcode安装路径
192:~ xxx$ xcode-select -p
/Library/Developer/CommandLineTools
2.更改Xcode安装路径
192:~ xxx$ sudo xcode-select -s
/Applications/Xcode.app/Contents/Developer
Password:
3.再次查看Xcode安装路径是否修改成功
192:~ xxx$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
4.如果成功,再次启动正常。