iPad Pro (9.7 inch) simulator not launching correctly

The parser for ios devices on a local machine for some iPad devices is assuming the first set of parentheses holds the udid, but in the case of iPad simulators, it does not.
from the appium logs below, “[Appium] udid: 9.7 inch” . This causes the appium desired capbilities to be formed incorrectly and it stalls out when trying to launch the device.

some other results from “$xcrun simctl list” that will have the same issue

iPad (5th generation) (1010DB61-8B39-48B8-B638-CD45F7C8C2F7) (Shutdown)

iPad Pro (9.7 inch) (F7A5631D-0D25-4BFE-A35F-01F6676867E4) (Shutdown)

iPad Pro (12.9 inch) (A7D01DB3-3263-4C84-B82C-FACEE232A1D7) (Shutdown)

iPad Pro (12.9-inch) (2nd generation) (79464F0D-A7EE-408D-A459-E815707BABCC) (Shutdown)

iPad Pro (10.5-inch) (297DE41B-6844-4EA0-9E71-1621414936C6) (Shutdown)  

Ipad devices that do run correctly from “$xcrun simctl list”

iPad Air (A66078E9-8C63-49A1-922D-C8E8CBB50164) (Shutdown)

iPad Air 2 (A2C0B348-E506-4C90-BB2E-4F7F42624EB3) (Shutdown)

appium.log file from a bad run of the iPad Pro (9.7 inch) (F7A5631D-0D25-4BFE-A35F-01F6676867E4) (Shutdown)
"

[Appium] Appium support for versions of node < 8 has been deprecated and will be removed in a future version. Please upgrade!

[Appium] Welcome to Appium v1.8.1

[Appium] Non-default server args:

[Appium] port: 59846

[Appium] chromeDriverPort: 59847

[Appium] tmpDir: /var/folders/z2/r38k18cs3sqccjclzw_w1z1w0000gn/T//Katalon/Appium/Temp1535402899086

[Appium] Appium REST http interface listener started on 0.0.0.0:59846

[HTTP] → GET /wd/hub/status

[HTTP] {}

[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []

[debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.8.1”,“revision”:null}}

[HTTP] ← GET /wd/hub/status 200 24 ms - 83

[HTTP]

[HTTP] → GET /wd/hub/status

[HTTP] {}

[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []

[debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.8.1”,“revision”:null}}

[HTTP] ← GET /wd/hub/status 200 19 ms - 83

[HTTP]

[HTTP] → POST /wd/hub/session

[HTTP] {“desiredCapabilities”:{“UDID”:"",“app”:"/Users/fkeefer/Library/Developer/Xcode/DerivedData/Setec-aoyoptenalulrweiseddrsickqxy/Build/Products/Debug-iphonesimulator/Setec.app",“automationName”:“XCUITest”,“deviceId”:“A66078E9-8C63-49A1-922D-C8E8CBB50164”,“deviceName”:“iPad Pro”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole",“udid”:“9.7 inch”,“waitForAppScript”:“true;”,“wdaLocalPort”:59862},“capabilities”:{“desiredCapabilities”:{“UDID”:"",“app”:"/Users/fkeefer/Library/Developer/Xcode/DerivedData/Setec-aoyoptenalulrweiseddrsickqxy/Build/Products/Debug-iphonesimulator/Setec.app",“automationName”:“XCUITest”,“deviceId”:“A66078E9-8C63-49A1-922D-C8E8CBB50164”,“deviceName”:“iPad Pro”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configu

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“UDID”:"",“app”:"/Users/fkeefer/Library/Developer/Xcode/DerivedData/Setec-aoyoptenalulrweiseddrsickqxy/Build/Products/Debug-iphonesimulator/Setec.app",“automationName”:“XCUITest”,“deviceId”:“A66078E9-8C63-49A1-922D-C8E8CBB50164”,“deviceName”:“iPad Pro”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole",“udid”:“9.7 inch”,“waitForAppScript”:“true;”,“wdaLocalPort”:59862},null,{“desiredCapabilities”:{“UDID”:"",“app”:"/Users/fkeefer/Library/Developer/Xcode/DerivedData/Setec-aoyoptenalulrweiseddrsickqxy/Build/Products/Debug-iphonesimulator/Setec.app",“automationName”:“XCUITest”,“deviceId”:“A66078E9-8C63-49A1-922D-C8E8CBB50164”,“deviceName”:“iPad Pro”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole","…

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1535402913202 (13:48:33 GMT-0700 (PDT))

[Appium] Could not parse W3C capabilities: ‘deviceName’ can’t be blank. Falling back to JSONWP protocol.

[Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: [“UDID”,“app”,“automationName”,“deviceId”,“deviceName”,“fullReset”,“newCommandTimeout”,“noReset”,“platformName”,“realDeviceLogger”,“udid”,“waitForAppScript”,“wdaLocalPort”]. Falling back to JSONWP protocol.

[Appium] Creating new XCUITestDriver (v2.84.0) session

[Appium] Capabilities:

[Appium] UDID:

[Appium] app: /Users/fkeefer/Library/Developer/Xcode/DerivedData/Setec-aoyoptenalulrweiseddrsickqxy/Build/Products/Debug-iphonesimulator/Setec.app

[Appium] automationName: XCUITest

[Appium] deviceId: A66078E9-8C63-49A1-922D-C8E8CBB50164

[Appium] deviceName: iPad Pro

[Appium] fullReset: false

[Appium] newCommandTimeout: 1800

[Appium] noReset: true

[Appium] platformName: iOS

[Appium] realDeviceLogger: /Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole

[Appium] udid: 9.7 inch

[Appium] waitForAppScript: true;

[Appium] wdaLocalPort: 59862

[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {“UDID”:"",“app”:"/Users/fk…

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

[BaseDriver] Session created with session id: 4e0b03ba-e924-4f62-a9a7-7676cf175f8c

[debug] [XCUITest] Current user: ‘fkeefer’

[debug] [XCUITest] Xcode version set to ‘9.4.1’ (tools v9.4.1.0.1.1528165917)

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

[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1535402913444 (13:48:33 GMT-0700 (PDT))

[debug] [XCUITest] Available devices: 944018123dd8e3fbb3356f7ff38fc1b245af3a00

[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.

[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1535402913811 (13:48:33 GMT-0700 (PDT))

[HTTP] ← POST /wd/hub/session 500 614 ms - 181
"