0
点赞
收藏
分享

微信扫一扫

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


举报

相关推荐

0 条评论