gpt4 book ai didi

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

转载 作者:技术小花猫 更新时间:2023-10-29 11:11:02 24 4
gpt4 key购买 nike

我在构建我的 iOS 应用程序时遇到此错误。

没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=armv7,VALID_ARCHS=armv6 i386)。

我在尝试使用 _ACAccountTypeIdentifierTwitter 时遇到以下错误:

架构 armv7s 的 undefined symbol :

"_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

最佳答案

转到您的项目,打开Project(不是目标)->Build Settings 并将Build Active Architecture Only设置为NO :

Change Only Active Architecture

关于ios - 没有要编译的体系结构(ONLY_ACTIVE_ARCH=YES,active arch=armv7,VALID_ARCHS=armv6 i386),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24116636/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com