iOSDev
iOSDev

Reputation: 3617

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.

Upvotes: 16

Views: 8485

Answers (4)

Matej Zimic
Matej Zimic

Reputation: 73

This happened with my app when I had my iPhone connected to my Mac. When I disconnect it and archive again selecting iOS Device it was OK.

Upvotes: 5

PaNaVTEC
PaNaVTEC

Reputation: 2503

My problem was i wrote "armv7, armv7s", just remove the quote "," and it works ok.

Upvotes: 1

MobileDevMaster
MobileDevMaster

Reputation: 666

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

Upvotes: 48

JiaYow
JiaYow

Reputation: 5227

In your target's Build Settings there is a setting called "Architectures", which is probably empty. Add "armv7" and/or "armv6" to it.

Upvotes: 3

Related Questions