Compile library for armv7s-cputype (12) and cpusubtype (11)

Source: Internet
Author: User
Http://stackoverflow.com/questions/12549489/compile-library-for-armv7s-cputype-12-and-cpusubtype-11

I'm a developer of a third party library and I 'd like to recompile my library for armv7s, but I seem to have issues.

I updated xcode to 4.5. I updated the project and the related targets to have valid ubunturesarmv7
armv7s
.

However, when I runfileOrlipo
-info
, It lists

  • I386
  • Armv7
  • (Cputype (12) cpusubtype (11 ))

No armv7s. Am I missing something?

Use xcode's lipo:

xcrun -sdk iphoneos lipo

Apparently,(cputype
(12) cpusubtype (11))
Is another nomenclature for armv7s.

You can refer more here: http://www.galloway.me.uk/2012/09/hacking-up-an-armv7s-library/

The above blog also describes a method for making some libraries armv7s build compatible. The description of above is near the end of the article where he explains about the output fromfileCommand.

To quote a part of it:

Inside this header (called a Mach-O header) is a field for the CPU type and the CPU subtype. arm is CPU Type 12, armv7 is CPU subtype 9 and armv7s is CPU subtype 11.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.