同样的配置在 Appium1.6.3+iOS 9.3 就能跑起来,在 Appium1.6.3+iOS 10.2 上 (已经添加了'XCUITest') 就一直处于 Waiting for WebDriverAgent server to finish loading...不动了

操作步骤:

1.wda 签名并且用 xcodebuild 命令装在手机上

2.命令行启动 appium

3.log 一直显示 Waiting for WebDriverAgent server to finish loading...不动了

有没有大神经历过的,求解救😳

Last login: Sun Dec 18 19:35:39 on ttys000
suqingdeMacBook-Pro:~ xcc$ 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":{"app":"/Users/xcc/Desktop/应用名称.ipa","platformVersion":"10.2","bundleId":"com.应用名称.应用名称","automationName":"XCUITest","platformName":"iOS","udid":"7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7","deviceName":"iPhone 6"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/xcc/Desktop/应用名称.ipa","platformVersion":"10.2","bundleId":"com.应用名称.应用名称","automationName":"XCUITest","platformName":"iOS","udid":"7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7","deviceName":"iPhone 6"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium]   app: '/Users/xcc/Desktop/应用名称.ipa'
[Appium]   platformVersion: '10.2'
[Appium]   bundleId: 'com.应用名称.应用名称'
[Appium]   automationName: 'XCUITest'
[Appium]   platformName: 'iOS'
[Appium]   udid: '7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7'
[Appium]   deviceName: 'iPhone 6'
[debug] [XCUITest] XCUITestDriver version: 2.4.3
[BaseDriver] Session created with session id: a819d5cf-17f8-4143-9d98-4180c49c5fa9
[debug] [XCUITest] Xcode version set to '8.2'
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [XCUITest] Available devices: 7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7, c4b16cefccccccccccccb43a9b88819
[debug] [XCUITest] Creating iDevice object with udid 7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7
[XCUITest] Determining device to run tests on: udid: '7e7b54c63xxxxxxxxxxxx1aeb3dcf0ace1e7', real device: true
[BaseDriver] Using local app '/Users/xcc/Desktop/应用名称.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/vn/c4srrmj53f367lw984kxs1100000gn/T/20161118-2308-5ymsl3.lobf0f6r/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/vn/c4srrmj53f367lw984kxs1100000gn/T/20161118-2308-5ymsl3.lobf0f6r/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/vn/c4srrmj53f367lw984kxs1100000gn/T/20161118-2308-5ymsl3.lobf0f6r/Payload/应用名称.app'
[debug] [XCUITest] Checking whether app '/var/folders/vn/c4srrmj53f367lw984kxs1100000gn/T/20161118-2308-5ymsl3.lobf0f6r/Payload/应用名称.app' is actually present
[debug] [XCUITest] App is present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[debug] [XCUITest] App is already installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger 'idevicesyslog'
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=7e7b54c632bcaa44f661726271aeb3dcf0ace1e7 -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/xcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-cdbymtonqyssjhfwnanxtomfuiox/Logs/Test/E7B7B6B5-8059-4318-AD61-94CBF29F586F/Session-WebDriverAgentRunner-2016-12-18_193752-eXQWNA.log
[debug] [WebDriverAgent] Device: Dec 18 19:37:59 iPhone XCTRunner[472] <Notice>: Running tests...
[debug] [WebDriverAgent] Device: Dec 18 19:38:01 iPhone XCTRunner[472] <Notice>: Continuing to run tests in the background with task ID 1
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...


↙↙↙阅读原文可查看相关链接,并与作者交流