appium1.15.1 + xcode11.4 + IOS13.4.1从调试到放弃改用appium1.17.1错误解决

配置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: :0: failed: caught "NSInvalidArgumentException", "-[UITestingUITests internalImplementation]: unrecognized selector sent to instance

解决: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上都不存在了。