-
-
Notifications
You must be signed in to change notification settings - Fork 7
Can't run tns emulate ios --device "iPad Pro (12.9 inch)" #80
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
Comments
@enchev iPad Pro 12.9 inch is used to generate the iPad screenshot for the new iTunes Connect screenshot system that uses the largest image in the device family and scales it down; As it stands, this bug makes it complex to publish new app store apps without having a physical iPad Pro, and without @asterizk 's patch I would have been in a rough spot |
Just got rejected from the App store ("Metadata Rejected") because I didn't have screenshots from the iPad Pro 12.9" due to this bug. @asterizk 's patch worked for me too. Thanks! |
If you have more recent versions of ios-sim-portable, etc you might need this modified code for the hack:
My config: |
I can't run
tns emulate ios --device "iPad Pro (12.9 inch)"
Doing so results in the following message:
Starting iOS Simulator Unable to find device iPad Pro (12.9 inch). The valid device names are iPhone 5, iPhone 5s, iPhone 6, iPhone 6 Plus, iPhone 6s, iPhone 6s Plus, iPhone 7, iPhone 7 Plus, iPhone SE, iPad Retina, iPad Air, iPad Air 2
Expected result:
This error occurs despite 'xcrun simctl list' outputting the 12.9" iPad as an option.
I believe I've tracked the root cause down to the fact that "iPad Pro (9.7 inch)" and the "iPad Pro (12.9 inch)" devices contain parentheses in their names, and the regex that parses the output of 'xcrun simctl list' doesn't expect those parentheses to be there:
var lineRegex = /^ ([^\(]+) \(([^\)]+)\) \(([^\)]+)\)( \(([^\)]+)\))*/;
That regex is contained in the following file:
ios-sim-portable-master/lib/simctl.ts
I've got version 1.3.0 of ios-sim-portable. In the meantime I'm working around it by manually adding devices to the device list in my installed copy of
simctl.js
:...right before the
return devices;
statement.Obviously this is a big hack and not a solution (the solution would involve fixing that regex), but at the present it allows me to launch my Nativescript app on the 12.9" iPad under emulation, which is pretty important for me because it's the only iOS platform my company actually supports at the moment.
The symptoms look very similar to ios-control/ios-sim#197. Note that aharbick there has a proposed fix for that regex that might be useful here too.
My config:
OS X 10.11.6
Xcode 8.0 (8A218a)
tns --version: 2.3.0
ios-sim-portable: 1.3.0
npm --version: 3.10.8
tsc --version: Version 2.0.3
The text was updated successfully, but these errors were encountered: