Appium Appium 环境搭建调 WebDriverAgent 出现报错 请大神帮忙看一下 在线等 急急!!!

王智强 · 2017年12月28日 · 最后由 王智强 回复于 2018年01月01日 · 3265 次阅读

Last login: Thu Dec 28 09:14:16 on ttys001
C02NP148G5RN:~ ex-wangzhiqiang004$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":120,"platformVersion":"10.3","automationName":"XCUITest","bundleId":"com.pingan.lanke","platformName":"iOS","udid":"fa2daf1eaa4ad5d5ba1fa91282999578716307fb","deviceName":"test-huang"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":120,"platformVersion":"10.3","automationName":"XCUITest","bundleId":"com.pingan.lanke","platformName":"iOS","udid":"fa2daf1eaa4ad5d5ba1fa91282999578716307fb","deviceName":"test-huang"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1514424090264 (09:21:30 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] newCommandTimeout: 120
[Appium] platformVersion: '10.3'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.pingan.lanke'
[Appium] platformName: 'iOS'
[Appium] udid: 'fa2daf1eaa4ad5d5ba1fa91282999578716307fb'
[Appium] deviceName: 'test-huang'
[BaseDriver] Session created with session id: 1495bc17-f588-4a9b-9789-50f998e58399
[debug] [XCUITest] Current user: 'ex-wangzhiqiang004'
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to '9.0.1' (tools v9.0.1.0.1.1506734476)
[debug] [XCUITest] iOS SDK Version set to '11.0'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1514424091335 (09:21:31 GMT+0800 (CST))
[debug] [XCUITest] Available devices: fa2daf1eaa4ad5d5ba1fa91282999578716307fb
[debug] [XCUITest] Creating iDevice object with udid 'fa2daf1eaa4ad5d5ba1fa91282999578716307fb'
[XCUITest] Determining device to run tests on: udid: 'fa2daf1eaa4ad5d5ba1fa91282999578716307fb', real device: true
[debug] [BaseDriver] Event 'appConfigured' logged at 1514424091499 (09:21:31 GMT+0800 (CST))
[debug] [BaseDriver] Event 'resetStarted' logged at 1514424091500 (09:21:31 GMT+0800 (CST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1514424091501 (09:21:31 GMT+0800 (CST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog'
[XCUITest] Cannot get the name of the crashes folder for the device with udid 'fa2daf1eaa4ad5d5ba1fa91282999578716307fb'. Original error: Command 'idevicename -u fa2daf1eaa4ad5d5ba1fa91282999578716307fb' exited with code 255
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1514424091578 (09:21:31 GMT+0800 (CST))
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1514424091921 (09:21:31 GMT+0800 (CST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*fa2daf1eaa4ad5d5ba1fa91282999578716307fb, iproxy 8100' for the device fa2daf1eaa4ad5d5ba1fa91282999578716307fb...
[debug] [XCUITest] 'pgrep -nif xcodebuild.*fa2daf1eaa4ad5d5ba1fa91282999578716307fb' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Using Xcode 9.0.1, so fixing WDA codebase
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=fa2daf1eaa4ad5d5ba1fa91282999578716307fb IPHONEOS_DEPLOYMENT_TARGET=10.3' in directory '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use 'showXcodeLog' desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-12-28 09:21:38.331 xcodebuild[6892:2469319] iPhoneConnect: ## Unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=601 "Could not locate device support files." UserInfo={NSLocalizedRecoverySuggestion=This iPad Air 2 (Model A1567) is running iOS 11.2.1 (15C153), which may not be supported by this version of Xcode., DeviceType=iPad5,4, NSLocalizedDescription=Could not locate device support files.}) {
[Xcode] DeviceType = "iPad5,4";
[Xcode] NSLocalizedDescription = "Could not locate device support files.";
[Xcode] NSLocalizedRecoverySuggestion = "This iPad Air 2 (Model A1567) is running iOS 11.2.1 (15C153), which may not be supported by this version of Xcode.";
[Xcode] }
[Xcode]
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] xcodebuild: error: Unable to find a destination matching the provided destination specifier:
[Xcode] { id:fa2daf1eaa4ad5d5ba1fa91282999578716307fb }
[Xcode]
[Xcode] Unsupported device specifier option.
[Xcode] The device “My Mac” does not support the following options: id
[Xcode] Please supply only supported device specifier options.
[Xcode]
[Xcode] Available destinations for the "WebDriverAgentRunner" scheme:
[Xcode] { platform:iOS, id:fa2daf1eaa4ad5d5ba1fa91282999578716307fb, name:“puhaifeng” 的 iPad }
[Xcode] { platform:iOS Simulator, id:9CC0CF1C-8102-47F6-AE94-B22611E3BA02, OS:11.0.1, name:iPad (5th generation) }
[Xcode] { platform:iOS Simulator, id:95C10A27-FAEE-42C3-90B9-9A9DAD3FA28D, OS:11.0.1, name:iPad Air }
[Xcode] { platform:iOS Simulator, id:57AB7714-1E48-465A-AB60-8FB64251EA38, OS:11.0.1, name:iPad Air 2 }
[Xcode] { platform:iOS Simulator, id:91AFE646-6FC8-4569-A4A3-D7956E8B3048, OS:11.0.1, name:iPad Pro (9.7-inch) }
[Xcode] { platform:iOS Simulator, id:38D50863-73C6-42CD-B0FD-6C34112FFA31, OS:11.0.1, name:iPad Pro (10.5-inch) }
[Xcode] { platform:iOS Simulator, id:4C793526-FCFC-41E8-AB77-850ED1ADCB42, OS:11.0.1, name:iPad Pro (12.9-inch) }
[Xcode] { platform:iOS Simulator, id:B6A82B84-538B-4DC1-BA70-9C9D5240A7B2, OS:11.0.1, name:iPad Pro (12.9-inch) (2nd generation) }
[Xcode] { platform:iOS Simulator, id:5718FEA0-B07B-40EC-B245-70FA101B45D5, OS:11.0.1, name:iPhone 5s }
[Xcode] { platform:iOS Simulator, id:ABFBCC9D-A5E9-4315-A22C-A0AFD40F4840, OS:11.0.1, name:iPhone 6 }
[Xcode] { platform:iOS Simulator, id:83D1FF41-C331-4CFB-968D-B165C316F536, OS:11.0.1, name:iPhone 6 Plus }
[Xcode] { platform:iOS Simulator, id:43645FDE-3544-42CE-B0B0-356EA2BE10F2, OS:11.0.1, name:iPhone 6s }
[Xcode] { platform:iOS Simulator, id:AE816867-E283-4ED0-9ACD-A8F66440C2B3, OS:11.0.1, name:iPhone 6s Plus }
[Xcode] { platform:iOS Simulator, id:3C6811A3-DE19-40EB-A683-118FE38442C6, OS:11.0.1, name:iPhone 7 }
[Xcode] { platform:iOS Simulator, id:019C0F13-B132-4378-AD12-D83EA3ACC9E7, OS:11.0.1, name:iPhone 7 Plus }
[Xcode] { platform:iOS Simulator, id:45D981BE-D32B-4970-A650-447311606320, OS:11.0.1, name:iPhone 8 }
[Xcode] { platform:iOS Simulator, id:56CF1F65-8AF3-42E9-9277-6CC962FF7CC9, OS:11.0.1, name:iPhone 8 Plus }
[Xcode] { platform:iOS Simulator, id:3759E1E0-9D39-4F08-B7D9-57712C1C057B, OS:11.0.1, name:iPhone SE }
[Xcode] { platform:iOS Simulator, id:430EEB74-C0DC-431F-9832-7CD9D8C2796E, OS:11.0.1, name:iPhone X }
[Xcode]
[Xcode] Ineligible destinations for the "WebDriverAgentRunner" scheme:
[Xcode] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
[Xcode] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
[Xcode]
[XCUITest] xcodebuild exited with code '70' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1514424158353 (09:22:38 GMT+0800 (CST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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.
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 6889)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- POST /wd/hub/session 500 78388 ms - 470

共收到 20 条回复 时间 点赞

[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 70". 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 XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:375:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- POST /wd/hub/session 500 78388 ms - 470

昨天把 iPad Air2 升级为 11.2.1 版本就出现 无法调起 WebDriverAgent 这个和设备的版本有关系嘛 还是说其他有地方没有配置好???

重装一下 WebDriverAgent 试试

这个应该是拿高版本的 xcode 再构建下吧,11.2 需要 9.2 的 xcode

9.0.1 的 Xcode 不行么 那我要重新升级一个

yyy 回复

WebDriverAgent 在哪里下载哇 我也都不知道之前怎么弄的

王智强 回复

https://www.jianshu.com/p/b472dc2ffea8 这是我当时安装的记录,你可以参考下. 如果有其他的报错,最好拉上开发来帮忙解决, 如果你自己不懂 ios 开发的话,搞起来会绕很多路.

yyy 回复

好的 我先看看

设备版本升级,xcode 也需要升级,不然不支持,WDA 就无法启动,升级 xcode 到最新,单独调试 WDA,如果没问题就可以了,还有问题就是其他问题了

John 回复

貌似版本越高 bug 越多

C02NP148G5RN:~ ex-wangzhiqiang004$ cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
C02NP148G5RN:WebDriverAgent ex-wangzhiqiang004$ ls -l
total 48
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 1324 12 22 04:50 CONTRIBUTING.md
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 63 12 22 04:50 Cartfile
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 48 12 22 04:50 Cartfile.resolved
drwxrwxrwx 4 ex-wangzhiqiang004 admin 136 12 27 15:31 Carthage
drwxrwxrwx 3 ex-wangzhiqiang004 admin 102 12 27 15:22 Configurations
drwxrwxrwx 12 ex-wangzhiqiang004 admin 408 12 27 15:35 Inspector
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 1535 12 22 04:50 LICENSE
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 1985 12 22 04:50 PATENTS
drwxrwxrwx 3 ex-wangzhiqiang004 admin 102 12 27 15:22 PrivateHeaders
-rwxrwxrwx 1 ex-wangzhiqiang004 admin 2647 12 22 04:50 README.md
drwxrwxrwx 4 ex-wangzhiqiang004 admin 136 12 27 16:04 Resources
drwxrwxrwx 4 ex-wangzhiqiang004 admin 136 12 27 15:22 Scripts
drwxrwxrwx 6 ex-wangzhiqiang004 admin 204 12 28 10:51 WebDriverAgent.xcodeproj
drwxrwxrwx 16 ex-wangzhiqiang004 admin 544 12 27 15:22 WebDriverAgentLib
drwxrwxrwx 4 ex-wangzhiqiang004 admin 136 12 27 15:22 WebDriverAgentRunner
drwxrwxrwx 5 ex-wangzhiqiang004 admin 170 12 27 15:22 WebDriverAgentTests
C02NP148G5RN:WebDriverAgent ex-wangzhiqiang004$ sh ./Scripts/bootstrap.sh
-e Fetching dependencies
-e Building Inspector
Creating bundle directory...
Fetching Inspector dependencies...
npm WARN react-dom@15.6.2 requires a peer of react@15.6.2 but none was installed.
npm WARN web-driver-inspector@1.0.0 No repository field.

up to date in 4.165s
Validating Inspector
Launching Flow server for /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector
Spawned flow server (pid=15582)
Logs will go to /private/tmp/flow/zSusrzSlocalzSlibzSnode_moduleszSappiumzSnode_moduleszS_appium-xcuitest-driver@2.62.0@appium-xcuitest-driverzSWebDriverAgentzSInspector.log
No errors!

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/app.js
13:18 error Unable to resolve path to module 'js/http' import/no-unresolved
14:20 error Unable to resolve path to module 'js/screen' import/no-unresolved
15:31 error Unable to resolve path to module 'js/screenshot_factory' import/no-unresolved
16:18 error Unable to resolve path to module 'js/tree' import/no-unresolved
17:22 error Unable to resolve path to module 'js/tree_node' import/no-unresolved
18:25 error Unable to resolve path to module 'js/tree_context' import/no-unresolved
19:23 error Unable to resolve path to module 'js/inspector' import/no-unresolved
28:14 error Missing space before function parentheses space-before-function-paren
33:13 error Missing space before function parentheses space-before-function-paren
38:20 error Missing space before function parentheses space-before-function-paren
42:18 error Missing space before function parentheses space-before-function-paren
49:13 error Expected property shorthand object-shorthand
56:12 error Missing space before function parentheses space-before-function-paren
65:9 error Missing space before function parentheses space-before-function-paren

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/gesture_recognizer.js
16:14 error Missing space before function parentheses space-before-function-paren
26:14 error Missing space before function parentheses space-before-function-paren
41:14 error Missing space before function parentheses space-before-function-paren
47:12 error Missing space before function parentheses space-before-function-paren
66:12 error Missing space before function parentheses space-before-function-paren
70:5 error Unexpected var, use let or const instead no-var
80:16 error Missing space before function parentheses space-before-function-paren
84:15 error Missing space before function parentheses space-before-function-paren

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/http.js
13:13 error Missing space before function parentheses space-before-function-paren
13:20 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
19:7 error Unexpected var, use let or const instead no-var
20:7 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
25:14 error Missing space before function parentheses space-before-function-paren
25:27 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
29:7 error Expected property shorthand object-shorthand
32:7 error Unexpected var, use let or const instead no-var
33:7 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/image_utils.js
11:34 error Missing space before function parentheses space-before-function-paren
11:55 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
15:40 error Missing space before function parentheses space-before-function-paren
15:69 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
16:5 error Unexpected var, use let or const instead no-var
20:5 error Unexpected var, use let or const instead no-var
28:45 error Missing space before function parentheses space-before-function-paren
28:79 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
29:5 error Unexpected var, use let or const instead no-var
33:5 error Unexpected var, use let or const instead no-var
41:22 error Missing space before function parentheses space-before-function-paren
41:31 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
42:5 error Unexpected var, use let or const instead no-var
44:28 error Missing space before function parentheses space-before-function-paren
45:7 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/inspector.js
13:18 error Unable to resolve path to module 'js/http' import/no-unresolved
14:1 error Unexpected var, use let or const instead no-var
18:22 error Missing space before function parentheses space-before-function-paren
23:9 error Missing space before function parentheses space-before-function-paren
38:18 error Missing space before function parentheses space-before-function-paren
64:14 error Missing space before function parentheses space-before-function-paren
68:5 error Unexpected var, use let or const instead no-var
86:6 error Missing space before function parentheses space-before-function-paren
89:9 error Unexpected var, use let or const instead no-var
97:13 error Unexpected var, use let or const instead no-var
98:13 error Unexpected var, use let or const instead no-var

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/screen.js
13:18 error Unable to resolve path to module 'js/http' import/no-unresolved
14:31 error Unable to resolve path to module 'js/gesture_recognizer' import/no-unresolved
16:1 error Unexpected var, use let or const instead no-var
21:21 error Missing space before function parentheses space-before-function-paren
22:6 error Expected indentation of 4 spaces but found 5 indent
25:23 error Missing space before function parentheses space-before-function-paren
26:7 error Expected indentation of 4 spaces but found 6 indent
29:9 error Missing space before function parentheses space-before-function-paren
54:20 error Missing space before function parentheses space-before-function-paren
71:22 error Missing space before function parentheses space-before-function-paren
72:5 error Unexpected var, use let or const instead no-var
79:13 error Missing space before function parentheses space-before-function-paren
83:19 error Missing space before function parentheses space-before-function-paren
84:5 error Unexpected var, use let or const instead no-var
85:5 error Unexpected var, use let or const instead no-var
86:5 error Unexpected var, use let or const instead no-var
87:5 error Unexpected var, use let or const instead no-var
96:9 error Unexpected var, use let or const instead no-var
100:13 error Expected property shorthand object-shorthand
101:13 error Expected property shorthand object-shorthand
102:13 error Expected property shorthand object-shorthand
103:13 error Expected property shorthand object-shorthand
114:13 error Missing space before function parentheses space-before-function-paren
115:5 error Unexpected var, use let or const instead no-var
116:5 error Unexpected var, use let or const instead no-var
120:20 error Missing space before function parentheses space-before-function-paren
121:5 error Unexpected var, use let or const instead no-var
122:5 error Unexpected var, use let or const instead no-var
128:9 error Unexpected var, use let or const instead no-var
132:13 error Expected property shorthand object-shorthand
133:13 error Expected property shorthand object-shorthand
143:22 error Missing space before function parentheses space-before-function-paren
146:9 error Unexpected var, use let or const instead no-var
160:14 error Missing space before function parentheses space-before-function-paren
164:14 error Missing space before function parentheses space-before-function-paren
168:12 error Missing space before function parentheses space-before-function-paren
172:12 error Missing space before function parentheses space-before-function-paren
176:7 error Missing space before function parentheses space-before-function-paren
186:19 error Missing space before function parentheses space-before-function-paren
202:24 error Missing space before function parentheses space-before-function-paren
215:34 error Missing space before function parentheses space-before-function-paren
216:5 error Unexpected var, use let or const instead no-var
221:5 error Unexpected var, use let or const instead no-var
224:5 error Unexpected var, use let or const instead no-var
228:75 error Missing space before opening brace space-before-blocks
229:9 error Expected indentation of 6 spaces but found 8 indent

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/screenshot_factory.js
10:24 error Unable to resolve path to module 'js/image_utils' import/no-unresolved
12:30 error Missing space before function parentheses space-before-function-paren
13:3 error Unexpected var, use let or const instead no-var
14:3 error Unexpected var, use let or const instead no-var
15:3 error Unexpected var, use let or const instead no-var
17:3 error Unexpected var, use let or const instead no-var
18:3 error Unexpected var, use let or const instead no-var
23:26 error Missing space before function parentheses space-before-function-paren
23:60 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
33:28 error Missing space before function parentheses space-before-function-paren
37:22 error Missing space before function parentheses space-before-function-paren
37:43 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
51:34 error Missing space before function parentheses space-before-function-paren
51:42 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks
52:5 error Unexpected var, use let or const instead no-var
58:5 warning Avoid callbacks. Prefer Async/Await promise/prefer-await-to-callbacks

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/tree.js
23:9 error Missing space before function parentheses space-before-function-paren
42:16 error Missing space before function parentheses space-before-function-paren
46:21 error Missing space before function parentheses space-before-function-paren
52:13 error Missing space before function parentheses space-before-function-paren
64:13 error Missing space before function parentheses space-before-function-paren
84:5 error Unexpected var, use let or const instead no-var
101:14 error Missing space before function parentheses space-before-function-paren
107:19 error Missing space before function parentheses space-before-function-paren
113:19 error Missing space before function parentheses space-before-function-paren

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/tree_context.js
11:14 error Missing space before function parentheses space-before-function-paren
16:21 error Missing space before function parentheses space-before-function-paren

/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver/WebDriverAgent/Inspector/js/tree_node.js
11:19 error Missing space before function parentheses space-before-function-paren
18:23 error Missing space before function parentheses space-before-function-paren
19:5 error Unexpected var, use let or const instead no-var
26:23 error Missing space before function parentheses space-before-function-paren
27:5 error Unexpected var, use let or const instead no-var
36:19 error Missing space before function parentheses space-before-function-paren
49:14 error Missing space before function parentheses space-before-function-paren

✖ 137 problems (124 errors, 13 warnings)

执行 sh ./Scripts/bootstrap.sh 的时候也报错了

执行 sh ./Scripts/bootstrap.sh 的时候也报错了

王智强 回复

如果针对 iOS 一端的话,其实在换了 XCUITest 测试框架后,Appium 的一些方法确实不适用了,看官方文档也可以看出来,而且随着以后 XCtest 和 WDA 可能出现的调整,也会出问题,但是升级还是需要的,iOS 就是要跟着版本走,除非你不做兼容,安卓的话,变化一直不大

John 回复

当前是 Xcode9 版本 目前还只不想升级 sh ./Scripts/bootstrap.sh 的时候报错 看论坛有人说要重新在 GitHub 下载 WebDriverAgent 用 Xcode 编译一下 不知道有没有用

王智强 回复

他们说的应该是客户端版本,你是 npm 装的,如果你要测试 11.2 以后的系统,xcode 版本得升到 9.2,你可以单独调试下 WDA,这个是 iOS 系统和 xcode 之间的问题

John 回复

问题还是没有解决
执行 sh ./Scripts/bootstrap.sh 出现报错
报错信息:error Missing space before function parentheses space-before-function-paren
然后把自带的 WebDriverAgent 删掉 在 GitHub 下载了一个 进行编译执行 sh ./Scripts/bootstrap.sh 可以通过 但是把下载的 WebDriverAgent 放入/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver 路径下还是会报错。。。。

John 回复

https://testerhome.com/topics/11415#reply1 执行 sh ./Scripts/bootstrap.sh 报错的帖子

王智强 回复

github 下载好了执行成功,放进去为啥还要在编译一次,直接打开 WDA 用 Xcode 运行一次,看报什么错误,是不能编译还是未添加账号

John 回复

这是新的报错
[Xcode] ), NSLocalizedRecoverySuggestion=Too many instances of this service are already running., NSLocalizedDescription=Too many instances of this service are already running.}
[Xcode] 2017-12-29 11:00:19.909 xcodebuild[47311:384372] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1514516419934 (11:00:19 GMT+0800 (CST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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.
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 47225)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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 XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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 XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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 XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 23060 ms - 470

John 回复

全部搞定了
appium 1.7.1 版本是不能支持 xcode9 以上版本的
最终原因是需要用 appium 桌面版本:1.7.1 + xcode 版本:8.3.3 xcode 下载地址http://www.swift51.com/xcode/8.33.html 百度网盘下载
Mac 版本:10.12.6
然后 WebDriverAgent 被删掉是因为没有在 iOS 设置里面的描述文件里面点击信任 点击信任就不会被删掉了
如果需要进行验证码识别需要下载一个 tesseract 验证码识别工具 在终端输入 brew install tesseract 就可以了

wtnhz ******************* 中提及了此贴 12月17日 18:13
需要 登录 後方可回應,如果你還沒有帳號按這裡 注册