“No architectures to compile” in Xcode 4

Ariejan de vroom

Ariejan de Vroom – 3 June 2011
189 words in about 1 minute

XCode 4 has a new, improved project structure. But sometimes, when you open an older project format (like XCode 3) you’ll face a little challenge before you can get to coding again. After opening an Xcode 3 project in Xcode 4, we received the message:

1
"No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv6 armv7)."

Since all the architecture settings are configurable from the Build settings that was the first place to look. Strange enough, there were the settings that claimed to let the project build for the “armv6 armv7” architecture. So why didn’t this compile like it supposed to?

As it seems, Xcode 4 doesn’t always read these settings correct from the older project format. So here’s how we fixed this settings related issue:

  • Remove both the armv6 and armv7 items from the Valid Architectures build setting (for both the project AND the target)
  • Create a new value and set it to: $(ARCHS_STANDARD_32_BIT)
  • Clean the project builds and rebuild the project
  • The project should build using the correct architecture setting

Hopefully, this info will save you some time when coding on ye olde Xcode 3 projects.

Ariejan de vroom

Ariejan de Vroom

Software Engineer • CodeRetreat Facilitator • Ruby, Go and C Programmer • Electronics Apprentice

At Kabisa, privacy is of the greatest importance. We think it is important that the data our visitors leave behind is handled with care. For example, you will not find tracking cookies from third parties such as Facebook, Hotjar or Hubspot on our website. Only cookies from Google and Vimeo are used in order to improve the user experience of our visitors. These cookies also ensure that relevant advertisements are displayed. Read more about the use of cookies in our privacy statement.