Closed
Description
Command and results (I've got iOS 10 and 9.3 simulators installed and I can launch the iPad-Pro 9.7 and 12.9 devices in the simulator but this is the result of my command.
bash-3.2$ ios-sim showdevicetypes
iPhone-4s, 9.3
iPhone-5, 9.3
iPhone-5, 10.0
iPhone-5s, 9.3
iPhone-5s, 10.0
iPhone-6, 9.3
iPhone-6, 10.0
iPhone-6-Plus, 9.3
iPhone-6-Plus, 10.0
iPhone-6s, 9.3
iPhone-6s, 10.0
iPhone-6s-Plus, 9.3
iPhone-6s-Plus, 10.0
iPad-2, 9.3
iPad-Retina, 9.3
iPad-Retina, 10.0
iPad-Air, 9.3
iPad-Air, 10.0
iPad-Air-2, 9.3
iPad-Air-2, 10.0
iPhone-7, 10.0
iPhone-7-Plus, 10.0
iPhone-SE, 10.0
Apple-TV-1080p, tvOS 10.0
Apple-Watch-38mm, watchOS 3.0
Apple-Watch-42mm, watchOS 3.0
Apple-Watch-Series-2-38mm, watchOS 3.0
Apple-Watch-Series-2-42mm, watchOS 3.0
Further if I try to install an app into the simulator like so
phonegap run ios --target "iPad-Pro" --emulator
I get this error
No available runtimes could be found for "iPad Pro (12.9-inch)".
Below is the requested version information.
sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1004
ios-sim --version
5.0.8
xcodebuild -version
Xcode 8.0
Build version 8A218a
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
aharbick commentedon Oct 8, 2016
I'm pretty sure this is because
Is not reporting iPad Pro as this
And the regexps in simctl/lib/simctl-list-parser.js are not expecting the "(12.9 inch)" in the names for the devices.
aharbick commentedon Oct 8, 2016
Another problem is that
Uses a format for the name of the device
I monkeyed around with simctl-list-parser.js over in the simctl wrapper. Doing that I got ios-sim showdevicetypes to work.
Here's the commit in my fork: aharbick/simctl@37028f9
I'd submit a PR, but I don't have a good enough sense of the process or the potential impacts elsewhere in the ecosystem.
Let me know how else I can help.
[-]ios-sim does not show iPad-Pro devices any longer[/-][+]ios-sim does not work for iPad-Pro for iOS 10 runtime[/+](
in name are not started aftertns run ios --device <device_name>
NativeScript/nativescript-cli#2131shazron commentedon Oct 18, 2016
Thanks! evaluating this now in simctl.
shazron commentedon Oct 20, 2016
Fixed in ios-control/simctl#11 after adding failing tests.
I will push a new simctl version and use it in a new ios-sim release
pvadam commentedon Oct 28, 2016
It still does not show iPad Pro!
Did I miss something? The fork aharbick/simctl@37028f9 lists the two iPad Pros also:
shazron commentedon Oct 28, 2016
Looks like Apple is not being consistent in their device type names for the iPad Pros:
Note the hyphen in
iPad Pro (9.7-inch)
inDevice Types
and the one inDevices
. ios-sim filters only those devicetypes that are in the runtimes as well since we need to get the device id.aharbick commentedon Oct 28, 2016
Right. Which is (unfortunately) why I had to do this in my commit:
shazron commentedon Oct 28, 2016
The fix here would be for ios-sim to hack this by (pseudocode):
shazron commentedon Oct 28, 2016
@aharbick great! my patch is essentially the same, although I'm limiting the reach of this hack by the conditional
shazron commentedon Oct 28, 2016
I'll get a 5.10 patch out asap
shazron commentedon Oct 28, 2016
Hacking this in
ios-sim
only, since technicallysimctl
is correct in reporting the outputshazron commentedon Oct 28, 2016
Tested and published https://github.com/phonegap/ios-sim/releases/tag/5.0.10
pvadam commentedon Oct 28, 2016
Wow! That was fast! And it works, thank you!!
sagrawal31 commentedon Nov 8, 2016
I updated this release but I still can't see iPad Pro in
cordova emulate ios --list
butios-sim showdevicetypes
shows the device:Am I missing something?
shazron commentedon Nov 8, 2016
For cordova issues, try filing an issue at http://issues.cordova.io instead
shazron commentedon Nov 9, 2016
@sagrawal14 filing a new issue for this, found the problem: #202
sagrawal31 commentedon Nov 10, 2016
Thanks @shazron. I saw the commit, great!