I can't get my iOS project to build my changes


#1

I’m having a huge issue. None of my changes I am making to my views are being built when I build iOS. I run sudo cordova build ios. Then I open Xcode and “sign” it. I then run from Xcode to my test device. But no changes are made. Even when I remove the iOS platform, add it back, rebuild iOS, run from Xcode, my changes still have not taken effect in the build. Am I missing something?


#2
  1. try and perform “ionic serve” so it republishes the files,
  2. then “cordova platform rm ios”
  3. followed by “cordova platform add ios”.

If that doesn’t work, remove the www folder from the project files, and repeat the above steps.

Hope that fixes the issue for you.


#3

It seems to have fixed my problem! However do I have to do all this every time I make a change and want to test on a device?


#4

Make a change, and try and rebuild iOS app without the steps I mentioned and see if you do. If it doesn’t show the latest version, perhaps remove node_modules folder from your project and run npm install. If that doesn’t fix it, perhaps re-install Ionic.


#5

Okay thanks for the tips!