Xcode Hotswap Code?

Hey,


Was just wondering, im not far from new to xcode and i just wanted to know if you can 'hotswap code' in xcode.


Thanks,

Kez

iMac, Mac OS X (10.7.5)

Posted on Apr 2, 2013 2:25 PM

Reply
8 replies

Apr 4, 2013 11:31 PM in response to red_menace

Well , I replied thinking the author was talking about the programming making some changes to his code. So for me I think of me changing the code in the editor , compiling , and reloading the compiled component into the running program. For instance just a changed class implementation is swapped in as the programming is running. I current do this with Java and it is very nice.

Apr 4, 2013 11:46 PM in response to msuper69

I guess I am in mad scientist mode. I am just hacking on code I am testing in the Simulator , on real iPhone and real iPad. So I do not mean any code changes on the fly for an app not being launched from Xcode proper. This type of programming does have its place. In my normal job , I test against a production server. It takes 4 minutes to download the inital content from the server. If I had to restart my development app run each time from scratch I'd go crazy. I can make certain changes to the code and voila I can see the changes in the application. If you change certain things you cannot hot swap the java.class back in. Any hows I only looked here because this is on my wish list.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode Hotswap Code?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.