iOS 测试 Xcode 11.3.1 + iOS 13.3.1 Build WDA 成功,但 Testing 时失败

pythonCN · 2020年03月06日 · 最后由 pythonCN 回复于 2020年05月29日 · 2402 次阅读

环境版本
Xcode 版本:11.3.1
iPhone X:13.3.1
WDA:2.7.4 https://github.com/appium/WebDriverAgent.git

手机端已经成功 Build,但在 Testing 时报错,日志如下:
WebDriverAgentRunner-Runner.app (6578) encountered an error (Failed to load the test bundle. (Underlying error: 未能载入软件包 “WebDriverAgentRunner”,因为它已损坏或丢失必要的资源。. 软件包已损坏或丢失必要的资源。. dlopen_preflight(/var/containers/Bundle/Application/CCC21F03-BD8D-441C-BA7E-BAE865225ABA/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): no suitable image found. Did find:
/var/containers/Bundle/Application/CCC21F03-BD8D-441C-BA7E-BAE865225ABA/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner: code signature invalid for '/var/containers/Bundle/Application/CCC21F03-BD8D-441C-BA7E-BAE865225ABA/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner'
))

我换了一部 iPhone7 11.3.1 版本的手机后,相同的 Xcode 和 WDA,成功 Build 且 Testing 成功,正常执行自动化脚本;目前不知道在 iOS 13.3.1 版本如何解决 Testing 失败的问题,求助大佬们的帮助!!!

最佳回复
共收到 10 条回复 时间 点赞
cool 回复

换个 ios 版本😂

遇到同一个问题,被折腾的要死😂

sheldon0824 回复

🍻 想法一样,不想继续折腾了,等下一版本

chenbin1996-9 回复

没更新 ios 的版本了,暂时使用 11.1.3 版本。没有企业账号的苦主,只能羡慕了

不光是 wda 会 test fail,其他一些 app 也会失败。改用企业账户可以正常运行,另外该 bug 已在 ios 13.4 的 beta 3 版本修复

我也是遇到了这个问题。然后同样的 wda 和 xcode、macos,换了 iOS 12.3 就成功了。折腾了我一天。等下一个 iOS 版本修复吧,
github 上面这么说的:https://github.com/appium/appium/issues/13927

Install the beta profile on your test device and install iOS 13.4 beta 3 or higher.
Wait for iOS 13.4 to be released.
Use a non-Personal Team provisioning profile. Personal Team provisioning profile says "Personal Team" in the Xcode build settings Runner Target > General > Signing and Capabilities > Team dropdown.
Run in the simulator.
Test on a iOS device running 13.3 or lower.

TD 回复

嗯,确实有问题,WDA 暂时没解决

恒温 回复

嗯,就只能坐等大神更新了🍻

可能是这个 WDA 不支持 13.3.1 的版本,我之前遇到过另外一个 WDA 报这个错误,你可以去这个 git 项目里面询问一下支持的版本

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册