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

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

Closed
ko-dever opened this issue Sep 22, 2017 · 5 comments · Fixed by #9137
Closed

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

ko-dever opened this issue Sep 22, 2017 · 5 comments · Fixed by #9137
Assignees
Labels
confirmed We want to fix or implement it Impact:most Type:Bug

Comments

@ko-dever
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

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 👍 .

@soumojit
Copy link

Running Meteor 1.8.1 and facing the same issue.

Able to fix it using @klaussner's suggestion,

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

PS: Removing ios as platform and adding back or updating meteor as some of the stackoverflow threads suggested did not help.

Attaching the log below for reference,

=> Started proxy.                             
=> Started MongoDB.                                                             
=> Started your app.                                                            
                                              
=> App running at: http://localhost:3000/     
=> Errors executing Cordova commands:         
                                              
   While running Cordova app for platform iOS with options
   --buildConfig,/Users/soumojit/Projects/personal/node/test_app/.meteor/local/cordova-build/build.json,--emulator:
   Error: Command failed:                     
   /Users/soumojit/Projects/personal/node/test_app/.meteor/local/cordova-build/platforms/ios/cordova/run
   --buildConfig
   /Users/soumojit/Projects/personal/node/test_app/.meteor/local/cordova-build/build.json
   --emulator
   Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be
   found.
   at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
   at emitTwo (events.js:126:13)
   at ChildProcess.emit (events.js:214:7)
   at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
   => awaited here:
   at Function.Promise.await
   (/Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:843:14)
   at Promise.asyncApply (/tools/cordova/project.js:310:10)
   at
   /Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40

/Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
      throw error;
      ^
undefined
 => awaited here:
    at Function.Promise.await (/Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
    at Promise.asyncApply (/tools/cordova/run-targets.js:35:7)
    at /Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
 => awaited here:
    at Function.Promise.await (/Users/soumojit/.meteor/packages/meteor-tool/.1.8.1.4gwv5w.33478++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
    at buildmessage.capture (/tools/cordova/runner.js:98:9)
    at Object.capture (/tools/utils/buildmessage.js:283:5)
    at CordovaRunner.startRunTargets (/tools/cordova/runner.js:97:37)
    at AppRunner._runOnce (/tools/runners/run-app.js:760:21)
    at AppRunner._fiber (/tools/runners/run-app.js:922:28)
    at /tools/runners/run-app.js:401:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed We want to fix or implement it Impact:most Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants