Xcode-8.3.3-Appium-v1.6.5_Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

Hi Team,

Is there any existing open issues with Xcode-8.3.3-Appium-v1.6.5 ?, currently when I am trying with all latest version I am receiving error code 65.

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

Mac OS: v10.12.6
Xcode: v8.3.3
Appium: v1.6.5
Testing real device iOS: v10.3.3

If yes what are the compatible version I can use to test hybrid iOS app on real device with OS 10.3.3 ?

Thanks
Masood

@Masoodmd0786 did you complete setup - https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md ?

I have same setup and its working on all real devices with v10.3.3.
You can submit logs, so that I can try to solve your issue.

@Aleksei Thanks for quick response, yes I did but it did not worked for me. I am uninstalling and installing again referring to the URL you provided. In the link which you provide it ask us to provide “xcodeSigningId”, Is “xcodeSigningId” is always “iPhone Developer” ? or it need to updated based upon testing application Signin identity.

@Masoodmd0786 you need to open wda project with xcode. Add there your dev certificate. And check/build against real device that it will install successfully manually in xcode.

Yes sure @Aleksei, I was able to launch the Test App on Real device directly from xcode, but when I tried the same from Appium it was showing me error. Let me Re-install everything a give a try.

@Swapan_Chhabra Thanks for quick response, yes sure I will submit logs . I am reinstalling Xcode Appium and setting up provisioning from the provided link.

Just wanted to check what OS you are using, I am on Sierra v10.12.6.

Thanks
Masood

Thanks @Aleksei and @Swapan_Chhabra , I am able to launch webDriver agent by following the provided link https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md(Full manual configuration)

