How do i compile a static library (fat) for armv6, armv7 and i386

Posted by unforgiven on Stack Overflow See other posts from Stack Overflow or by unforgiven
Published on 2010-05-08T08:18:26Z Indexed on 2010/05/08 8:28 UTC
Read the original article Hit count: 500

I know this question has been posed several times, but my goal is slightly different with regard to what I have found searching the web. Specifically, I am already able to build a static library for iPhone, but the final fat file I am able to build only contains arm and i386 architectures (and I am not sure to what arm refers: is v6 or v7?). I am not able to compile specifically for armv6 and armv7 and them merge both architectures using lipo. The lipo tool complains that the same architecture (arm, not armv6 or armv7) is present in both the armv6 and armv7 libraries.

Can someone explain exactly how to build for armv6 and armv7, and them merge these libraries into a fat file using lipo?

© Stack Overflow or respective owner

Related posts about xcode

Related posts about iphone