views:

294

answers:

1

After upgrading to the iPhone SDK 4.0, I get the following error when building for device:

gcc-4.0: Invalid arch name : armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 failed with exit code 1

Before, I was only building for armv6 (the default on pre 4.0 SDK's).

+1  A: 

While I had GCC 4.2 selected in my project settings, it was still using 4.0. By switching to 4.0 and then back, I was able to compile with 4.2.

David Beck
Probably so, and make sure that it's consistent between debug and release mode! That always gets me when I do builds.
Jasconius