简体   繁体   English

如何为iOS 7.0构建Mantle v2?

[英]How to build Mantle v2 for iOS 7.0?

my project currently targets iOS 7.1 and up. 我的项目目前面向iOS 7.1及更高版本。 I have built Mantle along with Carthage as described on the Mantle's GitHub site . Mantle的GitHub网站所述,我已经与Carthage一起构建了Mantle But I get the following error when building my project: 但是在构建项目时出现以下错误:

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) ld:仅在架构arm64 clang的iOS 8.0和更高版本(@ rpath / Mantle.framework / Mantle)上才支持嵌入式dylibs / frameworks:错误:链接器命令失败,退出代码为1(使用-v查看调用)

Does somebody know how I could build the Mantle.framework for iOS 7.1 (preferably with Carthage) ? 有人知道我如何为iOS 7.1(最好是Carthage)构建Mantle.framework吗?

If you want to target iOS 7.x then you cannot use frameworks as frameworks are only supported from iOS 8.0 onwards. 如果要定位到iOS 7.x,则不能使用框架,因为仅从iOS 8.0起才支持框架。 Since Carthage creates frameworks, you also won't be able to use Carthage. 由于迦太基创建了框架,因此您也将无法使用迦太基。

If you still want to use Mantle, either include its files into your project manually or use Cocoapods to build it as a static library using one of the existing Cocoapods spec files for Mantle. 如果仍要使用Mantle,请手动将其文件包含到项目中,或使用Cocoapods使用Mantle的现有Cocoapods规格文件之一将其构建为静态库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM