-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib.js/getdevicetypes gets wrong list of devices versus showdevicetypes #202
Comments
Published 5.0.11 |
The current version of cordova-ios uses 5.0.7. Maybe a dumb question but how does one override that locally? I've tried a bunch of things and phongap build ios always seems to grab a fresh copy of cordova-ios into ~/.cordova and uses ios-sim 5.0.7 which means you can't emulate iPad-Pro. A new release of cordova-ios eventually but I'm looking for some hack / override locally to work around. |
You can override it on a per app basis. The In |
OK. That worked thanks! However I don't think that this issue or #197 are actually fixed. I'm still seeing "No available runtimes could be found for "iPad Pro (12.9-inch)" when trying to run the iPad-Pro device type.
The reason seems to still be the inconsistency of the dash in the device/devicetype name. If I change parseDeviceType in simctl-list-parser.js to strip dashes like so
Then the phonegap command works. |
Thanks! I'll take a look, tomorrow. |
FWIW... I updated my fork to match your previous code and just included my tweak above: |
This will be fixed in ios-sim 5.0.12 (I didn't modify simctl, since that lib is meant to report what is output from xcrun simctl, quirks and all). Tested using:
|
showdevicetypes should rely on getdevicetypes (the logic should reside there), then print it out (the two commands do two different but related things).
The text was updated successfully, but these errors were encountered: