Appium APPium 搭建过程中遇到问题解决方法

李亚楠 · 2018年06月13日 · 700 次阅读
  1. xcode-select: error: tool 'xcodebuild' requires Xcode 错误的解决办法: 运行 xcodebuild 命令行报错如下: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance 原因:电脑中安装多个 Xcode 导致没有找到我们正在使用的 Xcode 路径,到/Library/Developer/CommandLineTools 路径下查看后发现路径果然不对 解决方法:sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/( 切换到自己的 Xcode 路径,问题解决)
  2. Xcodebuild 所要使用的 uuid 的获取方法: idevice_id -l
  3. 2018-06-15 18:40:12.304 xcodebuild[72194:14164469] Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.apple.test.WebDriverAgentRunner-Runner" UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner} 因为安装的 WebDriverAgentRunner-Runner app 没有验证,验证方法:通用 -- 描述文件与设备管理 -- 开发者应用 -- 验证应用,验证完后重新执行命令
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册