您的位置:首页 > 移动开发

appium 遇到 xcodebuild failed with code 65 的解决方法

2018-01-15 10:45 2326 查看
运行时提示

Unable to launch WebDriverAgent because of xcodebuild failure:xcodebuild failed with code 65

 

解决方法:

1开发者账号:

使用AppiumDesktop启动Appium

AppiumDesktop中加入 xcodeOrgId 和xcodeSigningId 字段




TeamID 在 https://developer.apple.com/account/ 里左侧的 Membership 中找到



使用命令启动Appium

在执行测试文件的desired_capabilities配置中添加相关字段

{

       "xcodeOrgId":
"<TeamID>",

       "xcodeSigningId":
"iPhoneDeveloper"

}

仅第一次需要以上字段。

 

2免费Apple ID账号

在appium的出错日志中找到WebDriverAgent的位置,打开进行签名

[XCUITest] Using WDA path:
'/usr/local/lib/node_modules/appium/node_modules/.2.23.1@appium-xcuitest-driver/WebDriverAgent'

更改 WebDriverAgent 的BundleID ,原来是com.facebook.WebDriverAgentLib,我建议把facebook
8e7e
改为你的名字或公司的名字,这里还有个坑,改完这个之后发现还是提示有错误,最后在BuildSettings里的Product
Bundle Identifier里再修改一下。




点击上面菜单栏的Product-> Test
运行
第一次运行会提示没有权限,打开真机上的设置App,通用 ->
描述文件与设备管理,找到你的邮箱,选择信任,再继续执行test,成功启动后就说明可以了,执行完毕后点击停止。

没有了,打开appium测试吧

免费 Apple ID 账号7天后会过期,需要重新签名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