Xcode 4.0 Error: No architectures to compile for – Facebook iOS SDK
April 7, 2011 § 3 Comments
Upgrading Xcode projects from Xcode 3.x to Xcode 4.0 are not that simple. It does involve a lot of “detective” work like solving murder mystery.
In this case it happens on Facebook iOS SDK sample project. The codes work perfectly fine in Xcode 3 yet the same code won’t run in Xcode 4.0 Simulator. After trying many suggestions from Apple Developer Forum, I found the only working solution.
[EROR] No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv6).
“No architectures to compile for” means “Valid Architectures” field is empty. Update it to $(ARCHS_STANDARD_32_BIT) and you’ll see the usual armv6 armv7. This happens in XCode 4 after updating “Base SDK” to “Latest SDK”.
Instruction:
- Select Project in the Navigator left panel in Xcode 4
- Select Targets
- In Build Settings, enter VALID_ARCHS in the search box to show Valid Architectures
- Enter $(ARCHS_STANDARD_32_BIT) in the value column
- It should show armv6 armv7
- Run
Thank you so much for sharing this, saved my day! I already started feeling stupid about this
[...] 24, 2011 by GQAdonis | 0 comments Share Tweet wordpress plugins and themesThis article describes how to fix a common error I run into when trying to port open source libraries from Xcode [...]
“Xcode 4.0 Error: No architectures to compile for – Facebook iOS SDK
Web Builders” truly got me personally simply hooked with your internet page!
I personallywill certainly wind up being back far more
frequently. Thank you ,Katie