WDA已经Build成功、iOS手机上已成功安装WDA,但是Appium Inspector启动应用报错,Failed to create session.
An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
xcodebuild error message:
. 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. 求指导
2022-08-23
CandyChen
连接IOS真机时、Appium inspector定位元素,报错Failed to create session.
An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
xcodebuild error message:
. 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.
连接真机包已经装好了看起来像是WDA报错
Xcode里面buildWDA成功了
WDA里面开发者账号也是好的,下面是大概的日志,求老师解答一下,万分感谢
[WebDriverAgent] Build Failed
[WebDriverAgent] Task failed with exit code 1:
[WebDriverAgent] /usr/bin/xcrun lipo -create /Users/admin/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/RoutingHTTPServer/v1.2.2/Build/Intermediates.noindex/ArchiveIntermediates/RoutingHTTPServer\ tvOS/IntermediateBuildFilesPath/UninstalledProducts/appletvos/RoutingHTTPServer.framework/RoutingHTTPServer /Users/admin/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/RoutingHTTPServer/v1.2.2/Build/Products/Release-appletvsimulator/RoutingHTTPServer.framework/RoutingHTTPServer -output /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/RoutingHTTPServer.framework/RoutingHTTPServer
[WebDriverAgent] This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/mf/hcx5z73j47l_3k2gtq3yxlbw0000gn/T/carthage-xcodebuild.dvhmLN.log
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1. 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.
[iProxy@8a0cb9d0:8100] The connection has been closed
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1. 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.
2020-09-28
Geek_829b0b
Xcode配置WDA报错,麻烦帮忙看一下呗
Showing All Messages
WebDriverAgentRunner-Runner.app (16137) encountered an error (Failed to load the test bundle. (Underlying error: 未能载入软件包“WebDriverAgentRunner”,因为它已损坏或丢失必要的资源。. 软件包已损坏或丢失必要的资源。. dlopen_preflight(/var/containers/Bundle/Application/7052373F-BCAC-48DA-AF0C-4EF042162E2D/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): no suitable image found. Did find:
/var/containers/Bundle/Application/7052373F-BCAC-48DA-AF0C-4EF042162E2D/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner: code signature invalid for '/var/containers/Bundle/Application/7052373F-BCAC-48DA-AF0C-4EF042162E2D/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner'
))