SonicCloudOrg / sonic-ios-wda

🎉A WebDriver server for iOS and tvOS
Other
20 stars 20 forks source link

[Bug] sib启动wda时候卡住。 #61

Closed yehe01 closed 6 months ago

yehe01 commented 6 months ago

Search before asking

Sonic version

sonic-agent 1.3.18

Deploy platform

linux

Minimal reproduce step

sib run wda -u <udid> -b com.autotest.WebDriverAgentRunner.xctrunner --mjpeg-remote-port 9100 --server-remote-port 8100 --mjpeg-local-port 50001 --server-local-port 50002

参考的https://sonic-cloud.cn/deploy/ios-deploy.html,在一台iOS 16.0.2的设备上安装main分支构建的wda (就改了下bundle id) 运行上述命令可以正常启动wda,输出如下

2024-05-10 18:18:11.371266+0800 WebDriverAgentRunner-Runner[36858:11109089] [Default] Running tests... Test Suite 'All tests' started at 2024-05-10 18:18:12.808. XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2024-05-10 18:18:12.809. XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2024-05-10 18:18:12.809. XCTestOutputBarrier t = nans Suite Set Up 2024-05-10 18:18:12.831541+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( KeyboardAutocorrection ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.832186+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( "KeyboardAutocorrection_changedAt" ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.832441+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( "KeyboardAutocorrection_buildAtChange" ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.832660+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( "KeyboardAutocorrection_previousValue" ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.832886+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( "KeyboardAutocorrection_analyzedAt" ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.840292+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( KeyboardPrediction ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.840551+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( KeyboardShowPredictionBar ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2024-05-10 18:18:12.840790+0800 WebDriverAgentRunner-Runner[36858:11109089] [User Defaults] Couldn't write values for keys ( DidShowGestureKeyboardIntroduction ) in CFPrefsPlistSource<0x2830c9180> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access Test Case '-[UITestingUITests testRunner]' started. XCTestOutputBarrier t = 0.00s Start Test at 2024-05-10 18:18:12.846 t = 0.00s Set Up 2024-05-10 18:18:12.848409+0800 WebDriverAgentRunner-Runner[36858:11109089] Built at May 10 2024 10:19:50 2024-05-10 18:18:12.860487+0800 WebDriverAgentRunner-Runner[36858:11109089] ServerURLHere->http://169.254.197.121:8100<-ServerURLHere WebDriverAgent server start successful

而在两台版本分别是16.7.7和16.6的iOS设备上安装同一wda,然后跑同样的命令,会卡在这儿

Test Suite 'All tests' started at 2024-05-10 18:27:36.527. XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2024-05-10 18:27:36.528. XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2024-05-10 18:27:36.528. XCTestOutputBarrier t = nans Suite Set Up Test Case '-[UITestingUITests testRunner]' started. XCTestOutputBarrier t = 0.00s Start Test at 2024-05-10 18:27:36.582 t = 0.00s Set Up

Are you willing to submit a PR?