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

run ios - error "Device type (...) could not be found" #9126

Closed
ko-dever opened this Issue Sep 22, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@ko-dever
Contributor

ko-dever commented Sep 22, 2017

Hello everybody, I am facing with a problem concerning the command meteor run ios.
I searched on Stack Overflow, etc but I did not found any help.

I started few days ago to learn Meteor, with Visual Studio Code, so I followed the (Blaze) tutorial for the "simple-todos" app. At the end the app worked properly.

Step "6. Running on mobile", I had to install Xcode (version 9.0, 9A235) via the Mac App Store, no problem. When I typed meteor install-sdk ios it asked me to install others dependencies (like Cocoapods), fine. (I launched XCode, and the Simulator to see if, at least, one device could be started, perfect, I can close it)

Then, when I run meteor run ios it raises many errors (see my PasteBin) like this one in the first lines :

Error: Command failed: /Users/zekka/Dev/meteor/simple-todos/.meteor/local/cordova-build/platforms/ios/cordova/run --emulator
Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.

Meteor, Visual Studio Code, Xcode, etc were all installed recently, at their last version and without any fancy configuration, so I do not understand why this happens.

  • The version of Meteor showing the problem : Meteor 1.5.2
  • The operating system you're running Meteor on : macOS Sierra 10.12.6
  • The expected behavior : An iOS Simulator running the "simple-todos" app from the Meteor (Blaze) tutorial.

Thank you for your help.

@hwillson

This comment has been minimized.

Member

hwillson commented Sep 22, 2017

Thanks for reporting this @zanot - you're running into issue ios-control/ios-sim#218, which has been fixed (ios-control/ios-sim#219), and should be coming in cordova-ios@4.5.1 (reference ios-control/ios-sim#218 (comment)). After this fix is available, Meteor will need to be updated to use the most recent version of cordova-ios. In the meantime, hopefully someone else more familiar with Cordova will chime in here with a workaround.

@klaussner

This comment has been minimized.

Collaborator

klaussner commented Sep 22, 2017

Until cordova-ios is updated in Meteor, you can install the latest version of ios-sim manually by running the following in your project directory:

cd .meteor/local/cordova-build/platforms/ios/cordova
meteor npm install ios-sim@latest
@hwillson

This comment has been minimized.

Member

hwillson commented Sep 22, 2017

Awesome @klaussner - I just noticed your comment about this #9098, so when the upstream patch makes it into cordova-ios (followed by Meteor), we should be able to close both issues off. Thanks!

@ko-dever

This comment has been minimized.

Contributor

ko-dever commented Sep 22, 2017

Thank you @klaussner for the tip, the command meteor run ios works now, a Simulator is correctly launched.
And thank you @hwillson too for the information 👍 .

@hwillson hwillson self-assigned this Sep 26, 2017

hwillson added a commit to hwillson/meteor that referenced this issue Sep 26, 2017

hwillson added a commit to hwillson/meteor that referenced this issue Sep 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment