简体   繁体   English

没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = armv7,VALID_ARCHS = armv6 i386)

[英]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. 我在构建iOS应用程序时遇到此错误。

No architectures to compile for ( ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386 ). 没有要编译的体系结构( ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386 )。

I am followings errors while I am trying to use _ACAccountTypeIdentifierTwitter: 我在尝试使用_ACAccountTypeIdentifierTwitter时出现以下错误:

Undefined symbols for architecture armv7s: 架构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 : 转到您的项目,打开Project (非目标) - > Build Settings并将Build Active Architecture Only设置为NO

仅更改活动架构

1.Please check your project Architectures. 1.请检查您的项目架构。 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. 2. Build Active Architecture只有以下Debug设置为YES。

Reference:iOS currently has the following instruction set: 参考:iOS目前有以下指令集:

(1). (1)。 armv6, support machines iPhone, iPhone2, iPhone3G and the corresponding iTouch armv6,支持机器iPhone,iPhone2,iPhone3G和相应的iTouch

(2). (2)。 armv7, support machines iPhone4, iPhone4S armv7,支持iPhone4,iPhone4S机器

(3). (3)。 armv7s, support machines iPhone5, iPhone5C armv7s,支持iPhone5,iPhone5C的机器

(4). (4)。 arm64, support machines: iPhone5S arm64,支持机器:iPhone5S

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone 5S特定错误:没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = arm64,VALID_ARCHS = armv7 armv7s) - iPhone 5S Specific Error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s) 没有要编译的架构 (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 Xcode 5.1 - 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386) - Xcode 5.1 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386) 错误“ ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386” - an error “ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386” Xcode 12 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=arm64e armv7s arm64 arm7) - Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7) 检查依赖项...没有要编译的体系结构(ARCHS = i386,VALID_ARCHS = arm64 armv7s armv7) - Check dependencies… No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7s armv7) 没有要编译的架构(ARCHS = i386,VALID_ARCHS = arm64 armv7 armv7s) - No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s) Xcode 9没有要编译的体系结构(ARCHS = arm64,VALID_ARCHS = armv6 armv7) - Xcode 9 No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv6 armv7) 无法为armv7进行编译,此处有效的体系结构为armv6,armv7和i386 - Cannot compile for armv7s here valid architectures are armv6, armv7 and i386 没有要编译的架构(ARCHS = armv7,armv7s,VALID_ARCHS = armv7 armv7s) - No architectures to compile for (ARCHS=armv7,armv7s, VALID_ARCHS=armv7 armv7s)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM