Meteor run ios error


#1

Hi,

I am new with meteor, i got I error when I following the get start tutorial.

I run meteor in browser perfectly.

But I got error with command “meteor run ios”

Can anyone help? Thx…

meteor run ios --verbose
Adding platform Android to Cordova project    
=> Errors executing Cordova commands:         
                                              
   While adding platform Android to Cordova project:
   Cordova error: CordovaError: Failed to fetch platform android
   Probably this is either a connection problem, or platform spec is incorrect.
   Check your connection and platform name/version/URL.
   undefined
   at
   /Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/platform.js:270:25
   at _rejected
   (/Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:797:24)
   at
   /Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:823:30
   at Promise.when
   (/Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:1035:31)
   at Promise.promise.promiseDispatch
   (/Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:741:41)
   at
   /Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:557:44
   at flush
   (/Users/user/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17)
   at process._tickCallback (node.js:448:13)
   (If the error message contains suggestions for a fix, note that this may not
   apply to the Meteor integration. You can try running again with the
   --verbose option to help diagnose the issue.)

#2

I have had issues with JDK issues on OSX when building android previously.

Maybe try ensuring your JAVA_HOME environment variable is correct as that is what fixed it for me.


#3

@jasonweise
Seem my JAVA_HOME variable is functional.

iMac:meteorIonicTemplate user$ echo $JAVA_HOME 
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
iMac:meteorIonicTemplate user$ echo $ANDROID_HOME 
/Users/user/Library/Android/sdk

Do you have any idea??

THX


#4

Hi, I’m getting this same error but on iOS, do you fixed or made any changes to make it work?

This is the error I’m getting on console:

Adding platform iOS to Cordova project        
=> Errors executing Cordova commands:         
                                              
   While adding platform iOS to Cordova project:
   Cordova error: CordovaError: Failed to fetch platform ios
   Probably this is either a connection problem, or platform spec is incorrect.
   Check your connection and platform name/version/URL.
   Error: version not found: cordova-ios@3.9.2
   at
   /Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/platform.js:270:25
   at _rejected (/Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:797:24)
   at /Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:823:30
   at Promise.when (/Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:1035:31)
   at Promise.promise.promiseDispatch
   (/Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:741:41)
   at /Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:557:44
   at flush (/Users/jeronimocosio/.meteor/packages/meteor-tool/.1.1.10.602kty++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17)
   at process._tickCallback (node.js:448:13)

#5

same issue… http://stackoverflow.com/questions/33486951/meteor-app-not-running-in-ios-simulator-after-upgrading-to-el-capitán


#6

@cosio55
Yup, finally I solve the problem by reinstall cordova and meteor.
In my case, that is not a project problem, it should be a framework installation problem.


#7

Actually @markoshust link worked perfectly for me, for anyone having this error you just need to delete the .cordova foler with:

rm -rf ~/.cordova