IOS App ( Real Devices) unexpected exit, operation never finished bootstrapping - no restart will be attempted , ** TEST EXECUTE FAILED **

Latest Build : Appium 1.6.5 Beta
Devices : Real devices iphone 6s and iphone 7

I’m getting below the error while running my script , however App was installed and getting unexpected error,

HTTP] <-- POST /wd/hub/session 500 43742 ms - 230

[HTTP] --> POST /wd/hub/session {“capabilities”:[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}]}

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [null,null,[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}]]

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1495646602148 (13:23:22 GMT-0400 (EDT))

[MJSONWP] Encountered internal error running command: Error: You must include a platformName capability

at AppiumDriver.getDriverForCaps (../../lib/appium.js:44:13)

at AppiumDriver.createSession$ (../../lib/appium.js:157:28)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at enqueueResult (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)

at F (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)

at AsyncIterator.enqueue (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)

at AsyncIterator.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at Object.runtime.async (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)

at AppiumDriver.createSession (../../lib/appium.js:183:31)

at ../../../lib/basedriver/driver.js:207:24

at tryCatcher (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/util.js:26:23)

at Promise._settlePromiseFromHandler (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:510:31)

at Promise._settlePromiseAt (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:584:18)

at Promise._settlePromiseAtPostResolution (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:248:10)

at Async._drainQueue (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:128:12)

at Async._drainQueues (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:133:10)

at Immediate.Async.drainQueues (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:15:14)

at runCallback (timers.js:666:20)

at tryOnImmediate (timers.js:639:5)

at processImmediate [as _immediateCallback] (timers.js:611:5)

[HTTP] <-- POST /wd/hub/session 500 3 ms - 179

[HTTP] --> POST /wd/hub/session {“capabilities”:[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/ios.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}],“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000},“requiredCapabilities”:{}}

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000},{},[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}]]

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1495647061439 (13:31:01 GMT-0400 (EDT))

[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.30.0) session

[Appium] Capabilities:

[Appium] app: ‘/Users/qa/Downloads/poc.app’

[Appium] appiumVersion: ‘1.6.5 beta’

[Appium] platformVersion: ‘10.3.1’

[Appium] automationName: ‘Appium’

[Appium] bundleId: ‘com.poc.iOS’

[Appium] platformName: ‘iOS’

[Appium] udid: ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’

[Appium] deviceName: ‘iPhone 6s’

[Appium] launchTimeout: 500000

[debug] [XCUITest] XCUITestDriver version: 2.30.0

[BaseDriver] The following capabilities were provided, but are not recognized by appium: appiumVersion.

[BaseDriver] Session created with session id: 2428bd1c-09ca-43ef-a6f6-6aacdd64656c

[debug] [XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)

[debug] [XCUITest] iOS SDK Version set to ‘10.3’

