question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: simctl error running 'create': Invalid device type: iPhone Simulator (8.1 Xcode and 1.6 Appium)

See original GitHub issue

The problem

I am seeing this error, unsure what’s causing it. I upgraded to 8.1 yesterday but cannot tell if that’s the problem as i have never before tried out running apps only Safari.

Safari boots up good with Simulator tho.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6
  • Last Appium version that did not exhibit the issue (if applicable): don’t know
  • Mobile platform/version under test: IPhone 6
  • Real device or emulator/simulator: iOS Simulator
  • Appium CLI or Appium.app|exe: cli

Details

While running this piece of code:

` class SafariTests(unittest.TestCase):

def setUp(self):
    desired_caps = {
        'deviceName': 'iPhone Simulator',
        'platformName': 'iOS',
        'automationName':'XCUITest',
        'app':'/Users/rafalfusik/Desktop/UICatalog.app',
        'nativeWebTap': True,
        'newCommandTimeout':'120' # timeout for a new command
        # 'fullReset':True,          # to avoid double launch
    }

    self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

def tearDown(self):
    self.driver.quit()

def test_home(self):

    windows_size = self.driver.get_window_size()

`

Link to Appium logs

Logs on gist

Code To Reproduce Issue [ Good To Have ]

Run the python script

the following runs w/t any issue.

desired_caps = { 'browserName': 'safari', 'platformName': 'iOS', 'platformVersion': '10.1', 'deviceName': 'iPhone Simulator', 'nativeWebTap': True, 'automationName':'XCUITest', 'newCommandTimeout':'120', # timeout for a new command 'fullReset':True, # to avoid double launch #'safariIgnoreFraudWarning': True }

also this works fine: xcrun simctl install booted /Users/rafalfusik/Desktop/UICatalog.app

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
imurchiecommented, Nov 1, 2016

Thanks for bringing to our attention that the error is confusing. I’ve added a line to the logs to indicate that it might cause problems. https://github.com/appium/appium-xcuitest-driver/pull/274

0reactions
lock[bot]commented, Apr 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'simctl error running 'create': Invalid device type: Iphone Xs ...
... First just try to deploy the ipa to that simulator by command line, also try launching the simulator and deploy the app...
Read more >
Simctl error running 'create': Invalid runtime - Appium Discuss
Issue: Error: simctl error running 'create': Invalid device type: iPhone Simulator (8.1 Xcode and 1.6 Appium) ... The problem I am seeing this ......
Read more >
simctl error running 'create': Invalid device type - appsloveworld
Coding example for the question Error: simctl error running 'create': Invalid device type: on appium and real ios device.
Read more >
XCode 11.4 Simulator Device Creation Failed - Apple Developer
I tried to create simulator, from Device and Simulators window. Select iPhone 11 and iOS 13.4, but got error. Could not create iPhone...
Read more >
appium_ispair.txt - GitHub
Original error: simctl error running 'create': Invalid device type: ... i had created an iOS simulator for iPhone 5 with version 9.3 using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found