没有要编译的体系结构(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)

查看:95
本文介绍了没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = armv7,VALID_ARCHS = armv6 i386)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建我的iOS应用程序时出现此错误。

I am getting this error while building my iOS app.

没有要编译的体系结构( 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).

我在尝试使用_ACAccountTypeIdentifierTwitter时出现以下错误:

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

架构armv7s的未定义符号:

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)

我的架构设置如下:

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:

这篇关于没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = armv7,VALID_ARCHS = armv6 i386)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