Appium not utilising the already opened iOS simulator

## Issue

Hi Team,

I am trying to run the iOS tests on already opened simulator (same capabilities as provided in the test - deviceName: iPhone 7 Plus, platformVersion: 10.3). But every time test is opening new simulator with name ‘appiumTest-’, but executing the test on already opened simulator.

I have set the fullReset capability to ‘false’, but no luck

## Environment

Appium version - 1.7.2
Xcode - 9.1
iOS version try to run the test - 10.3

## Logs

Below is the log:

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”},“capabilities”:{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”},“firstMatch”:[{“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”},null,{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”},“firstMatch”:[{“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1518174985926 (11:16:25 GMT+0000 (GMT))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"/Users/c0250543/… into desiredCapabilities object {“app”:"/Users/c0250543/Wallet Apps/Wallet.app"…
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: /Users/c0250543/Wallet Apps/Wallet.app
[Appium] automationName: XCUITEST
[Appium] connectHardwareKeyboard: false
[Appium] deviceName: iPhone 7 Plus
[Appium] fullReset: false
[Appium] newCommandTimeout: 3600
[Appium] noReset: true
[Appium] platformName: ios
[Appium] platformVersion: 10.3
[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘fullReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘connectHardwareKeyboard’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘3600’) to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: 84e21c40-e657-450d-8216-7fb2cd8dd1fb
[debug] [XCUITest] Current user: ‘c0250543’
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to ‘9.0’ (tools v9.1.0.0.1.1508540944)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518174986661 (11:16:26 GMT+0000 (GMT))
[XCUITest] Simulator udid not provided, using desired caps to create a new simulator
[debug] [simctl] Creating simulator with name ‘appiumTest-84e21c40-e657-450d-8216-7fb2cd8dd1fb’, device type id ‘iPhone 7 Plus’ and runtime id ‘10.3.1’
[iOSSim] Constructing iOS simulator for Xcode version 9.0 with udid ‘88EF20D3-48DA-49E8-9626-40463E0E3BF2’
[XCUITest] Created simulator with udid ‘88EF20D3-48DA-49E8-9626-40463E0E3BF2’.
[XCUITest] Determining device to run tests on: udid: ‘88EF20D3-48DA-49E8-9626-40463E0E3BF2’, real device: false
[BaseDriver] Using local app ‘/Users/c0250543/Wallet Apps/Wallet.app’
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1518174988290 (11:16:28 GMT+0000 (GMT))
[debug] [XCUITest] Checking whether app ‘/Users/c0250543/Wallet Apps/Wallet.app’ is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app ‘/Users/c0250543/Wallet Apps/Wallet.app’: ‘uk.co.santander.wallet’
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1518174988292 (11:16:28 GMT+0000 (GMT))
[debug] [XCUITest] Reset: noReset is on. Leaving simulator as is
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1518174988292 (11:16:28 GMT+0000 (GMT))
[XCUITest] Continuing without capturing logs: iOS Simulator with udid 88EF20D3-48DA-49E8-9626-40463E0E3BF2 is not running
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] No Simulator cache items for cleanup were matched in ‘/Users/c0250543/Library/Developer/CoreSimulator/Devices/88EF20D3-48DA-49E8-9626-40463E0E3BF2/data/Library/Caches’
[debug] [iOSSim] Setting common Simulator preferences to {“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] Updated 88EF20D3-48DA-49E8-9626-40463E0E3BF2 Simulator preferences at ‘/Users/c0250543/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 88EF20D3-48DA-49E8-9626-40463E0E3BF2…
[iOSSim] Simulator with UDID 88EF20D3-48DA-49E8-9626-40463E0E3BF2 booted in 21 seconds
[debug] [BaseDriver] Event ‘simStarted’ logged at 1518175009985 (11:16:49 GMT+0000 (GMT))
[XCUITest] Continuing without capturing logs: iOS Simulator with udid 88EF20D3-48DA-49E8-9626-40463E0E3BF2 is not running
[debug] [XCUITest] Installing ‘/Users/c0250543/Wallet Apps/Wallet.app’ on Simulator with UUID ‘88EF20D3-48DA-49E8-9626-40463E0E3BF2’…
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1518175017829 (11:16:57 GMT+0000 (GMT))
[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’
[XCUITest] Detected 1 obsolete cached process from previous WDA sessions. Cleaning up…
[XCUITest] Failed to kill obsolete cached process ‘61536’. Original error:
Error: Killing process 61536 failed:
at Promise.all.then (/usr/local/lib/node_modules/appium/node_modules/fkill/index.js:68:10)
[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” : “10.3.1”,\n “sdkVersion” : “11.0”\n },\n “ios” : {\n “simulatorVersion” : “10.3.1”,\n “ip” : “180.161.125.91”\n },\n “build” : {\n “time” : “Feb 9 2018 11:01:31”\n }\n },\n “sessionId” : “0D135003-30AD-4122-A054-B2A045F1C6BD”,\n “status” : 0\n}”
[XCUITest] Will reuse previously cached WDA instance at ‘http://localhost:8100/’. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1518175017982 (11:16:57 GMT+0000 (GMT))
[XCUITest] Using provided WebdriverAgent at ‘http://localhost:8100/
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1518175017983 (11:16:57 GMT+0000 (GMT))
[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” : “10.3.1”,\n “sdkVersion” : “11.0”\n },\n “ios” : {\n “simulatorVersion” : “10.3.1”,\n “ip” : “180.161.125.91”\n },\n “build” : {\n “time” : “Feb 9 2018 11:01:31”\n }\n },\n “sessionId” : “0D135003-30AD-4122-A054-B2A045F1C6BD”,\n “status” : 0\n}”
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“uk.co.santander.wallet”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“capabilities”:{“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}},“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1518175019547 (11:16:59 GMT+0000 (GMT))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1518175019547 (11:16:59 GMT+0000 (GMT))
[XCUITest] Skipping setting of the initial display orientation. Set the “orientation” capability to either “LANDSCAPE” or “PORTRAIT”, if this is an undesired behavior.
[debug] [BaseDriver] Event ‘orientationSet’ logged at 1518175019547 (11:16:59 GMT+0000 (GMT))
[Appium] New XCUITestDriver session created successfully, session 84e21c40-e657-450d-8216-7fb2cd8dd1fb added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1518175019548 (11:16:59 GMT+0000 (GMT))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:"",“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone 7 Plus”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“udid”:“88EF20D3-48DA-49E8-9626-40463E0E3BF2”}
[HTTP] <-- POST /wd/hub/session 200 33624 ms - 555
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 106 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 93 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 92 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 91 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 95 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements {“using”:“id”,“value”:“SKIP”}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: [“id”,“SKIP”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElements’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/elements] with body: {“using”:“id”,“value”:“SKIP”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/elements 200 91 ms - 74
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/element {“using”:“id”,“value”:“pidTextField”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“id”,“pidTextField”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/element] with body: {“using”:“id”,“value”:“pidTextField”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“ELEMENT”:“1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E”},“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E”}
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/element 200 90 ms - 122
[HTTP] --> GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘getSession’
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “capabilities” : {\n “device” : “iphone”,\n “browserName” : “Wallet”,\n “sdkVersion” : “10.3.1”,\n “CFBundleIdentifier” : “uk.co.santander.wallet”\n }\n },\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “status” : 0\n}”
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“udid”:“88EF20D3-48DA-49E8-9626-40463E0E3BF2”,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone 7 Plus”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}
[HTTP] <-- GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb 200 70 ms - 468
[HTTP] --> GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘getSession’
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “capabilities” : {\n “device” : “iphone”,\n “browserName” : “Wallet”,\n “sdkVersion” : “10.3.1”,\n “CFBundleIdentifier” : “uk.co.santander.wallet”\n }\n },\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “status” : 0\n}”
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“udid”:“88EF20D3-48DA-49E8-9626-40463E0E3BF2”,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone 7 Plus”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}
[HTTP] <-- GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb 200 71 ms - 468
[HTTP] --> GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘getSession’
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “capabilities” : {\n “device” : “iphone”,\n “browserName” : “Wallet”,\n “sdkVersion” : “10.3.1”,\n “CFBundleIdentifier” : “uk.co.santander.wallet”\n }\n },\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “status” : 0\n}”
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“udid”:“88EF20D3-48DA-49E8-9626-40463E0E3BF2”,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone 7 Plus”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}
[HTTP] <-- GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb 200 87 ms - 468
[HTTP] --> GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘getSession’
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “capabilities” : {\n “device” : “iphone”,\n “browserName” : “Wallet”,\n “sdkVersion” : “10.3.1”,\n “CFBundleIdentifier” : “uk.co.santander.wallet”\n }\n },\n “sessionId” : “7A91D432-9269-44F7-B6A7-25121DE8E02F”,\n “status” : 0\n}”
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“udid”:“88EF20D3-48DA-49E8-9626-40463E0E3BF2”,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone 7 Plus”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}
[HTTP] <-- GET /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb 200 80 ms - 468
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/element/1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E/click {“id”:“1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E”}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/element/1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E/click] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/element/1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E/click] with body: {“id”:“1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E”}
[debug] [JSONWP Proxy] Got response with status 200: {“status”:0,“id”:“1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E”,“value”:"",“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”}
[JSONWP Proxy] Replacing sessionId 7A91D432-9269-44F7-B6A7-25121DE8E02F with 84e21c40-e657-450d-8216-7fb2cd8dd1fb
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/element/1FE34B77-7152-472D-9BAF-9E5DBB4B4E1E/click 200 760 ms - 118
[HTTP] --> POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/appium/device/hide_keyboard {“keyName”:“tapOutside”}
[debug] [MJSONWP] Calling AppiumDriver.hideKeyboard() with args: [null,null,null,“tapOutside”,“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [XCUITest] Executing command ‘hideKeyboard’
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/element] with body: {“using”:“class name”,“value”:“XCUIElementTypeKeyboard”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“ELEMENT”:“5047477C-14DD-4DB3-8634-A053BA5D3B58”},“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element/5047477C-14DD-4DB3-8634-A053BA5D3B58/elements] to [POST http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F/element/5047477C-14DD-4DB3-8634-A053BA5D3B58/elements] with body: {“using”:“accessibility id”,“value”:“tapOutside”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:[],“sessionId”:“7A91D432-9269-44F7-B6A7-25121DE8E02F”,“status”:0}
[debug] [MJSONWP] Responding to client with driver.hideKeyboard() result: null
[HTTP] <-- POST /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb/appium/device/hide_keyboard 200 344 ms - 76
[HTTP] --> DELETE /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“84e21c40-e657-450d-8216-7fb2cd8dd1fb”]
[debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1518175024638 (11:17:04 GMT+0000 (GMT))
[Appium] Removing session 84e21c40-e657-450d-8216-7fb2cd8dd1fb from our master session list
[debug] [JSONWP Proxy] Proxying [DELETE /session/84e21c40-e657-450d-8216-7fb2cd8dd1fb] to [DELETE http://localhost:8100/session/7A91D432-9269-44F7-B6A7-25121DE8E02F] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “62C860F1-01F7-45C7-B54E-E6C52DC87214”,\n “status” : 0\n}”
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1518175024876 (11:17:04 GMT+0000 (GMT))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/84e21c40-e657-450d-8216-7fb2cd8dd1fb 200 240 ms - 76

Log for xcrun simctl list

== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)
iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)
iPhone SE (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)
iPhone2017-A (com.apple.CoreSimulator.SimDeviceType.iPhone-8)
iPhone2017-B (com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)
iPhone2017-C (com.apple.CoreSimulator.SimDeviceType.iPhone-X)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
iPad Air 2 (com.apple.CoreSimulator.SimDeviceType.iPad-Air-2)
iPad (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad–5th-generation-)
iPad Pro (9.7-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro–9-7-inch-)
iPad Pro (12.9-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro)
iPad Pro (12.9-inch) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro–12-9-inch—2nd-generation-)
iPad Pro (10.5-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro–10-5-inch-)
Apple TV (com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p)
Apple TV 4K (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K)
Apple TV 4K (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p)
Apple Watch - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm)
Apple Watch - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm)
Apple Watch Series 2 - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm)
Apple Watch Series 2 - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm)
Watch2017 - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm)
Watch2017 - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm)
== Runtimes ==
iOS 10.0 (10.0 - 14A345) - com.apple.CoreSimulator.SimRuntime.iOS-10-0
iOS 10.1 (10.1 - 14B72) - com.apple.CoreSimulator.SimRuntime.iOS-10-1
iOS 10.3 (10.3.1 - 14E8301) - com.apple.CoreSimulator.SimRuntime.iOS-10-3
iOS 11.0 (11.0 - 15A372) - com.apple.CoreSimulator.SimRuntime.iOS-11-0
iOS 11.0 (11.0.1 - 15A8401) - com.apple.CoreSimulator.SimRuntime.iOS-11-0
tvOS 11.0 (11.0 - 15J380) - com.apple.CoreSimulator.SimRuntime.tvOS-11-0
watchOS 4.0 (4.0 - 15R372) - com.apple.CoreSimulator.SimRuntime.watchOS-4-0
== Devices ==
– iOS 10.0 –
iPhone 5 (EEC7F54E-DD84-4F24-857E-ECC7086F317F) (Shutdown)
iPhone 5s (205428DF-4AA3-4213-B933-44102473D659) (Shutdown)
iPhone 6 (9F136194-3E98-4FA2-8391-76861412A738) (Shutdown)
iPhone 6 Plus (7480DD68-1B0E-481F-96DD-8475B570120A) (Shutdown)
iPhone 6s (B47B32EF-4C6E-4E0D-AAF1-9BF704777F51) (Shutdown)
iPhone 6s Plus (26B2D4BA-631C-4627-8AE7-73623287E9E8) (Shutdown)
iPhone SE (617A0065-1B11-4CDD-B3D6-0D8DAD206477) (Shutdown)
iPad Air (2BD3CABE-D7A0-4937-BA3F-11ABEEEF768D) (Shutdown)
iPad Air 2 (1F20AEB9-C664-494D-BED6-6FE4CF26250A) (Shutdown)
iPad Pro (9.7 inch) (67A1BF3D-0E09-486C-92F5-B16BAC0466A5) (Shutdown)
iPad Pro (12.9 inch) (245690DF-42D9-4EE1-AEBE-BB33EAA5839A) (Shutdown)
– iOS 10.1 –
iPhone 5 (1F2A3648-A948-4DA4-A771-23E90CB4F5D4) (Shutdown)
iPhone 5s (9BD80527-3477-43AA-B4C4-F8D250626F0E) (Shutdown)
iPhone 6 (0F7E99F7-A108-4BD2-ADDE-690D3A97FAD6) (Shutdown)
iPhone 6 Plus (8F61CAE0-7F0D-4B63-867E-99B1940C70A6) (Shutdown)
iPhone 6s (7CAE3AC0-7E89-409A-96B5-1BE4177BD66B) (Shutdown)
iPhone 6s Plus (888328FB-B304-4047-A7EF-7C3B9F3A850C) (Shutdown)
iPhone 7 (11DE1FD0-6AC3-45C2-8ACB-6C37BC689A2F) (Shutdown)
iPhone 7 Plus (10E52DA7-4B86-4547-AFC0-3F540F0DE026) (Shutdown)
iPhone SE (4B55DE33-E3C0-43D5-A40D-6A5C28993E0D) (Shutdown)
iPad Air (3EC427F0-2635-4F46-A0C9-D42B8E73534E) (Shutdown)
iPad Air 2 (C47FD2E0-7761-4881-AD99-92EF9D598A64) (Shutdown)
iPad Pro (9.7 inch) (3C8821CE-E445-4AB1-B0E9-697B4949FB5D) (Shutdown)
iPad Pro (12.9 inch) (A7D3BBBF-C5A0-4DE3-805A-F7B6B9780C06) (Shutdown)
– iOS 10.3 –
iPhone 5 (99FFD716-4E1B-47A6-9677-407B41F15065) (Shutdown)
iPhone 5s (AB89E64E-02C3-43DA-8675-7F010C009DED) (Shutdown)
iPhone 6 (CD52D1DB-3C46-46B6-9BE9-7532E44E2414) (Shutdown)
iPhone 6 Plus (1193ACA9-A552-4636-A7C9-3EA83CDCCA88) (Shutdown)
iPhone 6s (16440FF3-7181-418C-A1D3-B4D9FB7B18D0) (Shutdown)
iPhone 6s Plus (7CFC0289-56C3-41D1-B079-E12E16864688) (Shutdown)
iPhone 7 (F295E764-70AF-41C6-AE4B-F31F7902B518) (Shutdown)
appiumTest-af4ef1da-9980-4e1b-8eb8-0dc8653c396c (F2C79BC7-99AA-474D-AE82-BDF68D9C791D) (Shutdown)
iPhone SE (B980F2C8-EF31-4D8E-95FF-B854CDADEFDD) (Shutdown)
iPad Air (3D9F1D6F-E46A-4D68-A594-BBAA8F93A7E8) (Shutdown)
iPad Air 2 (F40820CF-4EBF-4A28-8BA1-0CFDBB13DA68) (Shutdown)
iPad (5th generation) (A9762C7F-5288-44B7-B059-449FCA408A43) (Shutdown)
iPad Pro (9.7 inch) (D27D9E3E-004E-4A48-B7F6-9624B932DB12) (Shutdown)
iPad Pro (12.9 inch) (E66031D7-4D66-43BC-8739-40CE913DBC87) (Shutdown)
iPad Pro (12.9-inch) (2nd generation) (F3CEA0D7-A0BD-4336-AB10-C89A1646E008) (Shutdown)
iPad Pro (10.5-inch) (DCAE777F-8B39-49C9-96AC-E1794D38AD3B) (Shutdown)
– iOS 11.0 –
iPhone 5s 11.0 (67946730-9100-4A60-82ED-91AE6C3EF98D) (Shutdown)
iPhone 6 (84FDBE42-A870-4773-81E8-9F324559DA8E) (Shutdown)
iPhone 6 Plus (F86FDD5B-AD38-4024-B15D-87CCC9A0A0C6) (Shutdown)
iPhone 6s (6FBDE6B1-1BE8-4AED-B5E1-CC91D6627113) (Shutdown)
iPhone 6s Plus (FA5BFE93-FE95-4246-98A7-6C8E3CBF963F) (Shutdown)
iPhone 7 (4B61687A-5F59-409A-B831-95CB8B9EA9D3) (Shutdown)
iPhone 7 Plus (15B4D8C9-2E98-4FFB-8BFD-A048C5471D02) (Shutdown)
iPhone SE (5131365A-68F8-4BCD-A0ED-3607C910B079) (Shutdown)
iPhone 8 (008859B4-C66C-439A-B2DC-03B5DFBE092F) (Shutdown)
iPhone 8 Plus (B333DC4C-A882-484A-80C4-5950DBEA95B2) (Shutdown)
iPhone X (F9E84B0D-8112-4A9A-8EB4-5A5211C45929) (Shutdown)
iPad Air (65813FEF-7622-4F4B-A14C-0CE1716F1667) (Shutdown)
iPad Air 2 (07ABEF88-70D7-42B6-88F6-011B59DD0F24) (Shutdown)
iPad (5th generation) (7DE22F79-CDD7-4E14-8CD8-3556ADEE2F2E) (Shutdown)
iPad Pro (9.7-inch) (0D0FBD58-1F12-421C-812F-8ED7D8B56DB4) (Shutdown)
iPad Pro (12.9-inch) (68D336BB-3C62-4A58-95D7-612C344CB76D) (Shutdown)
iPad Pro (12.9-inch) (2nd generation) (99F976B9-F9D7-4D71-B624-5599780B6BA5) (Shutdown)
iPad Pro (10.5-inch) (51296CA1-4146-4E23-9E1B-989BD8300C4A) (Shutdown)
– iOS 11.0 –
– tvOS 11.0 –
Apple TV (AFE478A5-FFEE-4011-A134-1B8C475B68F7) (Shutdown)
Apple TV 4K (54B4A191-5CCE-4726-A976-32D4CA068C13) (Shutdown)
Apple TV 4K (at 1080p) (363447ED-9F42-4BA0-854C-4CB13D7C5E04) (Shutdown)
– watchOS 4.0 –
Apple Watch - 38mm (B39D5DB9-C09D-4972-8656-3066D5E3411A) (Shutdown)
Apple Watch - 42mm (81E46B70-4C63-42B3-A87C-69F87F086D46) (Shutdown)
Apple Watch Series 2 - 38mm (61214397-2D1C-48AA-883D-2F2D17AC701E) (Shutdown)
Apple Watch Series 2 - 42mm (E06E4134-5F86-4A38-BBFB-890C6B66CE6F) (Shutdown)
Apple Watch Series 3 - 38mm (E243885C-7FB5-41AE-B1DA-6C3B0D22A0B5) (Shutdown)
Apple Watch Series 3 - 42mm (BE921614-A47A-4CC0-8E6C-ED140B0E5B46) (Shutdown)
– Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-11-1 –
iPhone 5s (027B5BD1-DDBD-4631-98CD-15D74F86997B) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 (523A57A7-5707-4559-AAAD-DE2B4E2186B5) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 Plus (ADD25CDC-9CEB-4F5F-A76F-0A08C6408B8C) (Shutdown) (unavailable, runtime profile not found)
iPhone 6s (3F0B8583-9183-42BF-BCD7-B0AD376BE058) (Shutdown) (unavailable, runtime profile not found)
iPhone 6s Plus (56671C56-38A8-466F-9B0A-666C937EE374) (Shutdown) (unavailable, runtime profile not found)
iPhone 7 (3E185280-B0BE-4A87-9E62-476F6469EC22) (Shutdown) (unavailable, runtime profile not found)
iPhone 7 Plus (A8CA38AF-727F-4D29-8EF0-DFA02445BA9C) (Shutdown) (unavailable, runtime profile not found)
iPhone SE (2B3D07EE-E41F-4E73-986F-80921BAAD8FD) (Shutdown) (unavailable, runtime profile not found)
iPhone 8 (3B078CD5-E381-4E3E-AA55-D1FB70D4853D) (Shutdown) (unavailable, runtime profile not found)
iPhone 8 Plus (958262F5-ACA9-434B-8E1F-70169B57251C) (Shutdown) (unavailable, runtime profile not found)
iPhone X (829F7D53-BE1E-4633-AD05-EE933E6EC2AE) (Shutdown) (unavailable, runtime profile not found)
iPad Air (6621ABBE-D65C-420A-8970-0976AB921B99) (Shutdown) (unavailable, runtime profile not found)
iPad Air 2 (82182DEA-769A-4981-826E-8A536033FB0E) (Shutdown) (unavailable, runtime profile not found)
iPad (5th generation) (AB63BE08-DDA9-4A22-9C1B-A4F9FF6F4544) (Shutdown) (unavailable, runtime profile not found)
iPad Pro (9.7-inch) (7E0DC39A-7DAB-4485-9B6E-D74D37DC143C) (Shutdown) (unavailable, runtime profile not found)
iPad Pro (12.9-inch) (9825FCD7-706E-4169-B3D7-A8679594093E) (Shutdown) (unavailable, runtime profile not found)
iPad Pro (12.9-inch) (2nd generation) (8174F623-B2A3-452D-B198-2DB1586103B5) (Shutdown) (unavailable, runtime profile not found)
iPad Pro (10.5-inch) (D1190558-9CF2-427D-9648-261F991524A4) (Shutdown) (unavailable, runtime profile not found)
– Unavailable: com.apple.CoreSimulator.SimRuntime.tvOS-10-2 –
Apple TV 1080p (D3A24F99-B076-4CB4-BA72-CF1C143FB969) (Shutdown) (unavailable, runtime profile not found)
– Unavailable: com.apple.CoreSimulator.SimRuntime.tvOS-11-1 –
Apple TV (FEADF9A6-EE85-4BE0-9553-D769100B2E6A) (Shutdown) (unavailable, runtime profile not found)
Apple TV 4K (7C95F9AF-76E9-444D-BE21-1B8FF68B4A54) (Shutdown) (unavailable, runtime profile not found)
Apple TV 4K (at 1080p) (2267D103-00D6-4BB4-8A0C-9CD0C27207A9) (Shutdown) (unavailable, runtime profile not found)
– Unavailable: com.apple.CoreSimulator.SimRuntime.watchOS-3-2 –
Apple Watch - 38mm (4F759D01-62B0-476C-B16D-8834485CBE00) (Shutdown) (unavailable, runtime profile not found)
Apple Watch - 42mm (15D5FBE8-7156-4EAE-BEB3-BB03B7D7E3FE) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 2 - 38mm (36761EBC-1733-4D17-8E1C-720E186FE1B6) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 2 - 42mm (980FAF38-8874-48C0-AAB1-A509084FC79E) (Shutdown) (unavailable, runtime profile not found)
– Unavailable: com.apple.CoreSimulator.SimRuntime.watchOS-4-1 –
Apple Watch - 38mm (EDB68011-BA39-44DF-A188-D7DE19D7A20F) (Shutdown) (unavailable, runtime profile not found)
Apple Watch - 42mm (77FB8AA4-BE7D-49F6-994A-181BD3E14121) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 2 - 38mm (815D0676-5214-44FD-BD7D-BD7FB2E41881) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 2 - 42mm (D9AF477A-2623-4E9A-B709-115440DB2B93) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 3 - 38mm (FF7D0364-CEBC-4C9B-9C04-61F76CE0946C) (Shutdown) (unavailable, runtime profile not found)
Apple Watch Series 3 - 42mm (5CB8E333-DF6F-44B7-85A0-2D95F634E891) (Shutdown) (unavailable, runtime profile not found)
== Device Pairs ==
3E60A769-8885-43D9-B607-5CCA80B50155 (active, disconnected)
Watch: Apple Watch Series 2 - 38mm (61214397-2D1C-48AA-883D-2F2D17AC701E) (Shutdown)
Phone: iPhone 7 (4B61687A-5F59-409A-B831-95CB8B9EA9D3) (Shutdown)
8941F1C6-3F88-4E60-8F66-D509044DD17F (active, disconnected)
Watch: Apple Watch Series 2 - 42mm (E06E4134-5F86-4A38-BBFB-890C6B66CE6F) (Shutdown)
Phone: iPhone 7 Plus (15B4D8C9-2E98-4FFB-8BFD-A048C5471D02) (Shutdown)
22864190-1AA3-40EE-A51D-2BE982AD6056 (active, disconnected)
Watch: Apple Watch Series 3 - 38mm (E243885C-7FB5-41AE-B1DA-6C3B0D22A0B5) (Shutdown)
Phone: iPhone 8 (008859B4-C66C-439A-B2DC-03B5DFBE092F) (Shutdown)
2998F580-416E-4102-BB0F-4839DF228FF5 (active, disconnected)
Watch: Apple Watch Series 3 - 42mm (BE921614-A47A-4CC0-8E6C-ED140B0E5B46) (Shutdown)
Phone: iPhone 8 Plus (B333DC4C-A882-484A-80C4-5950DBEA95B2) (Shutdown)
60ECCDC0-9031-450C-80C2-A9C9BCE051F2 (unavailable)
Watch: Apple Watch - 38mm (4F759D01-62B0-476C-B16D-8834485CBE00) (Shutdown)
Phone: iPhone 6s (16440FF3-7181-418C-A1D3-B4D9FB7B18D0) (Shutdown)
B02BECBE-B6C2-4CB2-BBD4-59DCA1750A68 (unavailable)
Watch: Apple Watch - 42mm (15D5FBE8-7156-4EAE-BEB3-BB03B7D7E3FE) (Shutdown)
Phone: iPhone 6s Plus (7CFC0289-56C3-41D1-B079-E12E16864688) (Shutdown)
72B58FB7-8A22-4621-8903-C0804EB4A390 (unavailable)
Watch: Apple Watch Series 2 - 38mm (36761EBC-1733-4D17-8E1C-720E186FE1B6) (Shutdown)
Phone: iPhone 7 (F295E764-70AF-41C6-AE4B-F31F7902B518) (Shutdown)
4AC59BE3-4D75-483E-844B-BB3FEF9CCA04 (unavailable)
Watch: Apple Watch Series 2 - 42mm (980FAF38-8874-48C0-AAB1-A509084FC79E) (Shutdown)
Phone: iPhone 7 Plus (7EBB3C18-05A3-48E7-ADBB-581E553E8AEF) (Booted)
BE6B21E8-CF24-441C-B367-84A00E0E77E7 (unavailable)
Watch: Apple Watch Series 2 - 38mm (815D0676-5214-44FD-BD7D-BD7FB2E41881) (Shutdown)
Phone: iPhone 7 (3E185280-B0BE-4A87-9E62-476F6469EC22) (Shutdown)
A0E8C576-EBCA-4DD1-9C2B-28F17D510264 (unavailable)
Watch: Apple Watch Series 2 - 42mm (D9AF477A-2623-4E9A-B709-115440DB2B93) (Shutdown)
Phone: iPhone 7 Plus (A8CA38AF-727F-4D29-8EF0-DFA02445BA9C) (Shutdown)
8A913711-FA00-4381-9DE4-4C666C486AC1 (unavailable)
Watch: Apple Watch Series 3 - 38mm (FF7D0364-CEBC-4C9B-9C04-61F76CE0946C) (Shutdown)
Phone: iPhone 8 (3B078CD5-E381-4E3E-AA55-D1FB70D4853D) (Shutdown)
D5364B54-66BA-443B-A578-4802A4613231 (unavailable)
Watch: Apple Watch Series 3 - 42mm (5CB8E333-DF6F-44B7-85A0-2D95F634E891) (Shutdown)
Phone: iPhone 8 Plus (958262F5-ACA9-434B-8E1F-70169B57251C) (Shutdown)

Have you tried providing the simulator udid?

Yes, getting error ‘Invalid device or simulator UDID’

Do you think it would be worthwhile to post your code and the log?

This is appium log I am seeing if I provide udid for already running simulator:

[Appium] Welcome to Appium v1.7.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“capabilities”:{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},null,{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone 7 Plus”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1518250634806 (08:17:14 GMT+0000 (GMT))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"/Users/c0250543/… into desiredCapabilities object {“app”:"/Users/c0250543/Wallet Apps/Wallet.app"…
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: /Users/c0250543/Wallet Apps/Wallet.app
[Appium] automationName: XCUITEST
[Appium] connectHardwareKeyboard: false
[Appium] deviceName: iPhone 7 Plus
[Appium] fullReset: false
[Appium] newCommandTimeout: 3600
[Appium] noReset: true
[Appium] platformName: ios
[Appium] platformVersion: 10.3
[Appium] udid: 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF
[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘fullReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘connectHardwareKeyboard’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘3600’) to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: 746918d2-e7fe-4fa0-81fa-b1abb6c2478d
[debug] [XCUITest] Current user: ‘c0250543’
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to ‘9.0’ (tools v9.1.0.0.1.1508540944)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518250635602 (08:17:15 GMT+0000 (GMT))
[debug] [XCUITest] Available devices:
[XCUITest] Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[MJSONWP] Encountered internal error running command: Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[HTTP] <-- POST /wd/hub/session 500 973 ms - 209

xcrun simctl list:

PKMOSXT47HG8WNP:~ c0250543$ xcrun simctl list | grep ‘iPhone 7 Plus’
iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)
iPhone 7 Plus (10E52DA7-4B86-4547-AFC0-3F540F0DE026) (Shutdown)
iPhone 7 Plus (15B4D8C9-2E98-4FFB-8BFD-A048C5471D02) (Shutdown)
iPhone 7 Plus (A8CA38AF-727F-4D29-8EF0-DFA02445BA9C) (Shutdown) (unavailable, runtime profile not found)
Phone: iPhone 7 Plus (15B4D8C9-2E98-4FFB-8BFD-A048C5471D02) (Shutdown)
Phone: iPhone 7 Plus (7EBB3C18-05A3-48E7-ADBB-581E553E8AEF) (Booted)
Phone: iPhone 7 Plus (A8CA38AF-727F-4D29-8EF0-DFA02445BA9C) (Shutdown)

