iosxcodedylibgithub-mantle

How to build Mantle v2 for iOS 7.0?


my project currently targets iOS 7.1 and up. I have built Mantle along with Carthage as described on the Mantle's GitHub site. 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)

Does somebody know how I could build the Mantle.framework for iOS 7.1 (preferably with Carthage) ?


Solution

  • If you want to target iOS 7.x then you cannot use frameworks as frameworks are only supported from iOS 8.0 onwards. 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.