0

Although I set up my static library project in XCode to build armv6, armv7, i386 and x86_64, it does not build a full fat file :-(

lipo -info lib...a tells me that it is a fat file with armv6 and armv7, nothing else, no more architectures inside.

How to get them all put into one file?

Thanks

ledy
  • 1,527
  • 6
  • 22
  • 33

1 Answers1

0

You probably have the "Valid architectures" (VALID_ARCHS) build setting set to narrow the set of architectures for which your target is built.

Jesper
  • 7,477
  • 4
  • 40
  • 57
  • there's also a "build for current architecture only" flag too you might want to check – nielsbot Nov 02 '12 at 09:38
  • "build for active architecture only"=no, "valid architectures"="armv7 armv6 i386 x86_64"; something wrong there? – ledy Nov 02 '12 at 09:43
  • Not that I can tell. What does the build log itself say that clang or GCC builds for? – Jesper Nov 02 '12 at 09:56
  • it's saying `CreateUniversalBinary DerivedData/TestSDKLib/Build/Products/Debug-iphoneos/libTestSDKLib.a normal "armv7 armv6 i386 x86_64"` but `lipo -info` tells me about armv6 and armv7 only. – ledy Nov 02 '12 at 10:05
  • Does other build steps show that it compiles for i386 and x86_64 too? – Jesper Nov 02 '12 at 10:25
  • no, only when i build for iphone/ipad simulator instead of device. how to build for both in the same step? – ledy Nov 02 '12 at 10:32