[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1495647061479 (13:31:01 GMT-0400 (EDT))

[debug] [XCUITest] Available devices: 81e1a267c01927decdd9faadda9ad51f5375d1f7

[debug] [XCUITest] Creating iDevice object with udid ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’

[XCUITest] Determining device to run tests on: udid: ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’, real device: true

[BaseDriver] Using local app ‘/Users/qa/Downloads/poc.app’

[debug] [BaseDriver] Event ‘appConfigured’ logged at 1495647061608 (13:31:01 GMT-0400 (EDT))

[debug] [XCUITest] Checking whether app ‘/Users/qa/Downloads/poc.app’ is actually present on file system

[debug] [XCUITest] App is present

[debug] [BaseDriver] Event ‘resetStarted’ logged at 1495647061611 (13:31:01 GMT-0400 (EDT))

[debug] [XCUITest] Reset: running ios real device reset flow

[debug] [BaseDriver] Event ‘resetComplete’ logged at 1495647061611 (13:31:01 GMT-0400 (EDT))

[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog

[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’

[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1495647061738 (13:31:01 GMT-0400 (EDT))

[XCUITest] Setting up real device

[debug] [XCUITest] Installing ‘/Users/qa/Downloads/poc.app’ on device with UUID ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’…

[debug] [XCUITest] The app has been installed successfully.

[debug] [BaseDriver] Event ‘appInstalled’ logged at 1495647071083 (13:31:11 GMT-0400 (EDT))

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1495647071083 (13:31:11 GMT-0400 (EDT))

[XCUITest] Using WDA path: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[XCUITest] Using WDA agent: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/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] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=81e1a267c01927decdd9faadda9ad51f5375d1f7 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[debug] [XCUITest] Output from xcodebuild will not be logged

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

[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

[debug] [XCUITest] Log file for xcodebuild test: /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/FECDCC53-5F90-40E0-89F9-41D057D429BE/Session-WebDriverAgentRunner-2017-05-24_133117-qhcPHQ.log

[Xcode] 2017-05-24 13:31:17.532 xcodebuild[79713:1882612] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f9d8586c5e0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

[Xcode]

[Xcode] 2017-05-24 13:31:17.532 xcodebuild[79713:1882612] 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]

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

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’

[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1495647077556 (13:31:17 GMT-0400 (EDT))

[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

[XCUITest] Shutting down sub-processes

[XCUITest] Shutting down iproxy process (pid 79712)

[debug] [XCUITest] iproxy exited with code ‘null’

[debug] [XCUITest] Removing WDA application from device

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1495647087838 (13:31:27 GMT-0400 (EDT))

[XCUITest] Using WDA path: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[XCUITest] Using WDA agent: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/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] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=81e1a267c01927decdd9faadda9ad51f5375d1f7 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[debug] [XCUITest] Output from xcodebuild will not be logged

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

[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

[debug] [XCUITest] Log file for xcodebuild test: /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/C87038A6-670E-4791-9251-B8C42D3C43C2/Session-WebDriverAgentRunner-2017-05-24_133134-BIAziA.log

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

[Xcode] 2017-05-24 13:31:34.305 xcodebuild[79743:1882949] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7ff191c68150 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

[Xcode]

[Xcode] 2017-05-24 13:31:34.305 xcodebuild[79743:1882949] 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’

[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1495647094328 (13:31:34 GMT-0400 (EDT))

[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

[XCUITest] Shutting down sub-processes

[XCUITest] Shutting down iproxy process (pid 79741)

[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 65

at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

[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 65

at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

[HTTP] <-- POST /wd/hub/session 500 43131 ms - 230

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000},“requiredCapabilities”:{}}

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000},{},null]

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1495647104594 (13:31:44 GMT-0400 (EDT))

[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.30.0) session

[Appium] Capabilities:

[Appium] app: ‘/Users/qa/Downloads/poc.app’

[Appium] appiumVersion: ‘1.6.5 beta’

[Appium] platformVersion: ‘10.3.1’

[Appium] automationName: ‘Appium’

[Appium] bundleId: ‘com.poc.iOS’

[Appium] platformName: ‘iOS’

[Appium] udid: ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’

[Appium] deviceName: ‘iPhone 6s’

[Appium] launchTimeout: 500000

[debug] [XCUITest] XCUITestDriver version: 2.30.0

[BaseDriver] The following capabilities were provided, but are not recognized by appium: appiumVersion.

[BaseDriver] Session created with session id: 2df7eb4e-d3f6-432d-9974-fd544fd2ae5b

[debug] [XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)

[debug] [XCUITest] iOS SDK Version set to ‘10.3’

[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1495647104640 (13:31:44 GMT-0400 (EDT))

[debug] [XCUITest] Available devices: 81e1a267c01927decdd9faadda9ad51f5375d1f7

[debug] [XCUITest] Creating iDevice object with udid ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’

[XCUITest] Determining device to run tests on: udid: ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’, real device: true

[BaseDriver] Using local app ‘/Users/qa/Downloads/poc.app’

[debug] [BaseDriver] Event ‘appConfigured’ logged at 1495647104790 (13:31:44 GMT-0400 (EDT))

[debug] [XCUITest] Checking whether app ‘/Users/qa/Downloads/poc.app’ is actually present on file system

[debug] [XCUITest] App is present

[debug] [BaseDriver] Event ‘resetStarted’ logged at 1495647104791 (13:31:44 GMT-0400 (EDT))

[debug] [XCUITest] Reset: running ios real device reset flow

[debug] [BaseDriver] Event ‘resetComplete’ logged at 1495647104791 (13:31:44 GMT-0400 (EDT))

[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog

[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’

[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1495647104913 (13:31:44 GMT-0400 (EDT))

[XCUITest] Setting up real device

[debug] [XCUITest] Installing ‘/Users/poc/Downloads/poc.app’ on device with UUID ‘81e1a267c01927decdd9faadda9ad51f5375d1f7’…

[debug] [XCUITest] The app has been installed successfully.

[debug] [BaseDriver] Event ‘appInstalled’ logged at 1495647113052 (13:31:53 GMT-0400 (EDT))

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1495647113052 (13:31:53 GMT-0400 (EDT))

[XCUITest] Using WDA path: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[XCUITest] Using WDA agent: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/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] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=81e1a267c01927decdd9faadda9ad51f5375d1f7 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[debug] [XCUITest] Output from xcodebuild will not be logged

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

[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

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

[debug] [XCUITest] Log file for xcodebuild test: /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/38973698-BE9B-4927-8B5E-68F2296F824D/Session-WebDriverAgentRunner-2017-05-24_133159-Ub6yxQ.log

[Xcode] 2017-05-24 13:31:59.773 xcodebuild[79779:1883388] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fd909781370 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

[Xcode]

[Xcode] 2017-05-24 13:31:59.773 xcodebuild[79779:1883388] 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’

[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1495647119808 (13:31:59 GMT-0400 (EDT))

[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

[XCUITest] Shutting down sub-processes

[XCUITest] Shutting down iproxy process (pid 79778)

[debug] [XCUITest] iproxy exited with code ‘null’

[debug] [XCUITest] Removing WDA application from device

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1495647130079 (13:32:10 GMT-0400 (EDT))

[XCUITest] Using WDA path: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[XCUITest] Using WDA agent: ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/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] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=81e1a267c01927decdd9faadda9ad51f5375d1f7 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’

[debug] [XCUITest] Output from xcodebuild will not be logged

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

[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

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

[debug] [XCUITest] Log file for xcodebuild test: /Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/EF0B671B-E84A-4CC1-84BB-F3AF1BDD702A/Session-WebDriverAgentRunner-2017-05-24_133216-BZhAdV.log

[Xcode] 2017-05-24 13:32:16.760 xcodebuild[79809:1883722] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f80e9f08ed0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

[Xcode] 2017-05-24 13:32:16.760 xcodebuild[79809:1883722] 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’

[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1495647136791 (13:32:16 GMT-0400 (EDT))

[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

[XCUITest] Shutting down sub-processes

[XCUITest] Shutting down iproxy process (pid 79807)

[debug] [XCUITest] iproxy exited with code ‘null’

[debug] [XCUITest] Removing WDA application from device

[debug] [XCUITest] Error : Command ‘ios-deploy --uninstall_only --id 81e1a267c01927decdd9faadda9ad51f5375d1f7 --bundle_id com.apple.test.WebDriverAgentRunner-Runner’ exited with code 253

[XCUITest] Error: Could not remove app: ‘Command ‘ios-deploy --uninstall_only --id 81e1a267c01927decdd9faadda9ad51f5375d1f7 --bundle_id com.apple.test.WebDriverAgentRunner-Runner’ exited with code 253’

at IOSDeploy.remove$ (../../lib/ios-deploy.js:25:13)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

Error: Could not remove app: ‘Command ‘ios-deploy --uninstall_only --id 81e1a267c01927decdd9faadda9ad51f5375d1f7 --bundle_id com.apple.test.WebDriverAgentRunner-Runner’ exited with code 253’

at IOSDeploy.remove$ (../../lib/ios-deploy.js:25:13)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

[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: Could not remove app: ‘Command ‘ios-deploy --uninstall_only --id 81e1a267c01927decdd9faadda9ad51f5375d1f7 --bundle_id com.apple.test.WebDriverAgentRunner-Runner’ exited with code 253’

at IOSDeploy.remove$ (../../lib/ios-deploy.js:25:13)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at GeneratorFunctionPrototype.invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at process._tickCallback (internal/process/next_tick.js:109:7)

[HTTP] <-- POST /wd/hub/session 500 42449 ms - 320

[HTTP] --> POST /wd/hub/session {“capabilities”:[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}]}

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [null,null,[{“desiredCapabilities”:{“app”:"/Users/qa/Downloads/poc.app",“appiumVersion”:“1.6.5 beta”,“platformVersion”:“10.3.1”,“automationName”:“Appium”,“bundleId”:“com.poc.iOS”,“platformName”:“iOS”,“udid”:“81e1a267c01927decdd9faadda9ad51f5375d1f7”,“deviceName”:“iPhone 6s”,“launchTimeout”:500000}},{“requiredCapabilities”:{}}]]

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1495647147053 (13:32:27 GMT-0400 (EDT))

[MJSONWP] Encountered internal error running command: Error: You must include a platformName capability

at AppiumDriver.getDriverForCaps (../../lib/appium.js:44:13)

at AppiumDriver.createSession$ (../../lib/appium.js:157:28)

at tryCatch (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)

at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)

at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at invoke (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

at enqueueResult (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)

at F (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)

at AsyncIterator.enqueue (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)

at AsyncIterator.prototype.(anonymous function) [as next] (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

at Object.runtime.async (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)

at AppiumDriver.createSession (../../lib/appium.js:183:31)

at ../../../lib/basedriver/driver.js:207:24

at tryCatcher (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/util.js:26:23)

at Promise._settlePromiseFromHandler (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:510:31)

at Promise._settlePromiseAt (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:584:18)

at Promise._settlePromiseAtPostResolution (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:248:10)

at Async._drainQueue (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:128:12)

at Async._drainQueues (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:133:10)

at Immediate.Async.drainQueues (/Users/qa/.npm-packages/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:15:14)

at runCallback (timers.js:666:20)

at tryOnImmediate (timers.js:639:5)

at processImmediate [as _immediateCallback] (timers.js:611:5)

[HTTP] <-- POST /wd/hub/session 500 5 ms - 179

It’s a code signing issue. Do a search of this board for ‘xcodebuild failed with code 65’.

1 Like

Thanks Wreed , I followed steps Xcodebuild failed with code 65 (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 32.63 seconds , but still getting a same error.

Please correct me and provide the right direction.

Make sure to follow these one’s:

1 Like