简体   繁体   中英

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

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

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

仅更改活动架构

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

您可以在有效的架构列表中添加armv7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM