Possible Duplicate:
How to build for armv6 and armv7 architectures with iOS 5
I need to build a library and executable that will be installable on both iPhone 3 and iPhone 3gs & later. I guess the iPhone 3 has an arm6 processor and later devices have arm7. However when I try to build for later devices with Build for Active Architectures Only to set No, which would produce an arm6+arm7 binary, the build doesn't complete, because it rejects the library.
Is there a way to get Xcode to build for both arm6 and arm7 without complaints?
Thanks.