Appium appends a (Simulator) at the end of iOS device name

I am trying to run a TestNG test on a physical iOS device. The test is setting up the device name “iPhone-JonSnow” and adds the iOS version and the word “Simulator” to it at the end.
This all works fine if I am running the test on a simulator. But if I specify the real device, it still thinks that I am running it on a simulator and appends the wrong name at the end. Any help?

Here’s a console log:

error: Failed to start an Appium session, err was: Error: Could not find a device to launch. You requested 'iPhone-JonSnow (8.1.3 Simulator)', but the available devices were: ["iPhone-JonSnow (8.1.3) [78b2f5eb860b2a061d4db14117d57607d19414e7]","iPad 2 (7.1 Simulator) [E4D577C5-AD4C-4C7E-BE6F-4CDB956A80B0]", ( ... )         
info: <-- POST /wd/hub/session 500 18553.669 ms - 2570

I’m getting the exact same issue. It is appending ‘Simulator’ to the real device name.

I am experiencing the same error.

  • Appium 1.3.6
  • Test NG
  • Running as Maven Test [Apache Maven 3.2.3]

Desired Capabilities

if ((this.SELENIUM_BROWSER.equalsIgnoreCase("iPhone")) && (this.EXECUTION_ENVIRONMENT.equalsIgnoreCase("INTERNAL"))) {
       desiredCapabilities.setCapability("platformName", this.SELENIUM_PLATFORM);
       desiredCapabilities.setCapability("platformVersion", "8.1");
       desiredCapabilities.setCapability("deviceName", "Tom\'s iPhone");
       desiredCapabilities.setCapability("UDID", "1670f5f7fb3c2281c198f2863e04fa6207d838c5");
       desiredCapabilities.setCapability("browserName", "Safari");
       url = new URL("http://127.0.0.1:4723/wd/hub");

Appium Console:

error: Failed to start an Appium session, err was: Error: Could not find a device to launch. You requested 'Tom's iPhone (8.1 Simulator)', but the available devices were: ["iPad 2 (8.2 Simulator) [4A0922DA-E74B-4FA7-9538-16A4E2061FD1]","iPad Air (8.2 Simulator)