簡體   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)

我在構建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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM