码迷,mamicode.com
首页 > 移动开发 > 详细

ios Symbol(s) not found for architecture arm64总结 含隐藏错误cocoapods

时间:2018-09-07 11:17:27      阅读:203      评论:0      收藏:0      [点我收藏+]

标签: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

标签:linker   解决   .com   setting   nec   总结   debug   方案   报错   

原文地址:https://www.cnblogs.com/r360/p/9602421.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!