我最近遇到了适用于 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.
关于ios - 在 iOS 上的 Swift 中使用 Realm DB 对应用程序大小有什么影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51958150/