【发布时间】:2021-08-20 11:13:01
【问题描述】:
我尝试在 github 上提交对我的项目的更改。我已将领域数据库添加到我的项目中,现在提交太大了。我已经读过我需要使用 github 大文件,但要做到这一点,我需要在我的 mac 上安装自制软件。问题是我没有足够的内存来执行此操作。
我在 github 上找到一篇文章,人们建议通过 Xcode swift 包管理器安装 Realm(现在我使用可可豆荚),然后它不应该那么大。但我想知道在一个项目中使用可可豆荚(我需要它来做其他一些事情)和 swift 包管理器是否存在问题?
当我尝试提交时,我会收到此警报
Pods/Realm/core/realm-monorepo.xcframework/watchos-armv7k_arm64_32/librealm-monorepo.a is 76.01 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
Pods/Realm/core/realm-monorepo.xcframework/ios-arm64_x86_64_i386-simulator/librealm-monorepo.a is 68.40 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
Pods/Realm/core/realm-monorepo.xcframework/tvos-arm64_x86_64-simulator/librealm-monorepo.a is 53.93 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
Pods/Realm/core/realm-monorepo.xcframework/ios-armv7_arm64/librealm-monorepo.a is 77.82 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
【问题讨论】:
-
“问题是我没有足够的内存来执行此操作。”在这一点上,这成为一个硬件问题。如果您的记忆力如此之小,那么您已经被水洗了。这不是一个可行的开发环境。
-
您不应该首先将签出的依赖项提交给 git。看看你在使用 Cocoapods 时应该和不应该提交的内容。
-
把你的大文件放在你的忽略列表中。