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

1、通用xcode

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

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

 

ARCHS = armv7 armv7sui

VALID_ARCHS = armv6 armv7 armv7s arm64this

 

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

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

 

 

 

2.net

down votecode

acceptedip

  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).

 

3、

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).

 

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

 

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

 

5、使用cocoapod 的程序,可能由於修改過 other linker Flag設置致使,編譯出線問題。

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

相關文章
相關標籤/搜索