菜鸟教程小白 发表于 2022-12-13 14:03:24

ios - Realm swift : Shorten build compilation time


                                            <p><p>我刚刚将 RealmSwift pod 包含到我的 Podfile 中:</p>

<pre><code>pod &#39;RealmSwift&#39;, &#39;~&gt; 1.0.2&#39;
</code></pre>

<p>非常酷的 pod,但它确实为我的 CI 服务器 (bitrise.io) 增加了 4 分钟的构建时间。</p>

<p>有没有办法配置 RealmSwift pod,使其不编译某些我不需要的模块?它感觉有点重 - 通过这种方式,它没有实现其针对 Core Data 的“轻量级”竞争优势。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>使用 CocoaPods 意味着您选择从源代码构建库。如果从源代码构建库所需的时间对您来说很麻烦,您可以考虑使用可以使用预构建二进制文件的依赖管理器,例如 Carthage 或 <a href="https://realm.io/docs/swift/latest/#installation-swift-22" rel="noreferrer noopener nofollow">use Realm&#39;s prebuilt binaries directly</a> .</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios -Realmswift: Shorten build compilation time,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/39299493/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/39299493/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - Realm swift : Shorten build compilation time