Skip to content

Instantly share code, notes, and snippets.

@shane51
Created November 17, 2017 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shane51/c0a2228565de2f7d02c621a9a92e4967 to your computer and use it in GitHub Desktop.
Save shane51/c0a2228565de2f7d02c621a9a92e4967 to your computer and use it in GitHub Desktop.
Appium log with removing useNewWDA, bundleId, MobileCapabilityType.UDID and MobileCapabilityType.FULL_RESET capabilities
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},{},{"desiredCapabilities":{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"alwaysMatch":{"platformName":"iOS"},"firstMatch":[]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1510823180735 (17:06:20 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] app: '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app'
[Appium] platformVersion: '11.1'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone Simulator'
[BaseDriver] Session created with session id: 103e76fc-0eff-4469-8cbf-919ca2739903
[debug] [XCUITest] Xcode version set to '9.1' (tools v9.0.1.0.1.1506734476)
[debug] [XCUITest] iOS SDK Version set to '11.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1510823180810 (17:06:20 GMT+0800 (CST))
[debug] [XCUITest] Changing deviceName from 'iPhone Simulator' to 'iPhone 6'
[iOSSim] Constructing iOS simulator for Xcode version 9.1 with udid 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5'
[XCUITest] Determining device to run tests on: udid: 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5', real device: false
[BaseDriver] Using local app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1510823181087 (17:06:21 GMT+0800 (CST))
[debug] [XCUITest] Checking whether app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app': 'com.*****.qa2'
[debug] [BaseDriver] Event 'resetStarted' logged at 1510823181099 (17:06:21 GMT+0800 (CST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1510823181211 (17:06:21 GMT+0800 (CST))
[debug] [iOSLog] Starting iOS 11.1 simulator log capture
[debug] [iOSLog] System log path: /Users/*****/Library/Logs/CoreSimulator/A7170447-DFD6-4C5E-8253-9596CDCBFCC5/system.log
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1510823181365 (17:06:21 GMT+0800 (CST))
[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":false}
[debug] [iOSSim] Updated shared Simulator preferences at '/Users/*****/Library/Preferences/com.apple.iphonesimulator.plist' with {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Booting Simulator with UDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5...
[iOSSim] Simulator with UDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5 booted in 12 seconds
[debug] [BaseDriver] Event 'simStarted' logged at 1510823194120 (17:06:34 GMT+0800 (CST))
[debug] [XCUITest] Installing '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app' on Simulator with UUID 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1510823197452 (17:06:37 GMT+0800 (CST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Capability 'useNewWDA' set to false, so trying to reuse currently running WDA instance at 'http://localhost:8100/'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [XCUITest] Detected WDA listening at 'http://localhost:8100/'. Setting WDA endpoint to 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1510823197464 (17:06:37 GMT+0800 (CST))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510823197466 (17:06:37 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510823389861 (17:09:49 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510823582247 (17:13:02 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510823774650 (17:16:14 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"capabilities":{"desiredCapabilities":{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"alwaysMatch":{"platformName":"iOS"},"firstMatch":[]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},{},{"desiredCapabilities":{"app":"/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app","platformVersion":"11.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone Simulator"},"requiredCapabilities":{},"alwaysMatch":{"platformName":"iOS"},"firstMatch":[]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1510823782751 (17:16:22 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] app: '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app'
[Appium] platformVersion: '11.1'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone Simulator'
[BaseDriver] Session created with session id: ba6bf146-7547-43ac-a972-1420f496f480
[debug] [XCUITest] Xcode version set to '9.1' (tools v9.0.1.0.1.1506734476)
[debug] [XCUITest] iOS SDK Version set to '11.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1510823782819 (17:16:22 GMT+0800 (CST))
[debug] [XCUITest] Changing deviceName from 'iPhone Simulator' to 'iPhone 6'
[iOSSim] Constructing iOS simulator for Xcode version 9.1 with udid 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5'
[XCUITest] Determining device to run tests on: udid: 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5', real device: false
[BaseDriver] Using local app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1510823783099 (17:16:23 GMT+0800 (CST))
[debug] [XCUITest] Checking whether app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app': 'com.*****.qa2'
[debug] [BaseDriver] Event 'resetStarted' logged at 1510823783100 (17:16:23 GMT+0800 (CST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1510823783304 (17:16:23 GMT+0800 (CST))
[debug] [iOSLog] Starting iOS 11.1 simulator log capture
[debug] [iOSLog] System log path: /Users/*****/Library/Logs/CoreSimulator/A7170447-DFD6-4C5E-8253-9596CDCBFCC5/system.log
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1510823783425 (17:16:23 GMT+0800 (CST))
[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":false}
[debug] [iOSSim] Updated shared Simulator preferences at '/Users/*****/Library/Preferences/com.apple.iphonesimulator.plist' with {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Both Simulator with UDID A7170447-DFD6-4C5E-8253-9596CDCBFCC5 and the UI client are currently running
[debug] [BaseDriver] Event 'simStarted' logged at 1510823783942 (17:16:23 GMT+0800 (CST))
[debug] [XCUITest] Reset requested. Removing app with id 'com.*****.qa2' from the device
[debug] [XCUITest] Installing '/Users/*****/Documents/work/*****/*****-Mobile-Automation-Framework/src/main/resources/***** - QA.app' on Simulator with UUID 'A7170447-DFD6-4C5E-8253-9596CDCBFCC5'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1510823787083 (17:16:27 GMT+0800 (CST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Capability 'useNewWDA' set to false, so trying to reuse currently running WDA instance at 'http://localhost:8100/'
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'. Rebuilding...
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1510823790097 (17:16:30 GMT+0800 (CST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5, iproxy 8100, A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*XCTRunner' for the device A7170447-DFD6-4C5E-8253-9596CDCBFCC5...
[debug] [XCUITest] 'pgrep -nif xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5' 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 A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*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 build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=A7170447-DFD6-4C5E-8253-9596CDCBFCC5 IPHONEOS_DEPLOYMENT_TARGET=11.1' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use 'showXcodeLog' desired capability
[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] [XCUITest] Log file for xcodebuild test: /var/folders/4p/kdhmsjfj7_x8dqy1lbzxc7h00000gn/T/com.apple.dt.XCTest/IDETestRunSession-EBD01E35-BBA3-4C9C-B6A8-C50D25827BEE/WebDriverAgentRunner-2AF8FC38-F2BE-468D-AD79-E9869A6B56B5/Session-WebDriverAgentRunner-2017-11-16_171633-2jPjuQ.log
[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] [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] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /var/folders/4p/kdhmsjfj7_x8dqy1lbzxc7h00000gn/T/com.apple.dt.XCTest/IDETestRunSession-EBD01E35-BBA3-4C9C-B6A8-C50D25827BEE/WebDriverAgentRunner-2AF8FC38-F2BE-468D-AD79-E9869A6B56B5/Session-WebDriverAgentRunner-2017-11-16_171646-mYqRWZ.log
[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
[Xcode] 2017-11-16 17:16:35.262493+0800 WebDriverAgentRunner-Runner[13582:3422046] +[CATransaction synchronize] called within transaction
[Xcode] 2017-11-16 17:16:35.332949+0800 WebDriverAgentRunner-Runner[13582:3422046] Running tests...
[Xcode] 2017-11-16 17:16:36.181854+0800 WebDriverAgentRunner-Runner[13582:3422046] Continuing to run tests in the background with task ID 1
[Xcode] Test Suite 'All tests' started at 2017-11-16 17:16:37.110
[Xcode] Test Suite 'WebDriverAgentLib.framework' started at 2017-11-16 17:16:37.111
[Xcode] Test Suite 'WebDriverAgentLib.framework' passed at 2017-11-16 17:16:37.111.
[Xcode] Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2017-11-16 17:16:37.111
[Xcode] Test Suite 'UITestingUITests' started at 2017-11-16 17:16:37.112
[Xcode] Test Case '-[UITestingUITests testRunner]' started.
[Xcode] t = 0.00s Start Test at 2017-11-16 17:16:37.112
[Xcode] t = 0.00s Set Up
[Xcode] 2017-11-16 17:16:37.114256+0800 WebDriverAgentRunner-Runner[13582:3422046] Built at Nov 16 2017 14:04:48
[Xcode] 2017-11-16 17:16:37.128652+0800 WebDriverAgentRunner-Runner[13582:3422046] Failed to start web server on port 8100 with error Error Domain=com.facebook.WebDriverAgent Code=1 "Unable to start web server on port 8100" UserInfo={NSLocalizedDescription=Unable to start web server on port 8100, NSUnderlyingError=0x600000243c60 {Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use" UserInfo={NSLocalizedDescription=Address already in use, NSLocalizedFailureReason=Error in bind() function}}}
[Xcode] 2017-11-16 17:16:37.128800+0800 WebDriverAgentRunner-Runner[13582:3422046] Last attempt to start web server failed with error Error Domain=com.facebook.WebDriverAgent Code=1 "Unable to start web server on port 8100" UserInfo={NSLocalizedDescription=Unable to start web server on port 8100, NSUnderlyingError=0x600000243c60 {Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use" UserInfo={NSLocalizedDescription=Address already in use, NSLocalizedFailureReason=Error in bind() function}}}
[Xcode] 2017-11-16 17:16:48.984962+0800 WebDriverAgentRunner-Runner[13602:3423321] +[CATransaction synchronize] called within transaction
[Xcode] 2017-11-16 17:16:49.053973+0800 WebDriverAgentRunner-Runner[13602:3423321] Running tests...
[Xcode] 2017-11-16 17:16:49.432059+0800 WebDriverAgentRunner-Runner[13602:3423321] Continuing to run tests in the background with task ID 1
[Xcode]
[Xcode] Restarting after unexpected exit or crash in UITestingUITests/testRunner; summary will include totals from previous launches.
[Xcode]
[Xcode] Test Suite 'Selected tests' started at 2017-11-16 17:16:50.330
[Xcode] Test Suite 'WebDriverAgentLib.framework' started at 2017-11-16 17:16:50.331
[Xcode] Test Suite 'WebDriverAgentLib.framework' passed at 2017-11-16 17:16:50.331.
[Xcode] Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2017-11-16 17:16:50.332
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' failed at 2017-11-16 17:16:50.332.
[Xcode] Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'Selected tests' failed at 2017-11-16 17:16:50.332.
[Xcode] Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.002) seconds
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1510823810699 (17:16:50 GMT+0800 (CST))
[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
[debug] [XCUITest] Removing WDA application from device
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1510823821841 (17:17:01 GMT+0800 (CST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5, iproxy 8100, A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*XCTRunner' for the device A7170447-DFD6-4C5E-8253-9596CDCBFCC5...
[debug] [XCUITest] 'pgrep -nif xcodebuild.*A7170447-DFD6-4C5E-8253-9596CDCBFCC5' 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 A7170447-DFD6-4C5E-8253-9596CDCBFCC5.*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 build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=A7170447-DFD6-4C5E-8253-9596CDCBFCC5 IPHONEOS_DEPLOYMENT_TARGET=11.1' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use 'showXcodeLog' desired capability
[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] [XCUITest] Log file for xcodebuild test: /var/folders/4p/kdhmsjfj7_x8dqy1lbzxc7h00000gn/T/com.apple.dt.XCTest/IDETestRunSession-6C6AC65B-AE92-4826-B2E9-27546626E935/WebDriverAgentRunner-43A7D3A8-1225-415D-B24D-239D5FDF10AE/Session-WebDriverAgentRunner-2017-11-16_171703-JnrpQh.log
[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/4p/kdhmsjfj7_x8dqy1lbzxc7h00000gn/T/com.apple.dt.XCTest/IDETestRunSession-6C6AC65B-AE92-4826-B2E9-27546626E935/WebDriverAgentRunner-43A7D3A8-1225-415D-B24D-239D5FDF10AE/Session-WebDriverAgentRunner-2017-11-16_171707-wz6WLB.log
[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] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-11-16 17:17:05.454779+0800 WebDriverAgentRunner-Runner[13623:3424300] +[CATransaction synchronize] called within transaction
[Xcode] 2017-11-16 17:17:05.482117+0800 WebDriverAgentRunner-Runner[13623:3424300] Running tests...
[Xcode] 2017-11-16 17:17:05.794312+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl accessibilityTraits]
[Xcode] 2017-11-16 17:17:05.794423+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl accessibilityIncrement]
[Xcode] 2017-11-16 17:17:05.794509+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl accessibilityDecrement]
[Xcode] 2017-11-16 17:17:05.794589+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl accessibilityValue]
[Xcode] 2017-11-16 17:17:05.794661+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl accessibilityLabel]
[Xcode] 2017-11-16 17:17:05.794742+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding -[CAMLightingControl isAccessibilityElement]
[Xcode] 2017-11-16 17:17:05.794817+0800 WebDriverAgentRunner-Runner[13623:3424300] [AXValidations] UIAccessibility Error adding +[CAMLightingControl safeCategoryBaseClass]
[Xcode] 2017-11-16 17:17:05.821080+0800 WebDriverAgentRunner-Runner[13623:3424300] Continuing to run tests in the background with task ID 1
[Xcode] Test Suite 'All tests' started at 2017-11-16 17:17:06.704
[Xcode] Test Suite 'WebDriverAgentLib.framework' started at 2017-11-16 17:17:06.705
[Xcode] Test Suite 'WebDriverAgentLib.framework' passed at 2017-11-16 17:17:06.705.
[Xcode] Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2017-11-16 17:17:06.706
[Xcode] Test Suite 'UITestingUITests' started at 2017-11-16 17:17:06.706
[Xcode] Test Case '-[UITestingUITests testRunner]' started.
[Xcode] t = 0.00s Start Test at 2017-11-16 17:17:06.709
[Xcode] t = 0.00s Set Up
[Xcode] 2017-11-16 17:17:06.711275+0800 WebDriverAgentRunner-Runner[13623:3424300] Built at Nov 16 2017 14:04:48
[Xcode] 2017-11-16 17:17:06.725259+0800 WebDriverAgentRunner-Runner[13623:3424300] Failed to start web server on port 8100 with error Error Domain=com.facebook.WebDriverAgent Code=1 "Unable to start web server on port 8100" UserInfo={NSLocalizedDescription=Unable to start web server on port 8100, NSUnderlyingError=0x600000258b70 {Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use" UserInfo={NSLocalizedDescription=Address already in use, NSLocalizedFailureReason=Error in bind() function}}}
[Xcode] 2017-11-16 17:17:06.725421+0800 WebDriverAgentRunner-Runner[13623:3424300] Last attempt to start web server failed with error Error Domain=com.facebook.WebDriverAgent Code=1 "Unable to start web server on port 8100" UserInfo={NSLocalizedDescription=Unable to start web server on port 8100, NSUnderlyingError=0x600000258b70 {Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use" UserInfo={NSLocalizedDescription=Address already in use, NSLocalizedFailureReason=Error in bind() function}}}
[Xcode] 2017-11-16 17:17:10.157877+0800 WebDriverAgentRunner-Runner[13627:3425119] +[CATransaction synchronize] called within transaction
[Xcode] 2017-11-16 17:17:10.223949+0800 WebDriverAgentRunner-Runner[13627:3425119] Running tests...
[Xcode] 2017-11-16 17:17:14.759889+0800 WebDriverAgentRunner-Runner[13627:3425119] Continuing to run tests in the background with task ID 1
[Xcode]
[Xcode] Restarting after unexpected exit or crash in UITestingUITests/testRunner; summary will include totals from previous launches.
[Xcode]
[Xcode] Test Suite 'Selected tests' started at 2017-11-16 17:17:15.638
[Xcode] Test Suite 'WebDriverAgentLib.framework' started at 2017-11-16 17:17:15.639
[Xcode] Test Suite 'WebDriverAgentLib.framework' passed at 2017-11-16 17:17:15.639.
[Xcode] Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2017-11-16 17:17:15.639
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' failed at 2017-11-16 17:17:15.639.
[Xcode] Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
[Xcode] Test Suite 'Selected tests' failed at 2017-11-16 17:17:15.640.
[Xcode] Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.002) seconds
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1510823835934 (17:17:15 GMT+0800 (CST))
[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
[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:381:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/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:381:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/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:381:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/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 64324 ms - 235
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510823967045 (17:19:27 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"****.***.21.177\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510824159398 (17:22:39 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.1\",\n \"ip\" : \"**.**.**.**\"\n },\n \"build\" : {\n \"time\" : \"Nov 16 2017 14:04:48\"\n }\n },\n \"sessionId\" : \"B58088E8-30B4-4FF5-8985-7C0158FA572B\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.*****.qa2","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.*****.qa2 application","sessionId":"B58088E8-30B4-4FF5-8985-7C0158FA572B","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1510824351811 (17:25:51 GMT+0800 (CST))
[debug] [XCUITest] Sending createSession command to WDA
@Pr60
Copy link

Pr60 commented May 1, 2018

Hi, were you able to resolve this issue? I'm facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment