“No architectures to compile” in Xcode 4

Ariejan de vroomPosted by Ariejan de Vroom on 3-6-2011

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:

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

Bij Kabisa staat privacy hoog in het vaandel. Wij vinden het belangrijk dat er zorgvuldig wordt omgegaan met de data die onze bezoekers achterlaten. Zo zult u op onze website geen tracking-cookies vinden van third-parties zoals Facebook, Hotjar of Hubspot. Er worden alleen cookies geplaatst van Google en Vimeo. Deze worden gebruikt voor analyses, om zo de gebruikerservaring van onze websitebezoekers te kunnen verbeteren. Tevens zorgen deze cookies ervoor dat er relevante advertenties worden getoond. Lees meer over het gebruik van cookies in ons privacy statement.