Hi,
I am getting the following error with the below configuration.
[info] e[35m[Appium]e[39m Welcome to Appium v1.10.0
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4723[info] e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/sessionse[39m
[info] e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[GENERIC]e[39m Calling AppiumDriver.getSessions() with args: []
[debug] e[35m[GENERIC]e[39m Responding to client with driver.getSessions() result: []
[info] e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/sessions e[39me[32m200e[39m e[90m1 ms - 40e[39m
[info] e[35m[HTTP]e[39m e[90me[39m[info] e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:“self.mobile_app_md”,“automationName”:“XCUITest”,“deviceName”:“iPhone XR - 12.1”,“platformName”:“iOS”,“platformVersion”:“12.1”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}e[39m
[debug] e[35m[MJSONWP]e[39m Calling AppiumDriver.createSession() with args: [{“app”:“self.mobile_app_md”,“automationName”:“XCUITest”,“deviceName”:“iPhone XR - 12.1”,“platformName”:“iOS”,“platformVersion”:“12.1”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionRequested’ logged at 1551023544705 (09:52:24 GMT-0600 (CST))
[info] e[35m[Appium]e[39m Creating new XCUITestDriver (v2.104.0) session
[info] e[35m[Appium]e[39m Capabilities:
[info] e[35m[Appium]e[39m app: self.mobile_app_md
[info] e[35m[Appium]e[39m automationName: XCUITest
[info] e[35m[Appium]e[39m deviceName: iPhone XR - 12.1
[info] e[35m[Appium]e[39m platformName: iOS
[info] e[35m[Appium]e[39m platformVersion: 12.1
[info] e[35m[Appium]e[39m newCommandTimeout: 0
[info] e[35m[Appium]e[39m connectHardwareKeyboard: true
[debug] e[35m[BaseDriver]e[39m Creating session with MJSONWP desired capabilities: {“app”:“self.mobile_app_md”…
[info] e[35m[BaseDriver]e[39m Session created with session id: 4cb7176c-eeb5-4b7b-a13e-719793f82db6
[debug] e[35m[XCUITest]e[39m Current user: ‘123456’[info] e[35m[XCUITest]e[39m Simulator udid not provided, using desired caps to create a new simulator[debug] e[35m[simctl]e[39m Creating simulator with name ‘appiumTest-iPhone XR - 12.1’, device type id ‘iPhone XR - 12.1’ and runtime id ‘12.1’[error] e[35m[simctl]e[39m Error: simctl error running ‘create’: Invalid device type: iPhone XR - 12.1
[error] e[35m[simctl]e[39m at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
[error] e[35m[simctl]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/lib/simctl.js:49:11
[error] e[35m[simctl]e[39m at Generator.throw ()
[error] e[35m[simctl]e[39m at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[error] e[35m[simctl]e[39m at _throw (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
[error] e[35m[simctl]e[39m at run (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:75:22)
[error] e[35m[simctl]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:92:30
[error] e[35m[simctl]e[39m at flush (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/_microtask.js:18:9)
[error] e[35m[simctl]e[39m at process._tickCallback (internal/process/next_tick.js:61:11)
[error] e[35m[simctl]e[39m Error: Could not create simulator with name ‘appiumTest-iPhone XR - 12.1’, device type id ‘iPhone XR - 12.1’ and runtime id ‘12.1’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhone XR - 12.1’
[error] e[35m[simctl]e[39m at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
[error] e[35m[simctl]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/lib/simctl.js:361:9
[error] e[35m[simctl]e[39m at Generator.throw ()
[error] e[35m[simctl]e[39m at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[error] e[35m[simctl]e[39m at _throw (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
[error] e[35m[simctl]e[39m at run (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:75:22)
[error] e[35m[simctl]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:92:30
[error] e[35m[simctl]e[39m at flush (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/_microtask.js:18:9)
[error] e[35m[simctl]e[39m at process._tickCallback (internal/process/next_tick.js:61:11)
[error] e[35m[XCUITest]e[39m Error: Could not create simulator with name ‘appiumTest-iPhone XR - 12.1’, device type id ‘iPhone XR - 12.1’ and runtime id ‘12.1’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhone XR - 12.1’
[error] e[35m[XCUITest]e[39m at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
[error] e[35m[XCUITest]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/lib/simctl.js:361:9
[error] e[35m[XCUITest]e[39m at Generator.throw ()
[error] e[35m[XCUITest]e[39m at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[error] e[35m[XCUITest]e[39m at _throw (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
[error] e[35m[XCUITest]e[39m at run (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:75:22)
[error] e[35m[XCUITest]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:92:30
[error] e[35m[XCUITest]e[39m at flush (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/_microtask.js:18:9)
[error] e[35m[XCUITest]e[39m at process._tickCallback (internal/process/next_tick.js:61:11)
[debug] e[35m[XCUITest]e[39m Not clearing log files. Use clearSystemFiles
capability to turn on.
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionStarted’ logged at 1551023547337 (09:52:27 GMT-0600 (CST))
[debug] e[35m[MJSONWP]e[39m Encountered internal error running command: Error: Could not create simulator with name ‘appiumTest-iPhone XR - 12.1’, device type id ‘iPhone XR - 12.1’ and runtime id ‘12.1’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhone XR - 12.1’
[debug] e[35m[MJSONWP]e[39m at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
[debug] e[35m[MJSONWP]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/lib/simctl.js:361:9
[debug] e[35m[MJSONWP]e[39m at Generator.throw ()
[debug] e[35m[MJSONWP]e[39m at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[debug] e[35m[MJSONWP]e[39m at _throw (/Applications/Appium.app/Contents/Resources/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
[debug] e[35m[MJSONWP]e[39m at run (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:75:22)
[debug] e[35m[MJSONWP]e[39m at /Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/es6.promise.js:92:30
[debug] e[35m[MJSONWP]e[39m at flush (/Applications/Appium.app/Contents/Resources/app/node_modules/core-js/modules/_microtask.js:18:9)
[debug] e[35m[MJSONWP]e[39m at process._tickCallback (internal/process/next_tick.js:61:11)
[info] e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m2635 ms - 340e[39m
[info] e[35m[HTTP]e[39m e[90me[39m
[info] e[35m[HTTP]e[39m e[37m–>e[39m e[37mDELETEe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[HTTP]e[39m No route found. Setting content type to ‘text/plain’
[info] e[35m[HTTP]e[39m e[37m<-- DELETE /wd/hub/session e[39me[33m404e[39m e[90m4 ms - 57e[39m
[info] e[35m[HTTP]e[39m e[90me[39m
{
“platformName”: “iOS”,
“deviceName”: “iPhone XR - 12.1”,
“automationName”: “XCUITest”,
“app”: “self.mobile_app_md”,
“platformVersion”: “12.1”
}