做IOS自动化测试的时,运行Appium提示:
Error: xcode-select could not find xcode. Path '/Users/xxx/Downloads/Xcode.app/Contents/Developer' does not exist.
后来百度找到原因:http://blog.sina.com.cn/s/blog_605409770102uwxc.html
xcode路径不对,可能是我之前已经安装过Xcode的,后来又安装一遍,就不在默认的路径里,所以找不到。
解决方法
1、终端使用命令:xcode-select --print-path 查看xcode的路径
2、sudo xcode-select -switch /Applications/Xcode.app/ 将你的Xcode的路径修改到/Applications/Xcode.app/目录下
3、xcode-select --print-path 验证Xcode的目录
4、重新运行Appium,成功