Capabilities I am using:

appium.localIOS.app=/Users/c0250543/Wallet Apps/Wallet.app
appium.localIOS.platformName=ios
appium.localIOS.platformVersion=10.3
appium.localIOS.deviceName=iPhone 7 Plus
appium.localIOS.newCommandTimeout=3600
appium.localIOS.automationName=XCUITEST
appium.localIOS.connectHardwareKeyboard=false
appium.localIOS.noReset=true
appium.localIOS.fullReset=false
appium.localIOS.udid=7EBB3C18-05A3-48E7-ADBB-581E553E8AEF

LOL. Do you think you could try naming the simulator something unique?

I have changed the Simulator name and this is the log when I run the tests with out simulator open

[Appium] Welcome to Appium v1.7.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“capabilities”:{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},null,{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1518426755112 (09:12:35 GMT+0000 (GMT))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"/Users/c0250543/… into desiredCapabilities object {“app”:"/Users/c0250543/Wallet Apps/Wallet.app"…
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: /Users/c0250543/Wallet Apps/Wallet.app
[Appium] automationName: XCUITEST
[Appium] connectHardwareKeyboard: false
[Appium] deviceName: iPhone7Ten
[Appium] fullReset: false
[Appium] newCommandTimeout: 3600
[Appium] noReset: true
[Appium] platformName: ios
[Appium] platformVersion: 10.3
[Appium] udid: 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF
[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘fullReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘connectHardwareKeyboard’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘3600’) to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: 8f558165-8045-4402-b2b2-4359176adc18
[debug] [XCUITest] Current user: ‘c0250543’
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to ‘9.0’ (tools v9.1.0.0.1.1508540944)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518426755905 (09:12:35 GMT+0000 (GMT))
[iOSSim] Constructing iOS simulator for Xcode version 9.0 with udid ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
[XCUITest] Determining device to run tests on: udid: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’, real device: false
[BaseDriver] Using local app ‘/Users/c0250543/Wallet Apps/Wallet.app’
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1518426756197 (09:12:36 GMT+0000 (GMT))
[debug] [XCUITest] Checking whether app ‘/Users/c0250543/Wallet Apps/Wallet.app’ is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app ‘/Users/c0250543/Wallet Apps/Wallet.app’: ‘uk.co.santander.wallet’
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1518426756201 (09:12:36 GMT+0000 (GMT))
[debug] [XCUITest] Reset: noReset is on. Leaving simulator as is
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1518426756203 (09:12:36 GMT+0000 (GMT))
[XCUITest] Continuing without capturing logs: iOS Simulator with udid 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF is not running
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] Matched 1 Simulator cache item for cleanup: /Users/c0250543/Library/Developer/CoreSimulator/Devices/7EBB3C18-05A3-48E7-ADBB-581E553E8AEF/data/Library/Caches/com.apple.mobile.installd.staging
[debug] [iOSSim] Setting common Simulator preferences to {“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] Updated 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF Simulator preferences at ‘/Users/c0250543/Library/Preferences/com.apple.iphonesimulator.plist’ with {“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] The count of running Simulator UI client instances is 0
[iOSSim] Booting Simulator with UDID 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF…
[iOSSim] Starting Simulator UI with command: open -Fn /Applications/xcode-9.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF -ConnectHardwareKeyboard 0
[iOSSim] Simulator with UDID 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF booted in 15 seconds
[debug] [BaseDriver] Event ‘simStarted’ logged at 1518426772323 (09:12:52 GMT+0000 (GMT))
[XCUITest] Continuing without capturing logs: iOS Simulator with udid 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF is not running
[debug] [XCUITest] App ‘uk.co.santander.wallet’ is already installed. No need to reinstall.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1518426772756 (09:12:52 GMT+0000 (GMT))
[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] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[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/
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1518426772889 (09:12:52 GMT+0000 (GMT))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing running processes ‘xcodebuild.*7EBB3C18-05A3-48E7-ADBB-581E553E8AEF, iproxy 8100, 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF.*XCTRunner’ for the device 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF…
[debug] [XCUITest] ‘pgrep -nif xcodebuild.*7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’ 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 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Using Xcode 9.0, 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=7EBB3C18-05A3-48E7-ADBB-581E553E8AEF IPHONEOS_DEPLOYMENT_TARGET=10.3’ 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] [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/zx/ppjr3sz126sf3gncm90vc035zptt70/T/com.apple.dt.XCTest/IDETestRunSession-082D5D37-D37B-4F1F-A618-D3BD16500B70/WebDriverAgentRunner-52835696-AEEA-421B-9401-68CEF049464C/Session-WebDriverAgentRunner-2018-02-12_091254-2infSJ.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] [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] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.3.1”,\n “sdkVersion” : “11.0”\n },\n “ios” : {\n “simulatorVersion” : “10.3.1”,\n “ip” : “180.161.125.91”\n },\n “build” : {\n “time” : “Feb 9 2018 11:01:31”\n }\n },\n “sessionId” : “8409DD5B-924E-4C16-8E80-648928C8F1BF”,\n “status” : 0\n}”
[debug] [XCUITest] WebDriverAgent running on ip ‘180.161.125.91’
[debug] [XCUITest] WebDriverAgent successfully started after 8741ms
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1518426781778 (09:13:01 GMT+0000 (GMT))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“uk.co.santander.wallet”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“C55B4EDF-3391-4BDE-BF32-F6000266567B”,“capabilities”:{“device”:“iphone”,“browserName”:“Wallet”,“sdkVersion”:“10.3.1”,“CFBundleIdentifier”:“uk.co.santander.wallet”}},“sessionId”:“C55B4EDF-3391-4BDE-BF32-F6000266567B”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1518426783230 (09:13:03 GMT+0000 (GMT))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1518426783231 (09:13:03 GMT+0000 (GMT))
[XCUITest] Skipping setting of the initial display orientation. Set the “orientation” capability to either “LANDSCAPE” or “PORTRAIT”, if this is an undesired behavior.
[debug] [BaseDriver] Event ‘orientationSet’ logged at 1518426783232 (09:13:03 GMT+0000 (GMT))
[Appium] New XCUITestDriver session created successfully, session 8f558165-8045-4402-b2b2-4359176adc18 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1518426783234 (09:13:03 GMT+0000 (GMT))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:"",“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:false,“deviceName”:“iPhone7Ten”,“fullReset”:false,“newCommandTimeout”:3600,“noReset”:true,“platformName”:“ios”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”}
[HTTP] <-- POST /wd/hub/session 200 28129 ms - 552
[HTTP] --> POST /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18/appium/app/reset {}
[debug] [MJSONWP] Calling AppiumDriver.reset() with args: [“8f558165-8045-4402-b2b2-4359176adc18”]
[debug] [XCUITest] Executing command ‘reset’
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1518426783291 (09:13:03 GMT+0000 (GMT))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1518426783453 (09:13:03 GMT+0000 (GMT))
[debug] [BaseDriver] Resetting app mid-session
[debug] [BaseDriver] Running generic full reset
[debug] [JSONWP Proxy] Proxying [DELETE /session/8f558165-8045-4402-b2b2-4359176adc18] to [DELETE http://localhost:8100/session/C55B4EDF-3391-4BDE-BF32-F6000266567B] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “AAE93D0C-C858-462B-9945-B5E887CAD3A2”,\n “status” : 0\n}”
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[debug] [BaseDriver] Restarting app
[BaseDriver] Session created with session id: cab65744-e65f-49fe-81b3-0fc34a8658be
[debug] [XCUITest] Current user: ‘c0250543’
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to ‘9.0’ (tools v9.1.0.0.1.1508540944)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518426784371 (09:13:04 GMT+0000 (GMT))
[debug] [XCUITest] Available devices:
[XCUITest] Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[MJSONWP] Encountered internal error running command: Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[HTTP] <-- POST /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18/appium/app/reset 500 1263 ms - 243
[HTTP] --> GET /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18/screenshot {}
[debug] [MJSONWP] Calling AppiumDriver.getScreenshot() with args: [“8f558165-8045-4402-b2b2-4359176adc18”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [XCUITest] Taking screenshot with WDA
[XCUITest] Error getting screenshot: Can’t call proxyCommand without WDA driver active
[MJSONWP] Encountered internal error running command: TypeError: Cannot read property ‘versionFloat’ of null
at XCUITestDriver.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:64:28)
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 throw] (/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 runMicrotasksCallback (internal/process/next_tick.js:64:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
[HTTP] <-- GET /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18/screenshot 500 16 ms - 214
[HTTP] --> DELETE /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“8f558165-8045-4402-b2b2-4359176adc18”]
[debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1518426784615 (09:13:04 GMT+0000 (GMT))
[Appium] Removing session 8f558165-8045-4402-b2b2-4359176adc18 from our master session list
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1518426784620 (09:13:04 GMT+0000 (GMT))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/8f558165-8045-4402-b2b2-4359176adc18 200 8 ms - 76

Log when simulator is already booted:

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“capabilities”:{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},null,{“desiredCapabilities”:{“app”:"/Users/c0250543/Wallet Apps/Wallet.app",“automationName”:“XCUITEST”,“connectHardwareKeyboard”:“false”,“deviceName”:“iPhone7Ten”,“fullReset”:“false”,“newCommandTimeout”:“3600”,“noReset”:“true”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“7EBB3C18-05A3-48E7-ADBB-581E553E8AEF”},“firstMatch”:[{“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1518426936475 (09:15:36 GMT+0000 (GMT))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"/Users/c0250543/… into desiredCapabilities object {“app”:"/Users/c0250543/Wallet Apps/Wallet.app"…
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] app: /Users/c0250543/Wallet Apps/Wallet.app
[Appium] automationName: XCUITEST
[Appium] connectHardwareKeyboard: false
[Appium] deviceName: iPhone7Ten
[Appium] fullReset: false
[Appium] newCommandTimeout: 3600
[Appium] noReset: true
[Appium] platformName: ios
[Appium] platformVersion: 10.3
[Appium] udid: 7EBB3C18-05A3-48E7-ADBB-581E553E8AEF
[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘fullReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘connectHardwareKeyboard’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘3600’) to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: 3ed7d4ff-7c2d-45b4-b5fa-16dff3f5c752
[debug] [XCUITest] Current user: ‘c0250543’
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to ‘9.0’ (tools v9.1.0.0.1.1508540944)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518426937212 (09:15:37 GMT+0000 (GMT))
[debug] [XCUITest] Available devices:
[XCUITest] Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[MJSONWP] Encountered internal error running command: Error: Unknown device or simulator UDID: ‘7EBB3C18-05A3-48E7-ADBB-581E553E8AEF’
at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:622:17)
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)
[HTTP] <-- POST /wd/hub/session 500 894 ms - 209

xcrun simctl list

PKMOSXT47HG8WNP:~ c0250543$ xcrun simctl list | grep ‘iPhone7’
Phone: iPhone7Ten (7EBB3C18-05A3-48E7-ADBB-581E553E8AEF) (Booted)
PKMOSXT47HG8WNP:~ c0250543$

Looks like a bug to me. Can you file an issue here: https://github.com/appium/appium/issues