Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hope to remove armv6 architecture for iPad in XCode?

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.

like image 879
Tod Cunningham Avatar asked Mar 21 '10 19:03

Tod Cunningham


1 Answers

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.

like image 196
jemmons Avatar answered Oct 27 '22 00:10

jemmons