OGeek|极客世界-中国程序员成长平台

标题: ios - 如何为 iOS 7.0 构建 Mantle v2? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 08:53
标题: ios - 如何为 iOS 7.0 构建 Mantle v2?

我的项目目前针对 iOS 7.1 及更高版本。我已经按照 Mantle's GitHub site 中的描述与 Carthage 一起 build 了 Mantle。 .但是在构建我的项目时出现以下错误:

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)

有人知道我如何为 iOS 7.1(最好是 Carthage)构建 Mantle.framework 吗?



Best Answer-推荐答案


如果您想以 iOS 7.x 为目标,那么您不能使用框架,因为框架仅从 iOS 8.0 开始受支持。由于 Carthage 创建了框架,因此您也将无法使用 Carthage。

如果您仍想使用 Mantle,请手动将其文件包含到您的项目中,或者使用 Cocoapods 使用现有的 Cocoapods spec files 之一将其构建为静态库。为地幔。

关于ios - 如何为 iOS 7.0 构建 Mantle v2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32632280/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4