lehtu
lehtu

Reputation: 907

Meteor run ios - not working at all

I have only created new project and added ios-platform. This is what I get when I'm trying to run it on iOS-simulator:

$ meteor run ios
[[[[[ ~/Dropbox/Projects/testapp ]]]]]

=> Started proxy.
ios: failed to start the app.
ENOENT, open
'/Users/lehtu/Dropbox/Projects/testapp/.meteor/local/cordova-build/platforms/ios/cordova/console.log'
=> Started app on iOS Simulator.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/

Also there is no platforms folder in that path it's telling me should be a console.log

Any ideas why this failed and what ENOENT means? Or better.. how to make this work?

Running in device doesn't work either:

$ meteor run ios-device
WARNING: You are testing your app on a remote device.For the mobile app to be able to connect to
         the local server, make sure your device is on the same network, and that the network
         configuration allows clients to talk to each other (no client isolation).
[[[[[ ~/Dropbox/Projects/testapp ]]]]]

=> Started proxy.

Could not open your project in Xcode.
Try running again with the --verbose option.
Instructions for running your app on an iOS device:
https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-iOS-device

Upvotes: 1

Views: 1222

Answers (1)

Roope Hakulinen
Roope Hakulinen

Reputation: 7405

In the first case it looks like you would be trying to use console.log when the Console plugin isn't available for platform iOS, so you would need to first run

cordova platform add ios

to install the iOS as platform. This command will also generate the folder platforms/ios/. And after that, run the installation for plugin with

cordova plugin add org.apache.cordova.console

On the second case (ios-device) it seems clear that you are missing Xcode as Akshat already suggested on his comment. Thus you would need to install it as described in link provided by him.

Upvotes: 1

Related Questions