ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1

简介: ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1

报错如下:

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


且pod中有如下警告:

[!] The xxxxxxxxx [Debug] target overrides the OTHER_LDFLAGS build setting defined inPods/Target Support Files/Pods-xxxxxx/Pods-xxxxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or

- Remove the build settings from the target.


[!] The xxxxxxxxxx [Release] target overrides the OTHER_LDFLAGS build setting defined in Pods/Target Support Files/Pods-xxxxxxx/Pods-xxxxxxxxxx.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or- Remove the build settings from the target.


这是引入第三方库时所报错,同时还说找不到你引入的那个头文件,解决办法是在你的target下的Framework Search Paths,Header Search Paths,Library Search paths下和Other Link Flags下增加一项 $(inherited),不需要删除原来的,增加,然后再运行项目,即可解除报错。

目录
相关文章
|
2月前
|
存储 API Windows
MASM32连接程序时error A2006: undefined symbol : u
MASM32连接程序时error A2006: undefined symbol : u
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
575 0
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
314 0
网易云/opt/netease/netease-cloud-music/netease-cloud-music: symbol lookup error: /lib/x86_64-linux-gnu/
网易云/opt/netease/netease-cloud-music/netease-cloud-music: symbol lookup error: /lib/x86_64-linux-gnu/
123 0
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
245 0
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
237 0
error: possibly undefined macro: LT_SYS_SYMBOL_USCORE please use m4_pattern_allow
error: possibly undefined macro: LT_SYS_SYMBOL_USCORE please use m4_pattern_allow
143 0
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
123 0
解决办法:look up error: undefined symbol
解决办法:look up error: undefined symbol
354 0
|
6月前
|
JavaScript 前端开发
ES6:什么是Symbol?
ES6:什么是Symbol?
74 1