ios - 在 iOS 上的 Swift 中使用 Realm DB 对应用程序大小有什么影响

标签 ios swift realm realm-database

我最近遇到了适用于 Swift iOS 的 Realm DB,它看起来很有前途。话虽如此,在导入库后,尽管应用程序中包含的代码非常少,但该应用程序看起来在设备上占用了大约 48 MB 的存储空间。这是 Realm DB 的预期行为吗?

除了 Realm.framework 和 RealmSwift.framework 包含的框架大约 80MB 和 15MB(这些是你拖到 XCode 中安装的框架)之外,我没能找到更多其他信息

SQlite 似乎仍低于 1MB;预计此框架将使用该空间的许多倍吗?

我想知道与使用 Realm DB 相关的应用程序大小增加对于 iOS 应该是多少。

谢谢!

最佳答案

How big is the Realm base library?

Realm should only add around 5 to 8 MB to your app’s download size. The releases we distribute are significantly larger because they include support for the iOS, watchOS and tvOS simulators, some debug symbols, and bitcode, all of which are stripped by the App Store automatically when apps are downloaded.

引用: Realm's Swift Documentation

关于ios - 在 iOS 上的 Swift 中使用 Realm DB 对应用程序大小有什么影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51958150/

相关文章:

ios - FBSDK 4.7.1登录时"You have already authorized yourApp"

ios - 图片(或视频)在 Swift 中发布到服务器

java - Realm : Working with RealmChangeListener in Runnable

android - 每次查询/写入后关闭 Realm 实例是否可以?

xcode - 使用 Swift 在 tableView 中重新排序 Realm.io 数据

ios - NS_ASSUME_NONNULL_END 之后的可空性注释警告

iphone - 我是芝加哥的NY客户,如何远程运行仍在开发中的iPhone,iPad App?

ios - 在其他 UIPageViewController 中执行 segue

ios - UIScrollView 没有在 Swift 中正确添加 subview

swift - UIButton 标题未显示在 UIStackView 内