Downloadable package on iOS, is there any way to achieve this?

I am working on a large-scale iOS project and want to separate independent modules from several downloadable packages. However, an official document indicates that the download package is not supported on iOS. In addition, I plan to use internal distribution, so the approval of the application store is not a problem.

Now my question is: I call [_bundle principalClass]in the code to access the record class of the download package. It works great on hacked iOS devices. For unjailbroken devices, when I use debug mode with Xcode, it works fine. But when I launch it myself, from the springboard, it falls into the background.

I really want to know:

1) Why is it so different for a downloadable package running on a jailbroken / unjailbroken device?
2) The main differences between the Xcode debugging mode and the normal operating mode for the application?

Are there any other complicated ways to use the dynamic library on unjailbroken iOS devices?

+5
source share
1 answer

iOS prohibits all dynamic loading of executable code that is not part of the system; this includes Framework, dylibs, executable memory pages using mmap, etc. We hope that someday they will allow dynamic packages, but for now you will need to create your modules as static libraries and communicate with them during assembly. There is no such restriction.

, (, http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/), . API- GData objc, OS X, iOS: http://code.google.com/p/gdata-objectivec-client/

+1

All Articles