I build a project on my windows pc. The App runs on Android perfect. Now I copied the source to a mini mac and build there a xcode prject with the commands:
ionic platform add ios
ionic build ios
Then i open the project with xcode. The app runs on my testing device without problems.
But when I now edit some details in the template files with xcode an re-run the project on my testing device, the changes doesn’t appears.
Do I have to build the xcode project every time new when I edit some small things?
You don’t necessarily have to rebuild each time to see updates in the app. I recommend using ionic emulate ios -l -c --device to get around this for development though. This will run a live reload server and hook it up to the device (therefore it will only work while the server is running) but it’s great to tweak UIs, etc. in real time.
-l triggers live reload, -c puts all logs into the console and --device targets a device instead of emulator.
@Laire You can use @emily 's method, or if you’re looking for the build route->
You do have to build. I personally use some traditional cordova commands so before I build I make sure my files are saved, then I do cordova prepare ios and then ionic build ios.
Or if you are in Xcode already after cordova prepare ios you can just build and run via Xcode, which I prefer because then you can get all the debug logs, profiling for performance, that kind of stuff.
Hi,
I had the same problem and running "cordova prepare ios " fixed this for me.
Is there a way to run this command automaticly using the Build pre-actions in xCode?