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
About these ads

§ 3 Responses to Xcode 4.0 Error: No architectures to compile for – Facebook iOS SDK

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Xcode 4.0 Error: No architectures to compile for – Facebook iOS SDK at Web Builders.

meta

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: