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'的 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM