In fact there are some solutions out there for code injection using bundles on iOS, e.g. the following video:
It packages it all up as a plugin for Xcode.
HN user
In fact there are some solutions out there for code injection using bundles on iOS, e.g. the following video:
It packages it all up as a plugin for Xcode.
Objective-C supports code replacement very well as it "run-time binds" selectors to method implementations. By injecting a bundle with a new implementation in a category it takes precedence over the original implementation as if the method had been "swizzled". The previous implementation linked into the app is taken out of play and ignored. This is all looked after by the application I mentioned. The complications seem to be minimal in my experience as long as you don't change the class interface...
Code injection isn't impossible in Objective-C even on iOS, check out http://injectionforxcode.com/ or the write up by Erica Sadun here: http://www.tuaw.com/2012/05/10/devjuice-injection-for-xcode/