Raj-iPhone-Mac
Raj-iPhone-Mac

Reputation: 323

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

While using the iphone simulator 64 bit, i'm getting the following architecture error. Also using the xcode 5.0. Any suggestions.

Upvotes: 22

Views: 27437

Answers (3)

bLacK hoLE
bLacK hoLE

Reputation: 801

enter image description hereif you getting error on test xcode project then delete it also resolved this problem.

other way is todo

I had the same error message after upgrading to XCode 5.1. Are you using CocoaPods? If so, this should fix the problem:

Delete the "Pods" project from the workspace in the left pane of Xcode and close Xcode.
Run "pod install" from the command line to recreate the "Pods" project.
Re-open Xcode and make sure "Build Active Architecture Only" is set to "No" in the build settings of both the "Pods" project and your own project.
Clean and build.

Upvotes: 0

Fonix
Fonix

Reputation: 11597

have a look under your build settings, check that the setting Build Active Architecture Only is set to No (might make compiling a bit slower but should fix the problem)

Also check that the Valid Architectures has arm64 in the list

Note if you are getting an error when submitting an app saying "Apps that include an arm64 architecture are required to include both armv7 and armv7s architectures”, setting it to No will also fix this

Upvotes: 65

prema janoti
prema janoti

Reputation: 169

What you need to do is just set the ONLY_ACTIVE_ARCH to NO. Hope it will work.

Upvotes: 6

Related Questions