Hi,
When im trying to install .app in simulator receiving “[info] [XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’” Can you please guide me how to resolve this issue.

Mac OS : 10.13.1
Xcode: 9.1
Appium: 1.7.1

[info] [Appium] Welcome to Appium v1.7.1
[info] [Appium] Non-default server args:
[info] [Appium] port: 4725
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4725[info] [HTTP] --> GET /wd/hub/sessions {}
[debug] [MJSONWP] Calling AppiumDriver.getSessions() with args: []
[debug] [MJSONWP] Responding to client with driver.getSessions() result: []
[info] [HTTP] <-- GET /wd/hub/sessions 200 7 ms - 40 [info] [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/qaadmin/Documents/app/SeekingArrangementApp.app",“automationName”:“XCUITest”,“deviceName”:“iPhone 8 Plus”,“noReset”:false,“platformName”:“iOS”,“platformVersion”:“11.1”,“showXcodeLog”:true,“udid”:“6303E4FE-6320-4472-8F7F-E8F15C371359”,“useNewWDA”:true,“usePrebuiltWDA”:true,“xcodeOrgId”:“W8 Tech Limited”,“xcodeSigningId”:“iPhone Developer”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/qaadmin/Documents/app/SeekingArrangementApp.app",“automationName”:“XCUITest”,“deviceName”:“iPhone 8 Plus”,“noReset”:false,“platformName”:“iOS”,“platformVersion”:“11.1”,“showXcodeLog”:true,“udid”:“6303E4FE-6320-4472-8F7F-E8F15C371359”,“useNewWDA”:true,“usePrebuiltWDA”:true,“xcodeOrgId”:“W8 Tech Limited”,“xcodeSigningId”:“iPhone Developer”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1511403803304 (10:23:23 GMT+0800 (+08))
[info] [Appium] Creating new XCUITestDriver (v2.51.1) session
[info] [Appium] Capabilities:
[info] [Appium] app: ‘/Users/qaadmin/Documents/app/SeekingArrangementApp.app’
[info] [Appium] automationName: ‘XCUITest’
[info] [Appium] deviceName: ‘iPhone 8 Plus’
[info] [Appium] noReset: false
[info] [Appium] platformName: ‘iOS’
[info] [Appium] platformVersion: ‘11.1’
[info] [Appium] showXcodeLog: true
[info] [Appium] udid: ‘6303E4FE-6320-4472-8F7F-E8F15C371359’
[info] [Appium] useNewWDA: true
[info] [Appium] usePrebuiltWDA: true
[info] [Appium] xcodeOrgId: ‘W8 Tech Limited’
[info] [Appium] xcodeSigningId: ‘iPhone Developer’
[info] [Appium] newCommandTimeout: 0
[info] [Appium] connectHardwareKeyboard: true
[info] [BaseDriver] Session created with session id: 271462ee-801c-433c-9430-43c9e9947b20[debug] [XCUITest] Xcode version set to ‘9.1’
[debug] [XCUITest] iOS SDK Version set to ‘11.1’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1511403805016 (10:23:25 GMT+0800 (+08))[info] [iOSSim] Constructing iOS simulator for Xcode version 9.1 with udid ‘6303E4FE-6320-4472-8F7F-E8F15C371359’
[info] [XCUITest] Determining device to run tests on: udid: ‘6303E4FE-6320-4472-8F7F-E8F15C371359’, real device: false
[info] [BaseDriver] Using local app ‘/Users/qaadmin/Documents/app/SeekingArrangementApp.app’
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1511403806486 (10:23:26 GMT+0800 (+08))
[debug] [XCUITest] Checking whether app ‘/Users/qaadmin/Documents/app/SeekingArrangementApp.app’ is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app ‘/Users/qaadmin/Documents/app/SeekingArrangementApp.app’: ‘com.use2pay.arrangement’
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1511403806488 (10:23:26 GMT+0800 (+08))
[info] [XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1511403806619 (10:23:26 GMT+0800 (+08))[debug] [iOSLog] Starting iOS 11.1 simulator log capture
[debug] [iOSLog] System log path: /Users/qaadmin/Library/Logs/CoreSimulator/6303E4FE-6320-4472-8F7F-E8F15C371359/system.log
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1511403806856 (10:23:26 GMT+0800 (+08))
[info] [XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set[debug] [iOSSim] Setting common Simulator preferences to {“ConnectHardwareKeyboard”:true}
[debug] [iOSSim] Updated shared Simulator preferences at ‘/Users/qaadmin/Library/Preferences/com.apple.iphonesimulator.plist’ with {“ConnectHardwareKeyboard”:true}[debug] [iOSSim] The count of running Simulator UI client instances is 0
[info] [iOSSim] Booting Simulator with UDID 6303E4FE-6320-4472-8F7F-E8F15C371359…[info] [iOSSim] Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 6303E4FE-6320-4472-8F7F-E8F15C371359 -ConnectHardwareKeyboard 1[debug] [iOSSim] The count of running Simulator UI client instances is 1[info] [iOSSim] Simulator with UDID 6303E4FE-6320-4472-8F7F-E8F15C371359 booted in 72 seconds
[debug] [BaseDriver] Event ‘simStarted’ logged at 1511403879137 (10:24:39 GMT+0800 (+08))[debug] [XCUITest] Reset requested. Removing app with id ‘com.use2pay.arrangement’ from the device[debug] [XCUITest] Reset requested. Removing app with id ‘com.use2pay.arrangement’ from the device[debug] [XCUITest] Installing ‘/Users/qaadmin/Documents/app/SeekingArrangementApp.app’ on Simulator with UUID ‘6303E4FE-6320-4472-8F7F-E8F15C371359’…[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1511403925215 (10:25:25 GMT+0800 (+08))
[info] [XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[info] [XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[debug] [XCUITest] Capability ‘useNewWDA’ set to true, so uninstalling WDA before proceeding
[info] [XCUITest] Shutting down sub-processes
[debug] [XCUITest] Removing WDA application from device[debug] [BaseDriver] Event ‘wdaUninstalled’ logged at 1511403927346 (10:25:27 GMT+0800 (+08))
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1511403927348 (10:25:27 GMT+0800 (+08))
[info] [XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing running processes ‘xcodebuild.*6303E4FE-6320-4472-8F7F-E8F15C371359, iproxy 8100, 6303E4FE-6320-4472-8F7F-E8F15C371359.*XCTRunner’ for the device 6303E4FE-6320-4472-8F7F-E8F15C371359…[debug] [XCUITest] ‘pgrep -nif xcodebuild.*6303E4FE-6320-4472-8F7F-E8F15C371359’ 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] ‘pgrep -nif 6303E4FE-6320-4472-8F7F-E8F15C371359.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Using Xcode 9.1, so fixing WDA codebase[debug] [XCUITest] Beginning test with command ‘xcodebuild 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=6303E4FE-6320-4472-8F7F-E8F15C371359 IPHONEOS_DEPLOYMENT_TARGET=11.1’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will be logged. To see xcode logging, use ‘showXcodeLog’ desired capability[info] [Xcode] Build settings from command line:
[info] [Xcode]
[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] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [XCUITest] Log file for xcodebuild test: /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-44E4F8F5-4D0D-40D8-8B1F-76F2250ED31B/WebDriverAgentRunner-0534C2FD-7214-4EBB-8E3A-FB378B771784/Session-WebDriverAgentRunner-2017-11-23_102557-Np7S7a.log
[info] [Xcode] 2017-11-23 10:25:57.690 xcodebuild[56872:907304] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[info] [Xcode] /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-44E4F8F5-4D0D-40D8-8B1F-76F2250ED31B/WebDriverAgentRunner-0534C2FD-7214-4EBB-8E3A-FB378B771784/Session-WebDriverAgentRunner-2017-11-23_102557-Np7S7a.log
[info] [Xcode]
[info] [Xcode] 2017-11-23 10:25:57.690 xcodebuild[56872:906758] [MT] IDETestOperationsObserverDebug: (3B1EDF2E-753B-48E4-98A0-6118E6D23316) Beginning test session WebDriverAgentRunner-3B1EDF2E-753B-48E4-98A0-6118E6D23316 at 2017-11-23 10:25:57.691 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fe9f4242b60> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode]
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[info] [Xcode] 2017-11-23 10:25:58.025 xcodebuild[56872:906758] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[info] [Xcode] 2017-11-23 10:25:58.025 xcodebuild[56872:906758] 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}
[info] [Xcode]
[info] [Xcode] 2017-11-23 10:25:58.026 xcodebuild[56872:909617] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7fe9f40c8880>
[info] [Xcode]
[info] [Xcode] ** TEST EXECUTE FAILED **
[info] [Xcode]
[info] [Xcode]
[info] [XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[info] [Xcode] Contents of xcodebuild log file ‘/var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-44E4F8F5-4D0D-40D8-8B1F-76F2250ED31B/WebDriverAgentRunner-0534C2FD-7214-4EBB-8E3A-FB378B771784/Session-WebDriverAgentRunner-2017-11-23_102557-Np7S7a.log’:
[info] [Xcode] 10:25:57.691 xcodebuild[56872:906758] Beginning test session WebDriverAgentRunner-3B1EDF2E-753B-48E4-98A0-6118E6D23316 at 2017-11-23 10:25:57.691 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fe9f4242b60> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] 10:25:57.691 xcodebuild[56872:906758] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[info] [Xcode] test-without-building
[info] [Xcode] -project
[info] [Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[info] [Xcode] -scheme
[info] [Xcode] WebDriverAgentRunner
[info] [Xcode] -destination
[info] [Xcode] id=6303E4FE-6320-4472-8F7F-E8F15C371359
[info] [Xcode] IPHONEOS_DEPLOYMENT_TARGET=11.1
[info] [Xcode] 10:25:57.691 xcodebuild[56872:906758] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[info] [Xcode] 10:25:57.693 xcodebuild[56872:906758] Test standard output and standard error is at /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-44E4F8F5-4D0D-40D8-8B1F-76F2250ED31B/WebDriverAgentRunner-0534C2FD-7214-4EBB-8E3A-FB378B771784/StandardOutputAndStandardError.txt
[info] [Xcode] 10:25:57.694 xcodebuild[56872:906758] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by TestSessionClaim_IDETestRunSession-44E4F8F5-4D0D-40D8-8B1F-76F2250ED31B
[info] [Xcode] 10:25:57.733 xcodebuild[56872:906758] Launch session started.
[info] [Xcode] 10:25:57.743 xcodebuild[56872:906758] Setting up test runner session
[info] [Xcode] 10:25:57.744 xcodebuild[56872:909787] Sim iPhone 8: Unregistering for sim device notification with token 4
[info] [Xcode] 10:25:57.745 xcodebuild[56872:909787] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
[info] [Xcode] 10:25:57.747 xcodebuild[56872:909780] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fe9f40c7120
[info] [Xcode] 10:25:57.747 xcodebuild[56872:909787] Sim iPhone 8 has testmanagerd socket at /private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket
[info] [Xcode] 10:25:57.747 xcodebuild[56872:909787] Validating test connection socket path (/private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket)
[info] [Xcode] 10:25:57.747 xcodebuild[56872:909787] Constructing transport for test connection socket
[info] [Xcode] 10:25:57.747 xcodebuild[56872:909787] Connected socket 60 to testmanagerd for Sim iPhone 8
[info] [Xcode] 10:25:57.749 xcodebuild[56872:909780] Received connection for test runner session
[info] [Xcode] 10:25:57.749 xcodebuild[56872:909780] Listening for proxy connection request from the test bundle
[info] [Xcode] 10:25:57.750 xcodebuild[56872:906758] Adding console adaptor <IDEConsoleAdaptor: 0x7fe9f42e6be0 ‘target’ stdin: <IDEMasterPtyFileHandle: 0x7fe9f3fad780 MasterFH: <NSConcreteFileHandle: 0x7fe9f3fb4ce0> 49 SlaveFH: <NSConcreteFileHandle: 0x7fe9f3fb4a40> 59> 49 stdout: <IDEMasterPtyFileHandle: 0x7fe9f3fad780 MasterFH: <NSConcreteFileHandle: 0x7fe9f3fb4ce0> 49 SlaveFH: <NSConcreteFileHandle: 0x7fe9f3fb4a40> 59> 49 stderr: (null) 0> for test session 3B1EDF2E-753B-48E4-98A0-6118E6D23316.
[info] [Xcode] 10:25:57.750 xcodebuild[56872:909789] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fe9f40c7120
[info] [Xcode] 10:25:57.750 xcodebuild[56872:909780] Initiating session with identifier: 3B1EDF2E-753B-48E4-98A0-6118E6D23316
[info] [Xcode] 10:25:57.750 xcodebuild[56872:906758] Test runner session acquired connection.
[info] [Xcode] 10:25:57.750 xcodebuild[56872:909789] 6303E4FE-6320-4472-8F7F-E8F15C371359: Registered for sim device notification, got token 5
[info] [Xcode] 10:25:57.750 xcodebuild[56872:906758] Waiting for test process to launch.
[info] [Xcode] 10:25:57.750 xcodebuild[56872:909786] 6303E4FE-6320-4472-8F7F-E8F15C371359: Unregistering for sim device notification with token 5
[info] [Xcode] 10:25:57.751 xcodebuild[56872:906758] Claim LaunchSessionClaim_0x7fe9f40c7120 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 10:25:57.751 xcodebuild[56872:906758] Claim LaunchSessionClaim_0x7fe9f40c7120 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 10:25:57.752 xcodebuild[56872:906758] Test operation failure: Launch session expired before checking in.
[info] [Xcode] 10:25:57.752 xcodebuild[56872:906758] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Launch session expired before checking in.” UserInfo={NSLocalizedDescription=Launch session expired before checking in.}
[info] [Xcode]
[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1511403958058 (10:25:58 GMT+0800 (+08))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”.
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[info] [XCUITest] Shutting down sub-processes
[debug] [XCUITest] Removing WDA application from device[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1511403969380 (10:26:09 GMT+0800 (+08))
[info] [XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing running processes ‘xcodebuild.*6303E4FE-6320-4472-8F7F-E8F15C371359, iproxy 8100, 6303E4FE-6320-4472-8F7F-E8F15C371359.*XCTRunner’ for the device 6303E4FE-6320-4472-8F7F-E8F15C371359…[debug] [XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] ‘pgrep -nif 6303E4FE-6320-4472-8F7F-E8F15C371359.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Using Xcode 9.1, so fixing WDA codebase
[debug] [XCUITest] Beginning test with command ‘xcodebuild 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=6303E4FE-6320-4472-8F7F-E8F15C371359 IPHONEOS_DEPLOYMENT_TARGET=11.1’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will be logged. To see xcode logging, use ‘showXcodeLog’ desired capability[info] [Xcode] Build settings from command line:
[info] [Xcode]
[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
[info] [Xcode] IPHONEOS_DEPLOYMENT_TARGET = 11.1
[info] [Xcode]
[info] [Xcode] [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [XCUITest] Log file for xcodebuild test: /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log
[info] [Xcode] 2017-11-23 10:26:16.192 xcodebuild[56887:911540] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[info] [Xcode] /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log
[info] [Xcode]
[info] [Xcode] 2017-11-23 10:26:16.193 xcodebuild[56887:911105] [MT] IDETestOperationsObserverDebug: (EF3FE0D4-1E00-41D1-AB14-B95736096928) Beginning test session WebDriverAgentRunner-EF3FE0D4-1E00-41D1-AB14-B95736096928 at 2017-11-23 10:26:16.193 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7f9d5a074430> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[info] [Xcode] 2017-11-23 10:26:16.516 xcodebuild[56887:911105] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[info] [Xcode] 2017-11-23 10:26:16.516 xcodebuild[56887:911105] 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}
[info] [Xcode]
[info] [Xcode] 2017-11-23 10:26:16.517 xcodebuild[56887:912122] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7f9d5a1e3110>
[info] [Xcode]
[info] [Xcode] ** TEST EXECUTE FAILED **
[info] [Xcode]
[info] [Xcode]
[info] [XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[info] [Xcode] Contents of xcodebuild log file ‘/var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log’:
[info] [Xcode] 10:26:16.193 xcodebuild[56887:911105] Beginning test session WebDriverAgentRunner-EF3FE0D4-1E00-41D1-AB14-B95736096928 at 2017-11-23 10:26:16.193 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7f9d5a074430> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] 10:26:16.194 xcodebuild[56887:911105] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[info] [Xcode] test-without-building
[info] [Xcode] -project
[info] [Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[info] [Xcode] -scheme
[info] [Xcode] WebDriverAgentRunner
[info] [Xcode] -destination
[info] [Xcode] id=6303E4FE-6320-4472-8F7F-E8F15C371359
[info] [Xcode] IPHONEOS_DEPLOYMENT_TARGET=11.1
[info] [Xcode] 10:26:16.194 xcodebuild[56887:911105] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[info] [Xcode] 10:26:16.196 xcodebuild[56887:911105] Test standard output and standard error is at /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/StandardOutputAndStandardError.txt
[info] [Xcode] 10:26:16.197 xcodebuild[56887:911105] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by TestSessionClaim_IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A
[info] [Xcode] 10:26:16.238 xcodebuild[56887:911105] Launch session started.
[info] [Xcode] 10:26:16.252 xcodebuild[56887:911105] Setting up test runner session
[info] [Xcode] 10:26:16.252 xcodebuild[56887:912231] Sim iPhone 8: Unregistering for sim device notification with token 4
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Sim iPhone 8 has testmanagerd socket at /private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Validating test connection socket path (/private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket)
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912231] Constructing transport for test connection socket
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912231] Connected socket 49 to testmanagerd for Sim iPhone 8
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912223] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7f9d5a378100
[info] [Xcode] 10:26:16.255 xcodebuild[56887:912232] Received connection for test runner session
[info] [Xcode] 10:26:16.255 xcodebuild[56887:912232] Listening for proxy connection request from the test bundle
[info] [Xcode] 10:26:16.256 xcodebuild[56887:912232] Initiating session with identifier: EF3FE0D4-1E00-41D1-AB14-B95736096928
[info] [Xcode] 10:26:16.256 xcodebuild[56887:911105] Adding console adaptor <IDEConsoleAdaptor: 0x7f9d59fa7380 ‘target’ stdin: <IDEMasterPtyFileHandle: 0x7f9d59fb1a40 MasterFH: <NSConcreteFileHandle: 0x7f9d5a40d510> 60 SlaveFH: <NSConcreteFileHandle: 0x7f9d5a14bff0> 70> 60 stdout: <IDEMasterPtyFileHandle: 0x7f9d59fb1a40 MasterFH: <NSConcreteFileHandle: 0x7f9d5a40d510> 60 SlaveFH: <NSConcreteFileHandle: 0x7f9d5a14bff0> 70> 60 stderr: (null) 0> for test session EF3FE0D4-1E00-41D1-AB14-B95736096928.