Reputation: 109
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
Upvotes: 11
Views: 22556
Reputation: 14780
Go to your project, open Project
(not target) ->Build Settings
and set Build Active Architecture Only
to NO
:
Upvotes: 23
Reputation: 196
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
Upvotes: 3