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 runfile
Orlipo
-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 fromfile
Command.
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.