Error: simctl error running 'create': Invalid device type: iPhone Simulator (8.1 Xcode and 1.6 Appium)
See original GitHub issueThe 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
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:
- Created 7 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
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
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.