(转)xcode报错:Undefined symbols for architecture x86_64

操作:直接引入第三方文件

报错如图:

原因:引入的第三方文件未被编译

解决一:下图配置处添加要编译的文件

解决二:使用 Add Files to 项目 依次添加所有文件

重新编译,成功。

原文地址:https://www.cnblogs.com/wodehao0808/p/12654873.html

时间: 2024-11-08 15:49:08

(转)xcode报错:Undefined symbols for architecture x86_64的相关文章

oc调用c++接口时 报错 Undefined symbols for architecture i386:

当在oc中调用c++中的方法时,发现说c++中的方法没定义或是找不到 Undefined symbols for architecture i386: "_desTYData", referenced from:-[TuYoo encryptParametersWithDict:] in libtuyoo.a(TuYoo.o)ld: symbol(s) not found fo 记得c++中的方法定义是要这样定义的 extern"C" { const char *d

微信SDK导入报错 Undefined symbols for architecture i386:"operator delete[](void*)", referenced from:

异常信息: Undefined symbols for architecture i386:  "operator delete[](void*)", referenced from:      +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)      +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)    

微信分享SDK导入报错 Undefined symbols for architecture i386:

Undefined symbols for architecture i386:   "operator delete[](void*)", referenced from:       +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)       +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)       +

ios unit test 工程选择release时候报错Undefined symbols for architecture i386

Undefined symbols for architecture i386: "_OBJC_CLASS_$_ItemReturn", referenced from: objc-class-ref in JenknisDemoTests.o "_OBJC_CLASS_$_ViewController", referenced from: objc-class-ref in ViewControllerTest.o (maybe you meant: _OBJC_

解决Undefined symbols for architecture x86_64: 报错 和 ld: warning: ld: warning: ignoring file警告

出现这种错误的情况: 用iphone5模拟器编译程序正常, 用iphone5s以上的模拟器编译出现Undefined symbols for architecture x86_64: 报错 和 ld: warning: ld: warning: ignoring file警告, 用真机编译正常... 网上找了很多解决方法都没办法解决..都是说更改bulid setting的一些相关设置..然后都木有什么卵用... 这里附上我的解决方法..其实也不是很麻烦...(我没有更改bulid settin

mac编译openresty报Undefined symbols for architecture x86_64

./configure --prefix=/usr/local/openresty --with-luajit --with-http_sub_module --add-module=../ngx_http_substitutions_filter_module-0.6.4 make时报错如下 -Wl,-rpath,/usr/local/openresty/luajit/lib -L/Applications/ngx_openresty-1.4.3.6/build/luajit-root/usr

【IOS】Undefined symbols for architecture x86_64

[IOS]Undefined symbols for architecture x86_64 先说一下这个问题的出现原因,字面意思就是某个符号不识别.一般问题都是由于引入了手动引入了某个lib,但是没有设置相应的编译选项或者没有引入其依赖的lib. 解决方法: 通过cocoapods引入lib,这样一般没有什么问题. 仔细查看文档,看看有什么依赖的lib没有引入,引入即可,或者加入相应的编译选项. 大体上就是上面两种,而且都很泛泛,下面说一下我遇到的具体问题. 开发环境:xcode 6.3.1

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GiftAnimationView"

1> error 详情: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GiftAnimationView", referenced from: _OBJC_CLASS_$_GiftFoAnimationView in GiftFoAnimationView.o "_OBJC_METACLASS_$_GiftAnimationView", referenced from: _OBJC_MET

Undefined symbols for architecture x86_64: ( linker command failed with exit code 1)

当出现  linker command failed with exit code 1 (use -v to see invocation) 的错误总结,具体内容如下: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AppDelegate", referenced from: objc-class-ref in main.o ld: symbol(s) not found for architecture x86_6