iOS应用程序共享框架吗? [英] Do iOS apps share frameworks?

查看:115
本文介绍了iOS应用程序共享框架吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在使用相同框架的同一设备上安装了多个应用程序,是否存储在设备上的框架代码的多个副本或所有应用程序是否共享它们?

If several apps are installed on the same device which use the same framework, are multiple copies of the framework code stored on the device or do all apps share them?

推荐答案

如果它是系统提供的框架,那么每个应用程序都使用框架的共享系统副本。如果它是您下载并添加到项目中的框架,那么您的应用程序将使用该私有副本。 (对于OS X应用程序和框架也是如此)。

If it's a system-provided framework, then every app uses the shared system copy of the framework. If it's a framework you downloaded and added to your project, then your app uses that private copy. (The same is true for OS X apps and frameworks).

(请注意,非系统iOS框架必须是静态的,因此无论如何它们都不能在应用程序之间共享但是,即使动态库框架是可能的,这个答案仍然适用,就像OS X上的情况一样。)

(Note that non-system iOS frameworks must be static, so they wouldn't be shareable between apps anyway. But, this answer would hold true even if dynamic library frameworks were possible, as is the case on OS X).

这篇关于iOS应用程序共享框架吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