"ionic run --device" error


#1

Hello,

I’ve set up a little ionic app which works well in dev mode (ionic serve) and in emulation ( ionic run ios ).

Problem is when i start trying it on my iphone via ionic run --device

The app starts on the device but it’s like angular is not booted (some kind of strange js error preventing the code to be run) … I don’t know how to access to the webview console logs to understand the problem (which once again doesn’t seem to appear on my machine but only on the iphone), i’m totally new to xcode and ios dev …

Does any of you have a begining of answer ?


#2

If you type ionic help run you can see what options you can pass to the ionic run command, and if you pass --livereload --consolelogs you should be able to see the console logs.


#3

thanks a lot ! helped to fix thx again !