webDriverAgent Test到iphone遇到的坑

Posted Dobyy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webDriverAgent Test到iphone遇到的坑相关的知识,希望对你有一定的参考价值。

1,<<< could not lunch "webDriverAgentRunner" >>>

技术分享解决方法: 这个问题,打开手机设置-描述文件,信任就可以了.
 
2  <<<The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.>>>
 
 
2017-04-19 16:45:53.083691 XCTRunner[10203:3854208] Running tests...
2017-04-19 16:45:53.365583 XCTRunner[10203:3854208] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2017-04-19 16:45:53.366908 XCTRunner[10203:3854208] (dlopen_preflight(/var/containers/Bundle/Application/827F554F-55B7-4B5B-9F4C-75A14EB3A143/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/RoutingHTTPServer.framework/RoutingHTTPServer
  Referenced from: /private/var/containers/Bundle/Application/827F554F-55B7-4B5B-9F4C-75A14EB3A143/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
  Reason: no suitable image found.  Did find:
/private/var/containers/Bundle/Application/827F554F-55B7-4B5B-9F4C-75A14EB3A143/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer: code signature invalid for ‘/private/var/containers/Bundle/Application/827F554F-55B7-4B5B-9F4C-75A14EB3A143/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer‘
)
 
这个问题根据appium issues的解答:
 
 
解决方法: 点击你的project,选择General, 左边框框的TARGETS, 逐一都把automatically中的team标上, 然后重新test一下,得到上面的信息就可以了
 

 
3 选择automatically竟然create certificate fail.
 
这里本人遇到两种情况
@1 点击选好你的team,也就是你的appid还是报错, 这个时候再切回去Build settings  找到你的bunldeID再改一遍,切记别存在下划线等作死行为
@2  第二种情况就是我作死过,使用了下划线去改bunlde ID
 
 
其余的坑如果有遇到,我还会补上. 虽然我是测试狗,我也独爱解‘bug‘的 

以上是关于webDriverAgent Test到iphone遇到的坑的主要内容,如果未能解决你的问题,请参考以下文章

基于Appium1.6.X的WebDriverAgent编译安装

iOS真机无法安装webdriveragent-runner

iOS 真机调试如何安装 WebDriverAgent

运行Appium服务时,启动不了WebDriverAgent的解决方法

Mac系统之IOS自动化:WebDriverAgent安装

无法启动 WebDriverAgent:无法将命令代理到远程服务器。原始错误:错误:连接 ECONNREFUSED 127.0.0.1:8100