ios Symbol(s) not found for architecture arm64總結 含隱藏錯誤cocoapods

來源:互聯網
上載者:User

標籤:linker   解決   .com   setting   nec   總結   debug   方案   報錯   

一、通用

報錯:Desktop/project/ASDF/WEIXIN/libWeChatSDK.a (3 slices) Undefinedsymbols for architecture arm64:

這樣的編譯問題真的好頭疼,以下是一個管用的法子。

 

ARCHS = armv7 armv7s

VALID_ARCHS = armv6 armv7 armv7s arm64

 

二、http://stackoverflow.com/questions/33321897/xcode-7-1-symbols-not-found-for-architecture-arm64

Xcode 7.1 - symbol(s) not found for architecture arm64

 

 

 

2

down vote

accepted

  1. In your project settings, add -llibaotp to "Other Linker Flags".
  2. Add the path to the library to "Library Search Paths".

Alternatively, add the library to the Link Binary with Libraries build phase (for screenshots see https://www.chilkatsoft.com/xcode-link-static-lib.asp).

 

三、

1

down vote

favorite

2

I‘m trying to run my app on an iPhone5S (connected) not sim. The project references a static libary. I did lipo on it and it supports i386 armv7 x86_64 arm64.

When I run I get ld: symbols(s) not found for arch arm64

Under Build Settings, Arch... I have $(ARCHS_STANDARD) in bold is armv7 and arm64

Any ideas.... this is driving me crazy thanks in advance

 

2

down vote

accepted

  1. In your project settings, add -llibaotp to "Other Linker Flags".
  2. Add the path to the library to "Library Search Paths".

Alternatively, add the library to the Link Binary with Libraries build phase (for screenshots see https://www.chilkatsoft.com/xcode-link-static-lib.asp).

 

四、IOS編譯報錯:objc-class-ref in AppDelegate.o之解決方案

 

http://demo.netfoucs.com/banqingyang/article/details/43051671

 

五、使用cocoapod 的程式,可能因為修改過 other linker Flag設定導致,編譯出線問題。

解決方案:Target ->Linking -> other linker Flag and add $(inherited) in other linker flag in both Debug and Release.

ios Symbol(s) not found for architecture arm64總結 含隱藏錯誤cocoapods

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.