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

Liyan Chang picture Liyan Chang · Sep 23, 2012 · Viewed 10.2k times · Source

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 architectures of armv7 armv7s.

However, when I run file or lipo -info, it lists

  • i386
  • armv7
  • (cputype (12) cpusubtype (11))

No armv7s. Am I missing something?

Answer

Cfr picture Cfr · Sep 25, 2012

Use XCode's lipo:

xcrun -sdk iphoneos lipo