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)
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)
If by hot swap code you are referring to the ability to modify running programs compiled code then the answer is no as far as I know.
If you are referring to something else post back.
Too bad, this feature makes a programmer much much more productive. If we are going to fend off the Java hoard this feature of development would go a long way.
Maybe I'm misunderstanding, but I've always thought self-modifying code was a bit of a hack - you aren't going to be able to code-sign it either.
Self-modifying code was great when computers were the size of rooms and memory was 4kb.
It's a pain to debug.
Not so great now nor is it needed.
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.
Please explain how a user running an app on his iPhone is supposed to benefit by this?
How would the changed class implementation make it onto the iPhone without the user updating the app via the App Store?
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.
You test it against production?
Why? What are test environments for?
I'd suggest you get out of mad scientist mode when working with Apple development.
Xcode Hotswap Code?