配置webdriveragent報的錯誤解決
錯誤1:Building for iOS Simulator, but the linked framework 'CocoaAsyncSocket.framework' was built for tvOS + tvOS Simulator.
解決:因為我是只測試IOS,所以直接刪掉了,刪掉后默認就加載的是IOS的了。
當然也可以調整加載順序來解決。
錯誤2:appium1.15.1 + xcode11.4 wda build的時候能成功,但是test 的時候 test failed,報錯 t = 0.01s Assertion Failure:
解決:https://github.com/appium/WebDriverAgent/pull/286/files#diff-0a411c2001355ce1da2ec9e079d5fc81
1、 PrivateHeaders/XCTest/XCTestCase.h 文件下面新增第21行的代碼
2、WebDriverAgentLib/Utilities/FBFailureProofTestCase.m 文件里,刪除第26行代碼,增加第26到35行代碼
然后再test就成功了。
錯誤3:appium1.15.1 desktop版本 + iOS 13.4.1運行,總是報下面的提示,driver無法初始化,session無法建立
[RemoteDebugger] Empty page dictionary received
[RemoteDebugger] Error checking application: 'Empty page dictionary received'. Retrying connection
[RemoteDebugger] Selecting app PID:2613 (try #1 of 20)
[RemoteDebugger] Sending '_rpc_forwardGetListing:' message to app 'PID:2613' (id: 11)
解決:appium1.15.1運行ios13問題比較多,整了好久也沒弄好,最后嘗試升級了appium server 1.17.1之后,就正常了,然后也果斷換了appium1.17.1 desktop,上面三個錯誤問題在appium1.17.1上都不存在了。