ionic run --device --livereload -c still begins to serve and watch even if the previous call to ios-deploy did not return successfully. I attached a snippet of my terminal so you can see the problem.
If ios-deploy does not exit with a return code of 0, ionic-run should abort at that point and return an error code itself.
Steps to reproduce:
ionic run --device --livereload -c (ios device)[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package /Users/bbense/Dropbox/devel/p4-app/platforms/ios/build/device/Leafled.app
------ Debug phase ------
Starting debug of J81AP 'IPad Air2' (xxxx) connected through USB...
2016-11-09 06:42:28.996 ios-deploy[80612:5705731] [ !! ] Unable to locate DeviceSupport directory. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Error: Error code 253 for command: ios-deploy with args: --justlaunch,--no-wifi,-d,-b,/Users/bbense/Dropbox/devel/p4-app/platforms/ios/build/device/Leafled.app
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
CSS changed: www/build/main.css
JS changed: www/build/main.js
Which @ionic/app-scripts version are you using?
@ionic/[email protected]
I'm having the same problem.
@jthoms1,
Let's chat about this one. I'm not sure if this is CLI or app-scripts where we need to make the change.
Thanks,
Dan
I got the same issue. Any workaround please?
---- Updated ---
Hey, I solved it by restarting my iPhone and run the cmd again. It works like a charm. Thanks to @shazron at this https://github.com/phonegap/ios-deploy/issues/171