Skip to content
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

Available iOS simulators are empty #547

Closed
ejerskov opened this issue Feb 23, 2019 · 9 comments · Fixed by #549
Closed

Available iOS simulators are empty #547

ejerskov opened this issue Feb 23, 2019 · 9 comments · Fixed by #549
Milestone

Comments

@ejerskov
Copy link

Bug Report

Problem

What is expected to happen?

cordova run ios --list should list the same devices as ios-sim showdevicetypes

What does actually happen?

The list is empty:

Available ios devices:
Available ios virtual devices:

Information

Command or Code

New project. These are the commands:

cordova create hello com.example.hello HelloWorld
cd hello/
cordova platform add ios
cordova run ios --list

Version information

cordova info

Collecting Data...

Node version: v10.15.1

Cordova version: 8.1.1

Config.xml file:

HelloWorld A sample Apache Cordova application that responds to the deviceready event. Apache Cordova Team

Plugins:

cordova-plugin-whitelist

iOS platform:

Xcode 10.1
Build version 10B61

@janpio
Copy link
Member

janpio commented Feb 23, 2019

Same problem when you do cordova platform add ios@5.0.0?

@ejerskov
Copy link
Author

Running cordova platform remove ios and cordova platform add ios@5.0.0 gives the same result.

I initially thought it was a problem within ios-sim, but with a fix for that issue it's still not working.

Link to other ios-sim issue and fix: ios-control/ios-sim#246 (comment)

@janpio
Copy link
Member

janpio commented Feb 23, 2019

Ok, so not a problem with cordova-ios but ios-sim?

You can close this issue then please.

@ejerskov
Copy link
Author

ios-sim is returning the ios devices, but cordova is not. That’s why I created this issue

@janpio
Copy link
Member

janpio commented Feb 23, 2019

Can you please add to your issue what ios-sim showdevicetypes returns then?

@ejerskov
Copy link
Author

Running ios-sim showdevicetypes in the cordova project

Apple-Watch-Series-2-38mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-Watch-Series-2-42mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-Watch-Series-3-38mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-Watch-Series-3-42mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-Watch-Series-4-40mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-Watch-Series-4-44mm, com.apple.CoreSimulator.SimRuntime.watchOS-5-1
Apple-TV-1080p, com.apple.CoreSimulator.SimRuntime.tvOS-12-1
Apple-TV-4K-4K, com.apple.CoreSimulator.SimRuntime.tvOS-12-1
Apple-TV-4K-1080p, com.apple.CoreSimulator.SimRuntime.tvOS-12-1
iPhone-5s, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-5s, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-6, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-6, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-6-Plus, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-6-Plus, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-6s, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-6s, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-6s-Plus, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-6s-Plus, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-7, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-7, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-7-Plus, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-7-Plus, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-8, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-8, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-8-Plus, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-8-Plus, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-SE, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-SE, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-X, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPhone-X, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-XS, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-XS-Max, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Air, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Air, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Air-2, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Air-2, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad--5th-generation-, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad--5th-generation-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro--9-7-inch-, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Pro--9-7-inch-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Pro, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro--12-9-inch---2nd-generation-, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Pro--12-9-inch---2nd-generation-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro--10-5-inch-, com.apple.CoreSimulator.SimRuntime.iOS-11-0
iPad-Pro--10-5-inch-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad--6th-generation-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro--11-inch-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPad-Pro--12-9-inch---3rd-generation-, com.apple.CoreSimulator.SimRuntime.iOS-12-1
iPhone-XR, com.apple.CoreSimulator.SimRuntime.iOS-12-1

@shazron
Copy link
Member

shazron commented Feb 25, 2019

ios-sim@8 has the fixes for the new devices. The pinned version for cordova is ios-sim@7

"ios-sim": "^7.0.0",

@dpogue
Copy link
Member

dpogue commented Feb 25, 2019

Thanks Shazron! We should probably do a follow-up patch release to bump that to ^8.

@dpogue dpogue added this to the 5.0.1 milestone Feb 25, 2019
@styk-tv
Copy link

styk-tv commented Apr 20, 2019

@dpogue @shazron any chance this is related to something else

$ ios-sim --version
8.0.1

and

$ ios-sim showdevicetypes
iPhone-5s, 12.2
iPhone-6, 12.2
iPhone-6-Plus, 12.2
iPhone-6s, 12.2
iPhone-6s-Plus, 12.2
iPad-Air, 12.2
iPad-Air-2, 12.2
iPad-Pro--9-7-inch-, 12.2
Apple-TV-1080p, tvOS 12.2
Apple-TV-4K-4K, tvOS 12.2
Apple-TV-4K-1080p, tvOS 12.2
Apple-Watch-Series-2-38mm, watchOS 5.2
Apple-Watch-Series-2-42mm, watchOS 5.2
Apple-Watch-Series-3-38mm, watchOS 5.2
Apple-Watch-Series-3-42mm, watchOS 5.2
Apple-Watch-Series-4-40mm, watchOS 5.2
Apple-Watch-Series-4-44mm, watchOS 5.2
iPhone-7, 12.2
iPhone-7-Plus, 12.2
iPhone-8, 12.2
iPhone-8-Plus, 12.2
iPhone-SE, 12.2
iPhone-X, 12.2
iPad--5th-generation-, 12.2
iPad-Pro, 12.2
iPad-Pro--12-9-inch---2nd-generation-, 12.2
iPad-Pro--10-5-inch-, 12.2
iPhone-XS, 12.2
iPhone-XS-Max, 12.2
iPhone-XR, 12.2
iPad-Air--3rd-generation-, 12.2
iPad--6th-generation-, 12.2
iPad-Pro--11-inch-, 12.2
iPad-Pro--12-9-inch---3rd-generation-, 12.2

and

$ cordova run ios --list
Available ios devices:
Available ios virtual devices:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants