[[email protected], Xcode 9.0]
I recently ran into an issue after updating to the latest version of Xcode (9.0) where running an app on a simulator errored because no devices could be found.
So running this command
ionic cordova emulate ios --target="iPhone 6s, 11.0" gives me an error and fails to fire up the simulator.
When I ran
ionic cordova emulate ios --list to see the available devices, I got zero results returned.
If I ran
ios-sim showdevicetypes I get the list below:
Apple-Watch-38mm, watchOS 4.0
Apple-Watch-42mm, watchOS 4.0
Apple-Watch-Series-2-38mm, watchOS 4.0
Apple-Watch-Series-2-42mm, watchOS 4.0
Apple-Watch-Series-3-38mm, watchOS 4.0
Apple-Watch-Series-3-42mm, watchOS 4.0
Apple-TV-1080p, tvOS 11.0
Apple-TV-4K-4K, tvOS 11.0
Apple-TV-4K-1080p, tvOS 11.0
So I know there are simulators available. So to check which version of the ios platform is installed with Cordova I ran
cordova platform --list. It was showing ios 4.0.1. There is a newer version available and after installing it
cordova platform rm ios
cordova platfrom add [email protected] I was then able to run in the simulator with no issues.
ionic cordova emulate ios --livereload -c --target="iPhone 6, 11.0"