Hope to remove armv6 architecture for iPad in XCode?

Tod Cunningham picture Tod Cunningham · Mar 21, 2010 · Viewed 7.6k times · Source

When building an iPad only application I get the following warning:

"warning: building for deployment target '3.2' should omit the armv6 architecture."

I would like to edit the Architectures setting so it only shows armv7. However, the options are coming from the following marco $(ARCHS_UNIVERSAL_IPHONE_OS).

Is there a macro I should be using for IPAD (non-universal) binaries.

To work around the problem I did the following:

  1. Make sure active target is set on armv7
  2. Check the "Build Active Architecture Only" option

That removes the warning and creates a non-universal binary, but I have to do this EVERY time I switch configurations because the active target keeps defaulting to armv6.

Answer

jemmons picture jemmons · Mar 22, 2010

Not sure about an appropriate macro, but if you select "other...", remove $(ARCHS_UNIVERSAL_IPHONE_OS), and enter just "armv7" on its own, that seems to do the trick.