Changes not reflected when running xcode

I have an Ionic 5 app using angular and capacitor. I am able to run the app in xcode and android studio. The problem is when I make any changes to my .ts files in the app to a page and run the “npx cap sync” command and run the app again in xcode or android studio, the changes do not get pulled in. Is there a way to force this?

Thanks

Make sure to also run a build of the application (e.g. ionic build) before syncing, since the www folder is where npx cap copy pulls the changes from, not your source code.

Oh yes that did the trick thanks!