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),不需要删除原来的,增加,然后再运行项目,即可解除报错。

目录
相关文章
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
457 0
|
8月前
网易云/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/
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
258 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
212 0
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
198 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
107 0
|
2月前
|
JavaScript 前端开发
ES6:什么是Symbol?
ES6:什么是Symbol?
27 1
|
2月前
ES6之Symbol
ES6之Symbol
|
2月前
|
JavaScript 前端开发
|
2月前
|
JavaScript 前端开发 开发者