Thanks for your reply.
I followed the documents which you shared, but still facing same issue. While running the script .app is installing in the simulator, but WebDrvierAgent is not installing in the simulator.
Please find the error logs below and guide me how to resolve the issue. In the following location i’m not able to find “WebDriverAgentRunner-Runner.app”.
Also WebDriverAgent XCode project i can able to Build successfully.
[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]
Detailed Error Logs:
[info] [Appium] Welcome to Appium v1.7.1
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[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 8 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 1511430795360 (17:53:15 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: 2ed4a73a-849b-416f-a19b-0c34abc37994[debug] [XCUITest] Xcode version set to '9.1'
[debug] [XCUITest] iOS SDK Version set to '11.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1511430795646 (17:53:15 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 1511430796085 (17:53:16 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 1511430796089 (17:53:16 GMT+0800 (+08))[info] [XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1511430796212 (17:53:16 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 1511430796378 (17:53:16 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 38 seconds
[debug] [BaseDriver] Event 'simStarted' logged at 1511430835422 (17:53:55 GMT+0800 (+08))[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 1511430875902 (17:54:35 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 1511430877608 (17:54:37 GMT+0800 (+08))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1511430877610 (17:54:37 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] IPHONEOS_DEPLOYMENT_TARGET = 11.1
[info] [Xcode]
[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] [XCUITest] Log file for xcodebuild test: /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-E8D0CB29-D1C6-4BB8-B0E0-42C44420958A/WebDriverAgentRunner-9A021AD5-32C3-4F27-A445-7DBAB71AE590/Session-WebDriverAgentRunner-2017-11-23_175452-CmJCFg.log
[info] [Xcode] 2017-11-23 17:54:52.137 xcodebuild[75868:1491898] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[info] [Xcode] /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-E8D0CB29-D1C6-4BB8-B0E0-42C44420958A/WebDriverAgentRunner-9A021AD5-32C3-4F27-A445-7DBAB71AE590/Session-WebDriverAgentRunner-2017-11-23_175452-CmJCFg.log
[info] [Xcode]
[info] [Xcode] 2017-11-23 17:54:52.137 xcodebuild[75868:1491094] [MT] IDETestOperationsObserverDebug: (3D37B388-2C70-4B78-98A9-780BA5341392) Beginning test session WebDriverAgentRunner-3D37B388-2C70-4B78-98A9-780BA5341392 at 2017-11-23 17:54:52.138 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fabd4fb5350> {
[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 17:54:52.437 xcodebuild[75868:1491094] 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]
[info] [Xcode] 2017-11-23 17:54:52.437 xcodebuild[75868:1491094] 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 17:54:52.438 xcodebuild[75868:1491294] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fabd5429640>
[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-E8D0CB29-D1C6-4BB8-B0E0-42C44420958A/WebDriverAgentRunner-9A021AD5-32C3-4F27-A445-7DBAB71AE590/Session-WebDriverAgentRunner-2017-11-23_175452-CmJCFg.log':
[info] [Xcode] 17:54:52.138 xcodebuild[75868:1491094] Beginning test session WebDriverAgentRunner-3D37B388-2C70-4B78-98A9-780BA5341392 at 2017-11-23 17:54:52.138 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fabd4fb5350> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] 17:54:52.138 xcodebuild[75868:1491094] /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] 17:54:52.138 xcodebuild[75868:1491094] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[info] [Xcode] 17:54:52.140 xcodebuild[75868:1491094] Test standard output and standard error is at /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-E8D0CB29-D1C6-4BB8-B0E0-42C44420958A/WebDriverAgentRunner-9A021AD5-32C3-4F27-A445-7DBAB71AE590/StandardOutputAndStandardError.txt
[info] [Xcode] 17:54:52.142 xcodebuild[75868:1491094] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by TestSessionClaim_IDETestRunSession-E8D0CB29-D1C6-4BB8-B0E0-42C44420958A
[info] [Xcode] 17:54:52.155 xcodebuild[75868:1491094] Launch session started.
[info] [Xcode] 17:54:52.157 xcodebuild[75868:1491094] Setting up test runner session
[info] [Xcode] 17:54:52.158 xcodebuild[75868:1492285] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fabd4ed5130
[info] [Xcode] 17:54:52.158 xcodebuild[75868:1491295] Sim iPhone 8: Unregistering for sim device notification with token 4
[info] [Xcode] 17:54:52.158 xcodebuild[75868:1491295] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
[info] [Xcode] 17:54:52.159 xcodebuild[75868:1491295] Sim iPhone 8 has testmanagerd socket at /private/tmp/com.apple.launchd.CIO8oNVX75/com.apple.testmanagerd.unix-domain.socket
[info] [Xcode] 17:54:52.159 xcodebuild[75868:1491295] Validating test connection socket path (/private/tmp/com.apple.launchd.CIO8oNVX75/com.apple.testmanagerd.unix-domain.socket)
[info] [Xcode] 17:54:52.159 xcodebuild[75868:1491295] Constructing transport for test connection socket
[info] [Xcode] 17:54:52.159 xcodebuild[75868:1491295] Connected socket 69 to testmanagerd for Sim iPhone 8
[info] [Xcode] 17:54:52.160 xcodebuild[75868:1492288] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fabd4ed5130
[info] [Xcode] 17:54:52.160 xcodebuild[75868:1491094] Adding console adaptor <IDEConsoleAdaptor: 0x7fabd53832b0 'target' stdin: <IDEMasterPtyFileHandle: 0x7fabd508cf20 MasterFH: <NSConcreteFileHandle: 0x7fabd5036e60> 38 SlaveFH: <NSConcreteFileHandle: 0x7fabd5045cd0> 55> 38 stdout: <IDEMasterPtyFileHandle: 0x7fabd508cf20 MasterFH: <NSConcreteFileHandle: 0x7fabd5036e60> 38 SlaveFH: <NSConcreteFileHandle: 0x7fabd5045cd0> 55> 38 stderr: (null) 0> for test session 3D37B388-2C70-4B78-98A9-780BA5341392.
[info] [Xcode] 17:54:52.160 xcodebuild[75868:1492288] 6303E4FE-6320-4472-8F7F-E8F15C371359: Registered for sim device notification, got token 5
[info] [Xcode] 17:54:52.160 xcodebuild[75868:1492289] 6303E4FE-6320-4472-8F7F-E8F15C371359: Unregistering for sim device notification with token 5
[info] [Xcode] 17:54:52.161 xcodebuild[75868:1492284] Received connection for test runner session
[info] [Xcode] 17:54:52.161 xcodebuild[75868:1492284] Listening for proxy connection request from the test bundle
[info] [Xcode] 17:54:52.161 xcodebuild[75868:1492284] Initiating session with identifier: 3D37B388-2C70-4B78-98A9-780BA5341392
[info] [Xcode] 17:54:52.161 xcodebuild[75868:1491094] Claim LaunchSessionClaim_0x7fabd4ed5130 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 17:54:52.162 xcodebuild[75868:1491094] Claim LaunchSessionClaim_0x7fabd4ed5130 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 17:54:52.162 xcodebuild[75868:1491094] Test runner session acquired connection.
[info] [Xcode] 17:54:52.162 xcodebuild[75868:1491094] Waiting for test process to launch.
[info] [Xcode] 17:54:52.162 xcodebuild[75868:1491094] Test operation failure: Launch session expired before checking in.
[info] [Xcode] 17:54:52.162 xcodebuild[75868:1491094] _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 1511430892493 (17:54:52 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 1511430903805 (17:55:03 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] IPHONEOS_DEPLOYMENT_TARGET = 11.1
[info] [Xcode]
[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] [XCUITest] Log file for xcodebuild test: /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-F23ADBD2-A0C9-47AD-9291-99DD04B93E8A/WebDriverAgentRunner-AFA7FEAD-F8AC-4B48-8845-D8D24215F8CE/Session-WebDriverAgentRunner-2017-11-23_175506-FOGJW4.log
[info] [Xcode] 2017-11-23 17:55:06.440 xcodebuild[75886:1493311] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[info] [Xcode] /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-F23ADBD2-A0C9-47AD-9291-99DD04B93E8A/WebDriverAgentRunner-AFA7FEAD-F8AC-4B48-8845-D8D24215F8CE/Session-WebDriverAgentRunner-2017-11-23_175506-FOGJW4.log
[info] [Xcode]
[info] [Xcode] 2017-11-23 17:55:06.440 xcodebuild[75886:1493228] [MT] IDETestOperationsObserverDebug: (0D8DEE53-3432-45F6-8B17-FBD68BA8F910) Beginning test session WebDriverAgentRunner-0D8DEE53-3432-45F6-8B17-FBD68BA8F910 at 2017-11-23 17:55:06.441 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fb3ec254800> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] [info] [Xcode] 2017-11-23 17:55:06.769 xcodebuild[75886:1493228] 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 17:55:06.769 xcodebuild[75886:1493228] 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 17:55:06.770 xcodebuild[75886:1493310] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fb3ebf177f0>
[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-F23ADBD2-A0C9-47AD-9291-99DD04B93E8A/WebDriverAgentRunner-AFA7FEAD-F8AC-4B48-8845-D8D24215F8CE/Session-WebDriverAgentRunner-2017-11-23_175506-FOGJW4.log':
[info] [Xcode] 17:55:06.441 xcodebuild[75886:1493228] Beginning test session WebDriverAgentRunner-0D8DEE53-3432-45F6-8B17-FBD68BA8F910 at 2017-11-23 17:55:06.441 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7fb3ec254800> {
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] 17:55:06.441 xcodebuild[75886:1493228] /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] 17:55:06.441 xcodebuild[75886:1493228] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[info] [Xcode] 17:55:06.444 xcodebuild[75886:1493228] Test standard output and standard error is at /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-F23ADBD2-A0C9-47AD-9291-99DD04B93E8A/WebDriverAgentRunner-AFA7FEAD-F8AC-4B48-8845-D8D24215F8CE/StandardOutputAndStandardError.txt
[info] [Xcode] 17:55:06.445 xcodebuild[75886:1493228] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by TestSessionClaim_IDETestRunSession-F23ADBD2-A0C9-47AD-9291-99DD04B93E8A
[info] [Xcode] 17:55:06.505 xcodebuild[75886:1493228] Launch session started.
[info] [Xcode] 17:55:06.506 xcodebuild[75886:1493228] Setting up test runner session
[info] [Xcode] 17:55:06.507 xcodebuild[75886:1493570] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fb3ec427bf0
[info] [Xcode] 17:55:06.507 xcodebuild[75886:1493536] Sim iPhone 8: Unregistering for sim device notification with token 4
[info] [Xcode] 17:55:06.507 xcodebuild[75886:1493536] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
[info] [Xcode] 17:55:06.509 xcodebuild[75886:1493536] Sim iPhone 8 has testmanagerd socket at /private/tmp/com.apple.launchd.CIO8oNVX75/com.apple.testmanagerd.unix-domain.socket
[info] [Xcode] 17:55:06.509 xcodebuild[75886:1493536] Validating test connection socket path (/private/tmp/com.apple.launchd.CIO8oNVX75/com.apple.testmanagerd.unix-domain.socket)
[info] [Xcode] 17:55:06.509 xcodebuild[75886:1493536] Constructing transport for test connection socket
[info] [Xcode] 17:55:06.509 xcodebuild[75886:1493536] Connected socket 69 to testmanagerd for Sim iPhone 8
[info] [Xcode] 17:55:06.510 xcodebuild[75886:1493571] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7fb3ec427bf0
[info] [Xcode] 17:55:06.510 xcodebuild[75886:1493228] Adding console adaptor <IDEConsoleAdaptor: 0x7fb3ebd516e0 'target' stdin: <IDEMasterPtyFileHandle: 0x7fb3ec025000 MasterFH: <NSConcreteFileHandle: 0x7fb3ec0b8610> 38 SlaveFH: <NSConcreteFileHandle: 0x7fb3ebdad1c0> 55> 38 stdout: <IDEMasterPtyFileHandle: 0x7fb3ec025000 MasterFH: <NSConcreteFileHandle: 0x7fb3ec0b8610> 38 SlaveFH: <NSConcreteFileHandle: 0x7fb3ebdad1c0> 55> 38 stderr: (null) 0> for test session 0D8DEE53-3432-45F6-8B17-FBD68BA8F910.
[info] [Xcode] 17:55:06.510 xcodebuild[75886:1493571] 6303E4FE-6320-4472-8F7F-E8F15C371359: Registered for sim device notification, got token 5
[info] [Xcode] 17:55:06.511 xcodebuild[75886:1493536] 6303E4FE-6320-4472-8F7F-E8F15C371359: Unregistering for sim device notification with token 5
[info] [Xcode] 17:55:06.512 xcodebuild[75886:1493569] Received connection for test runner session
[info] [Xcode] 17:55:06.512 xcodebuild[75886:1493569] Listening for proxy connection request from the test bundle
[info] [Xcode] 17:55:06.513 xcodebuild[75886:1493228] Claim LaunchSessionClaim_0x7fb3ec427bf0 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 17:55:06.513 xcodebuild[75886:1493228] Claim LaunchSessionClaim_0x7fb3ec427bf0 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 17:55:06.514 xcodebuild[75886:1493569] Initiating session with identifier: 0D8DEE53-3432-45F6-8B17-FBD68BA8F910
[info] [Xcode] 17:55:06.516 xcodebuild[75886:1493228] Test runner session acquired connection.
[info] [Xcode] 17:55:06.516 xcodebuild[75886:1493228] Waiting for test process to launch.
[info] [Xcode] 17:55:06.516 xcodebuild[75886:1493228] Test operation failure: Launch session expired before checking in.
[info] [Xcode] 17:55:06.517 xcodebuild[75886:1493228] _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 1511430906798 (17:55:06 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[error] [XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65".
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".
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)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[error] [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65".
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)
[info] [HTTP] <-- POST /wd/hub/session 500 122791 ms - 235