I am getting this error while building my iOS app.
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386
).
1.Please check your project Architectures. You can find about architectures follow this:
From your target - Build Settings - Architectures, see the screenshot.
2.The Build Active Architecture Only the following Debug is set to YES.
Reference:iOS currently has the following instruction set:
(1). armv6, support machines iPhone, iPhone2, iPhone3G and the corresponding iTouch
(2). armv7, support machines iPhone4, iPhone4S
(3). armv7s, support machines iPhone5, iPhone5C
(4). arm64, support machines: iPhone5S
Go to your project, open Project
(not target) ->Build Settings
and set Build Active Architecture Only
to NO
:
You can add armv7
in you valid architecture list.