Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

iphone

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).

I am followings errors while I am trying to use _ACAccountTypeIdentifierTwitter:

Undefined symbols for architecture armv7s:

"_ACAccountTypeIdentifierTwitter", referenced from:
  -[ClsHomePageViewController twitterLogin:] in ClsHomePageViewController.o
"_OBJC_CLASS_$_ACAccountStore", referenced from:
  objc-class-ref in ClsHomePageViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

And my Architecture settings are as follows:

architectures: Standard Architectures (including 64-bit) (armv7,armv7s,armv64)
Base SDK: Latest iOS (iOS 7.0)
Build Active Architecture Only: NO
Valid Architectures: arm64 armv7s armv7
like image 619
Kaushal Soni Avatar asked Jun 09 '14 08:06

Kaushal Soni


2 Answers

Go to your project, open Project (not target) ->Build Settings and set Build Active Architecture Only to NO:

Change Only Active Architecture

like image 77
E-Riddie Avatar answered Sep 28 '22 08:09

E-Riddie


1.Please check your project Architectures. You can find about architectures follow this: enter image description here

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

like image 43
Allen Avatar answered Sep 28 '22 09:09

Allen