The server is running

[Appium] Welcome to Appium v1.7.1

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa","platformName":"iOS","udid":"a779c7953c50967fca89500e932981029e306659","deviceName":"iPhone 5","platformVersion":"10.3.3"}}

[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa","platformName":"iOS","udid":"a779c7953c50967fca89500e932981029e306659","deviceName":"iPhone 5","platformVersion":"10.3.3"},null,null]

[BaseDriver] Event 'newSessionRequested' logged at 1510123314348 (14:41:54 GMT+0800 (CST))

[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.

[Appium] Creating new XCUITestDriver (v2.51.1) session

[Appium] Capabilities:

[Appium]   app: '/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa'

[Appium]   platformName: 'iOS'

[Appium]   udid: 'a779c7953c50967fca89500e932981029e306659'

[Appium]   deviceName: 'iPhone 5'

[Appium]   platformVersion: '10.3.3'

[BaseDriver] Session created with session id: 2aca92d4-8ba0-4a8f-8d32-63e5e5b5404d

[XCUITest] Xcode version set to '9.0' (tools v9.0.1.0.1.1506734476)

[XCUITest] iOS SDK Version set to '11.0'

[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1510123314447 (14:41:54 GMT+0800 (CST))

[XCUITest] Available devices: a779c7953c50967fca89500e932981029e306659

[XCUITest] Creating iDevice object with udid 'a779c7953c50967fca89500e932981029e306659'

[XCUITest] Determining device to run tests on: udid: 'a779c7953c50967fca89500e932981029e306659', real device: true

[BaseDriver] Using local app '/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa'

[BaseDriver] Copying local zip to tmp dir

[BaseDriver] Unzipping /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/appium-app.zip

[BaseDriver] Testing zip archive: /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/appium-app.zip

[BaseDriver] Unzipped local app to '/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/Payload/toon.app'

[BaseDriver] Event 'appConfigured' logged at 1510123318599 (14:41:58 GMT+0800 (CST))

[XCUITest] Checking whether app '/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/Payload/toon.app' is actually present on file system

[XCUITest] App is present

[iOS] Getting bundle ID from app '/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/Payload/toon.app': 'com.systoon.beijingtong'

[BaseDriver] Event 'resetStarted' logged at 1510123318609 (14:41:58 GMT+0800 (CST))

[XCUITest] Reset: running ios real device reset flow

[BaseDriver] Event 'resetComplete' logged at 1510123318610 (14:41:58 GMT+0800 (CST))

[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog

[iOSLog] Starting iOS device log capture with: 'idevicesyslog'

[BaseDriver] Event 'logCaptureStarted' logged at 1510123318747 (14:41:58 GMT+0800 (CST))

[XCUITest] Setting up real device

[XCUITest] Reset requested. Removing app with id 'com.systoon.beijingtong' from the device

[XCUITest] Installing '/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/2017108-88676-zreyvk.96q1tt9/Payload/toon.app' on device with UUID 'a779c7953c50967fca89500e932981029e306659'...

[XCUITest] The app has been installed successfully.

[BaseDriver] Event 'appInstalled' logged at 1510123358838 (14:42:38 GMT+0800 (CST))

[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'

[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'

[XCUITest] Capability 'useNewWDA' set to false, so trying to reuse currently running WDA instance at 'http://localhost:8100/'

[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[XCUITest] WDA is not listening at 'http://localhost:8100/'. Rebuilding...

[BaseDriver] Event 'wdaStartAttempted' logged at 1510123358857 (14:42:38 GMT+0800 (CST))

[XCUITest] Launching WebDriverAgent on the device

[XCUITest] Carthage found: '/usr/local/bin/carthage'

[XCUITest] Killing running processes 'xcodebuild.*a779c7953c50967fca89500e932981029e306659, iproxy 8100' for the device a779c7953c50967fca89500e932981029e306659...

[XCUITest] 'pgrep -nif xcodebuild.*a779c7953c50967fca89500e932981029e306659' didn't detect any matching processes. Return code: 1

[XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1

[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB

[XCUITest] Using Xcode 9.0, so fixing WDA codebase

[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=a779c7953c50967fca89500e932981029e306659 IPHONEOS_DEPLOYMENT_TARGET=10.3' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'

[XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use 'showXcodeLog' desired capability

[XCUITest] Waiting up to 60000ms for WebDriverAgent to start

[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[XCUITest] Log file for xcodebuild test: /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/com.apple.dt.XCTest/IDETestRunSession-E129CB8F-8708-4E27-980C-524C5B740753/WebDriverAgentRunner-B7F98D6B-6F9B-452C-B090-943020520052/Session-WebDriverAgentRunner-2017-11-08_144246-PiOTLR.log

[Xcode] 2017-11-08 14:42:46.455 xcodebuild[89233:1607223] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/zhouhaijun/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fba4d310650 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

[Xcode] 2017-11-08 14:42:46.455 xcodebuild[89233:1607223] 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 1510123366472 (14:42:46 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 89232)

[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$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)    at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)    at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)    at GeneratorFunctionPrototype.invoke (/Applications/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$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)    at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)    at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)    at GeneratorFunctionPrototype.invoke (/Applications/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$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)    at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)    at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)    at GeneratorFunctionPrototype.invoke (/Applications/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 62544 ms - 470