在设备上安装 iOS 应用程序后,是否有可能以任何方式将资源加载到该应用程序?

Is it possible anyhow to load resources to an iOS app after it is installed on device?

我想将应用程序的大小减小到最小水平。那么安装后我可以从远程加载哪些资源?我知道我可以从远程下载图像。但是我可以在安装后从远程下载库或 pods 吗?我知道我们需要这些文件来生成 ipa 文件。有没有什么方法可以用最少的所需代码和远程的 "load" 其余代码来设置应用程序,这甚至可能吗?

另一方面,我认为应该有一个框架来检查设备上现有的库(如 AF Networking),如果不存在,则下载它,所有需要它的应用程序都使用它.这将有助于显着减小应用程序的大小。

绝对是资产(图像、电影、声音等...)。

对于可执行代码(库、框架和 pods)绝对不是。

这将直接违反 Apple 在 App Store 上对应用程序制定的规则之一。

任何可执行代码都必须捆绑并提交给 App Store 以供批准。

A​​pple 的 iOS 开发者指南声明:

3.3.2 — An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s).