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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/CodingFire/article/details/82878146

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

猜你喜欢

转载自blog.csdn.net/CodingFire/article/details/82878146