问题描述:IOS无法远控投屏,求支招
Server版本:V1.4.1
Agent版本与部署方式:V1.4.1
手机型号与系统版本:all in
截图:

相关日志:
2022-07-29 16:53:35.742 - INFO 54120 --- [http-nio-7777-exec-9] o.c.sonic.agent.websockets.IOSWSServer : ios lock udId:00008110-001200362252401E
2022-07-29 16:53:38.433 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:38.766389+0800 WebDriverAgentRunner-Runner[29077:3225419] Running tests...
2022-07-29 16:53:38.896 - INFO 54120 --- [WebSocketConnectReadThread-50] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"pong"}
2022-07-29 16:53:39.745 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : Test Suite 'All tests' started at 2022-07-29 16:53:40.180
2022-07-29 16:53:39.746 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2022-07-29 16:53:40.180
2022-07-29 16:53:39.746 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2022-07-29 16:53:40.181
2022-07-29 16:53:39.747 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = nans Suite Set Up
2022-07-29 16:53:39.763 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.197718+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.764 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardAutocorrection
2022-07-29 16:53:39.764 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.765 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.198124+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.765 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_changedAt"
2022-07-29 16:53:39.765 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.766 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.198439+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.766 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_buildAtChange"
2022-07-29 16:53:39.766 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.766 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.198717+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.766 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_previousValue"
2022-07-29 16:53:39.767 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.767 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.198995+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.767 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : "KeyboardAutocorrection_analyzedAt"
2022-07-29 16:53:39.767 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.772 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.206500+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.772 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardPrediction
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.206858+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : KeyboardShowPredictionBar
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.208458+0800 WebDriverAgentRunner-Runner[29077:3225419] [User Defaults] Couldn't write values for keys (
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : DidShowGestureKeyboardIntroduction
2022-07-29 16:53:39.773 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : ) in CFPrefsPlistSource<0x281a90980> (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
2022-07-29 16:53:39.779 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : Test Case '-[UITestingUITests testRunner]' started.
2022-07-29 16:53:39.779 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : XCTestOutputBarrier t = 0.00s Start Test at 2022-07-29 16:53:40.212
2022-07-29 16:53:39.781 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : t = 0.00s Set Up
2022-07-29 16:53:39.782 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.213395+0800 WebDriverAgentRunner-Runner[29077:3225419] Built at Jul 27 2022 14:31:23
2022-07-29 16:53:39.790 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : 2022-07-29 16:53:40.223590+0800 WebDriverAgentRunner-Runner[29077:3225419] ServerURLHere->http://169.254.84.133:8200<-ServerURLHere
2022-07-29 16:53:39.790 - INFO 54120 --- [http-nio-7777-exec-9] o.cloud.sonic.agent.bridge.ios.SibTool : WebDriverAgent server start successful
2022-07-29 16:53:39.905 - INFO 54120 --- [Thread-9] o.cloud.sonic.agent.bridge.ios.SibTool : orientation: 1
2022-07-29 16:53:40.850 - INFO 54120 --- [pool-4-thread-4] o.c.sonic.agent.automation.AppiumServer : Appium server start...
[XCUITest] {}
2022-07-29 16:53:55.290 - INFO 54120 --- [pool-4-thread-4] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"连接设备驱动失败!","log":"","time":"16:53:55","rid":0,"udId":"00008110-001200362252401E","status":4,"cid":0}
2022-07-29 16:53:55.291 -ERROR 54120 --- [pool-4-thread-4] o.c.sonic.agent.websockets.IOSWSServer : Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:53068 Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'tencowdeMacBook-Air.local', ip: 'fe80:0:0:0:c80:8a5b:a1fa:8ed7%en0', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '12.0.1', java.version: '17.0.3.1'
Driver info: driver.version: IOSDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:53068 Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'tencowdeMacBook-Air.local', ip: 'fe80:0:0:0:c80:8a5b:a1fa:8ed7%en0', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '12.0.1', java.version: '17.0.3.1'
Driver info: driver.version: IOSDriver
2022-07-29 16:53:55.359 - INFO 54120 --- [pool-4-thread-4] o.c.sonic.agent.automation.AppiumServer : Appium server stop...
2022-07-29 16:54:08.933 - INFO 54120 --- [WebSocketConnectReadThread-50] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"pong"}
2022-07-29 16:54:38.989 - INFO 54120 --- [WebSocketConnectReadThread-50] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"pong"}
@Eason