开发者

iOS App - How to make and call runtime library/app

开发者 https://www.devze.com 2023-03-15 04:48 出处:网络
My iOS app has grown large and take long time to load. Lots of class in my application is not always needed, some may never been called at all depending on user. How can I split my application into se

My iOS app has grown large and take long time to load. Lots of class in my application is not always needed, some may never been called at all depending on user. How can I split my application into several executable file and make the main application call/load them when needed (run-time)?

It's much easier if I can split my application into several executable because I can divide my team's workload into several executable with less de开发者_如何学JAVApendency.


iOS does not support dynamically linking to anything but system-supplied libraries. Any other library must be statically linked into your application.

There's one way to make an end run around this: You can use interpreted code, provided it is shipped with your app. So, if you can split your app into an Obj-C controller and services layer driven by dynamically executed Lua code (for example), you could avoid loading code you never use.

0

精彩评论

暂无评论...
验证码 换一张
取 消