菜鸟教程小白 发表于 2022-12-12 08:53:49

ios - 如何为 iOS 7.0 构建 Mantle v2?


                                            <p><p>我的项目目前针对 iOS 7.1 及更高版本。我已经按照 <a href="https://github.com/Mantle/Mantle" rel="noreferrer noopener nofollow">Mantle&#39;s GitHub site</a> 中的描述与 Carthage 一起 build 了 Mantle。 .但是在构建我的项目时出现以下错误:</p>

<blockquote>
<p>ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later
(@rpath/Mantle.framework/Mantle) for architecture arm64 clang: error:
linker command failed with exit code 1 (use -v to see invocation)</p>
</blockquote>

<p>有人知道我如何为 iOS 7.1(最好是 Carthage)构建 <code>Mantle.framework</code> 吗?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>如果您想以 iOS 7.x 为目标,那么您不能使用框架,因为框架仅从 iOS 8.0 开始受支持。由于 Carthage 创建了框架,因此您也将无法使用 Carthage。</p>

<p>如果您仍想使用 Mantle,请手动将其文件包含到您的项目中,或者使用 Cocoapods 使用现有的 <a href="https://github.com/CocoaPods/Specs/tree/master/Specs/Mantle" rel="noreferrer noopener nofollow">Cocoapods spec files</a> 之一将其构建为静态库。为地幔。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何为 iOS 7.0 构建 Mantle v2?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/32632280/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/32632280/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何为 iOS 7.0 构建 Mantle v2?