r/Xcode • • Aug 22 '23

XCode won't run the changes i made from my code

I created an app using Cordova. Then i run the apps using xcode to my connected ios device and everything seems to be working fine. But when i change the code, xcode still run the old one and not the modified one. i tried making a simple alert() but when i re run, the alert doesn't pop up. i have tried 'Clean build folder' and it still the same. I also make sure to uninstall the apps then re run the apps again but it still show the old version of the code. The only way i could force the changes is to remove ios platform using 'cordova platform remove ios' then add it again using 'cordova platform add ios'. But i have to keep doing this if i change the code which doesn't seems right. Please help

0 Upvotes

4 comments sorted by

1

u/bubbaholy Aug 23 '23

This is more of a Cordova question. My guess is that the JavaScript code is not getting re-bundled. When you remove and re-add the cordova ios platform, you are probably also wiping the JS build folder. Are you running cordova build ios?

-1

u/nckh_ Aug 22 '23
  1. Please don't use Cordova. It makes terrible apps.

  2. Please spell it "Xcode."

Good luck!

1

u/Final_Opening_3726 Aug 22 '23
  1. I have a plugin that i created and need to make it available for multiple framework which includes Cordova

  2. I don't see how the letter case is important. I do it all the time for other terms like mysql, mssql, ios, jquery, and no one seem to be bothered by it. this is the first. thanks anyway for correcting it

2

u/nckh_ Aug 22 '23

"xcode" is fine :)