Subsequent local iOS XCode build do not update iOS app

12 views
Skip to first unread message

P5music

unread,
May 7, 2021, 7:57:56 AM5/7/21
to CodenameOne Discussions

When building the XCode project of a maven project in IntelliJ Idea it can happen that only the first time the XCode project is updated.
Indeed after compilation XCode opens and the app can be compiled and run in the iOS simulator.
Next times I build a modified project with maven but then the XCode is on the old build and also if rebuilt the app in the simulator is the old version.
I realized it because my modifications where evident, but in case of subtle debugging I could be thinking my modifications were not working.

Regards

Steve Hannah

unread,
May 7, 2021, 8:04:58 AM5/7/21
to codenameone...@googlegroups.com
This is a safety feature so you don't accidentally overwrite changes you have made to your xcode project.  To do a fresh build you'll need to first "clean" the ios project module, then do a rebuild.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/3c09181c-0655-46ae-a7b9-8e474c1669bdn%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One

P5music

unread,
May 7, 2021, 9:11:58 AM5/7/21
to CodenameOne Discussions
It is strange or counter-intuitive if I understand well,
that is
when in IntelliJ Idea I select local builds->iOS Xcode project, and then press the green run button, it is as I am doing nothing?
Should I clean the iOS project module prior to press the button? Maybe in fear that I am wrong and clicked that option by mistake?
Should I know it? In your article you do not mention it.
Regards
Reply all
Reply to author
Forward
0 new messages