添加 Realm DB 后项目大小增加到 716 MB [英] Project size increased to 716 MB after adding Realm DB
问题描述
该项目只是一个简单的记事本,但添加 Realm DB 后大小增加到 716 MB.可能是什么问题呢 ?Xcode 中也有警告:/:1:1: 模块‘Realm’的 Umbrella 头文件不包括头文件‘/core/realm.h’"
如果参考
如果删除示例等内容,它仍然约为 525Mb,因此您在问题中看到的内容大致正确.
编辑
项目开发文件夹中可能存在许多附加文件和东西",它们可能不属于最终项目的一部分,因为 SDK 可能需要支持多种设备.
比如在Realm/core/realm-monorepo.xcframework文件夹中,有macOS/tVOS/iOS/watchOS等的支持文件,所以很多无关紧要的东西在您的设备上处理项目.如果您不使用 SDK 的那部分,可以将其删除以缩小项目文件.
另外,从github下载的10.7.2 SDK有一堆示例项目和代码也可以删除.
The project is just a simple notepad but the size increased to 716 MB after adding Realm DB. What could be the problem ? There is a warning in Xcode as well: "/:1:1: Umbrella header for module 'Realm' does not include header '/core/realm.h'"
If you refer to the github for Realm releases you can see the RealmSwift SDK comes in at 871 Mb zipped (2Gb unzipped!).
If the examples and so forth are removed, it's still about 525Mb so what you're seeing in your question is about right.
EDIT
There are a lot of additional files and 'stuff' that may exist within a project development folder that may not be part of the final project because the SDK may need to support multiple devices.
For example, in the Realm/core/realm-monorepo.xcframework folder, there are supporting files for macOS/tVOS/iOS/watchOS etc, so a lot of extraneous stuff that has nothing to do with the project on your device. If you are not using that part of the SDK, those can be removed to make the project file smaller.
Additionally, the 10.7.2 SDK that's downloaded from github has a bunch of example projects and code that can also be removed.
这篇关于添加 Realm DB 后项目大小增加到 716 MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!