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

一、通用

报错: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.

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

时间: 2024-08-26 10:08:45

ios Symbol(s) not found for architecture arm64总结 含隐藏错误cocoapods的相关文章

Symbol(s) not found for architecture arm64

修改 Project --> BuildSetting -->Architectures: Build Active Architecture Only = YES: Valid Architectures = arm64 armv7 armv7s armv6; 原文:http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64

iOS Undefined symbols for architecture arm64解决办法

Undefined symbols for architecture arm64:  "_OBJC_CLASS_$_YYCache", referenced from:      objc-class-ref in LFNetworking.o  "_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:      objc-class-ref in LFNetworking.o  "_OBJC_CL

ios Undefined symbols for architecture arm64

我追加了 一个之前写的 关于加载的 .h.m文件 但是在我新追加其他工程里面 突然报错: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_MBProgressHUD", referenced from: objc-class-ref in loginController.old: symbol(s) not found for architecture arm64clang: error: linker command

ShareSDK-Undefined symbols for architecture arm64

目前,腾讯微博和人人网的分享等还没有推出arm64的分享SDK,但是用web分享授权还是没有问题的,只是不能调用客户端进行授权. 下面说一下用ShareSDK分享的时候出现的一个报错: Undefined symbols for architecture arm64 : “_OBJC_CLASS_$_WeiboApi”, referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architectur

更新cocoapods之后,出现Undefined symbols for architecture arm64

最近刚更新了cocoapods之后出现了 Undefined symbols for architecture arm64: ld: symbol(s) not found for architecture arm64 所有的第三方库都不支持 arm64. 由于之前的三方类库编译文件已存在,导致更新的类库无法编译!!!(查找了很多方法都无效,最终还是这个原因!) 只需要在libPods-xxxx.a点Show in Finder,将Products目录下文件全部清空,重新编译就好了.

Undefined symbols for architecture arm64:问题

Undefined symbols for architecture arm64: "_sqlite3_prepare_v2", referenced from: +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o "_sqlite3_step", referenced from: +[HMJSchoolTool queryWithCondition:] in HMJSchoolTool.o "_

Undefined symbols for architecture arm64:

"_OBJC_CLASS_$_UIResponder", referenced from: _OBJC_CLASS_$_AppDelegate in AppDelegate.o "_OBJC_METACLASS_$_UIResponder", referenced from: _OBJC_METACLASS_$_AppDelegate in AppDelegate.o "_UIApplicationMain", referenced from:

iOS 编译含C++代码出现ld: symbol(s) not found for architecture i386错误之解决(转载)

最近项目需要搭建自己的IM服务器,在快速配置好Openfire之后,开始研究使用gloox开发XMPP客户端实现通信, 先下载gloox源码,然后./configure,make ,sudo make install,在/usr/local/下找到头文件夹和静态库,加到项目中,然后加入openssl库,编写测试代码,编译,报错:XXX not being for architecture i386,感觉是gloox静态库有问题(排除了网上说的头文件路径缺失.building phases没添加.

ios开发遇到如下错误:Undefined symbols for architecture arm64,我的解决方案

博客处女作,写得不好望谅解! “for architecture arm64”就是说没有支持arm64,在Build settings里architecture相关的几项需要配置正确 在最近升级cocoapod工具管理中,由于我们的工程版本号已经升级到了2.1了,所以升级过程中遇见了很多问题,折腾了好几天.这个问题便是其中一个.下面说说我们的解决方案 升级过后编译报 ld: can't link with a main executable file '/Users/WayneLiu_Mac/L