Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on Xcode - Warning: all apps should include an armv7 architecture (current ARCHS = "")

I'm constantly getting following error while building app.

The error is: Check dependencies

No architectures to compile for (ARCHS=armv7, VALID_ARCHS=arm6 arm7). warning: all apps should include an armv7 architecture (current ARCHS = "").

How can I resolve this? I'm using Xcode 4.3.1.

like image 674
iOSDev Avatar asked Apr 04 '12 23:04

iOSDev


People also ask

What is build architecture in Xcode?

Build Active Architecture Only This is the bool value which specifies the architectures Xcode is going to build for all the valid architectures or only for the one on which the app is currently being run on by looking to the target selected for. By default in Debug mode Build Active Architecture Only value is YES.

What is Valid_archs?

VALID_ARCHS (Valid Architectures) Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on.

How do you add excluded architectures?

You can manually add the Excluded Architecture in your Pod project's Build Settings, but it will be overwritten when you use pod install . In place of this, you can add this snippet in your Podfile . It will write the necessary Build Settings every time you run pod install .

What is Only_active_arch?

ONLY_ACTIVE_ARCH (Build Active Architecture Only)Specifies whether the product includes only object code for the native architecture. Values: YES : The product includes only code for the native architecture (NATIVE_ARCH). NO : The product includes code for the architectures specified in ARCHS (Architectures).


1 Answers

In your TARGET'S Build Settings look into "Build Active Architecture Only" set Debug to "NO" and Release to "NO"

like image 144
MobileDevMaster Avatar answered Nov 15 '22 19:11

MobileDevMaster