Xcode 11.3.1 + iOS 13.3.1 Build WDA 成功,但 Testing 時失敗

pythonCN發表於2020-03-06

環境版本
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失敗的問題,求助大佬們的幫助!!!

相關文章