求助:環境正常,xcodebuild 也執行成功了,但是使用 appium desktop 的時候,出現:Could not start session

Zealot發表於2020-06-17

求助大神幫幫忙,小白一個,摸滾帶爬,把環境和構建問題解決了,但是啟動appium desktop 又有問題。

Xcode版本:11.5
iOS模擬器版本:iPhone 8 (12.4)
Appium desktop版本:1.17

1.環境依賴,都搭建好了,無問題。
2.構建也完成了,wda用的appium自帶的。

Testing started on 'iPhone 8'
2020-06-17 16:42:58.972 xcodebuild[883:29359] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/zhangben/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.06.17_16-42-22-+0800.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-37294224-DC51-42F8-BCB9-386D2F235C5D/WebDriverAgentRunner-FFAE4C4E-242E-458E-87D4-C8F9B7C99DA3/Session-WebDriverAgentRunner-2020-06-17_164258-9RxzTl.log
2020-06-17 16:42:58.973 xcodebuild[883:29139] [MT] IDETestOperationsObserverDebug: (78720B3D-FD3F-4938-9BBA-EA407ED2358A) Beginning test session WebDriverAgentRunner-78720B3D-FD3F-4938-9BBA-EA407ED2358A at 2020-06-17 16:42:58.973 with Xcode 11E608c on target <DVTiPhoneSimulator: 0x7fe6e43269c0> {
SimDevice: iPhone 8 (17E2A5AB-A727-4295-9890-010DC6912EEC, iOS 12.4, Shutdown)
} (12.4 (16G73))
2020-06-17 16:43:16.240 xcodebuild[883:29139] [MT] IDETestOperationsObserverDebug: (78720B3D-FD3F-4938-9BBA-EA407ED2358A) Finished requesting crash reports. Continuing with testing.
2020-06-17 16:43:19.262427+0800 WebDriverAgentRunner-Runner[1415:31384] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2020-06-17 16:43:19.458639+0800 WebDriverAgentRunner-Runner[1415:31384] [AXMediaCommon] Unable to look up screen scale
2020-06-17 16:43:19.458785+0800 WebDriverAgentRunner-Runner[1415:31384] [AXMediaCommon] Unexpected physical screen orientation
2020-06-17 16:43:19.480375+0800 WebDriverAgentRunner-Runner[1415:31384] [AXMediaCommon] Unable to look up screen scale
2020-06-17 16:43:19.484871+0800 WebDriverAgentRunner-Runner[1415:31384] [AXMediaCommon] Unable to look up screen scale
2020-06-17 16:43:19.484992+0800 WebDriverAgentRunner-Runner[1415:31384] [AXMediaCommon] Unexpected physical screen orientation
2020-06-17 16:43:19.539079+0800 WebDriverAgentRunner-Runner[1415:31384] Running tests...
Test Suite 'All tests' started at 2020-06-17 16:43:19.732
Test Suite 'WebDriverAgentLib.framework' started at 2020-06-17 16:43:19.734
Test Suite 'WebDriverAgentLib.framework' passed at 2020-06-17 16:43:19.734.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-06-17 16:43:19.735
Test Suite 'UITestingUITests' started at 2020-06-17 16:43:19.735
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-06-17 16:43:19.817
t = 0.01s Set Up
2020-06-17 16:43:19.821841+0800 WebDriverAgentRunner-Runner[1415:31384] Built at Jun 17 2020 16:42:30
2020-06-17 16:43:19.847673+0800 WebDriverAgentRunner-Runner[1415:31384] ServerURLHere->http://192.168.1.43:8100<-ServerURLHere
2020-06-17 16:43:19.848273+0800 WebDriverAgentRunner-Runner[1415:31403] Using singleton test manager
2020-06-17 16:43:22.905762+0800 WebDriverAgentRunner-Runner[1415:31394] [MC] Invalidating cache
2020-06-17 16:43:24.352318+0800 WebDriverAgentRunner-Runner[1415:31392] [MC] Invalidating cache

3.appium desktop 上面的引數:
{
"platformName": "ios",
"platformVersion": "12.4",
"udid": "17E2A5AB-A727-4295-9890-010DC6912EEC",
"deviceName": "iPhone 8",
"app": "/Users/zhangben/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app"
}

我個人感覺,跟引數沒關係

之前用的 appium desktop 1.15 都不會報 Could not start session 升級到 1.17 後就出現了

小白一個啊,全靠自己摸索,希望老哥們指點一二,謝謝!

相關文章