[英]iPhone 5S Specific Error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s)
[英]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386)
我在構建iOS應用程序時遇到此錯誤。
沒有要編譯的體系結構( ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386
)。
我在嘗試使用_ACAccountTypeIdentifierTwitter時出現以下錯誤:
架構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
轉到您的項目,打開Project
(非目標) - > Build Settings
並將Build Active Architecture Only
設置為NO
:
1.請檢查您的項目架構。 您可以在此處找到有關架構的信息:
從您的目標 - 構建設置 - 架構,請參見屏幕截圖。
2. Build Active Architecture只有以下Debug設置為YES。
參考:iOS目前有以下指令集:
(1)。 armv6,支持機器iPhone,iPhone2,iPhone3G和相應的iTouch
(2)。 armv7,支持iPhone4,iPhone4S機器
(3)。 armv7s,支持iPhone5,iPhone5C的機器
(4)。 arm64,支持機器:iPhone5S
您可以在有效的架構列表中添加armv7
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.