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

为TA充电
共{{data.count}}人
人已赞赏
iOS文章

iOS开发导航栏标题动画

2021-2-2 5:37:31

iOS文章

iOS开发系统导航栏左右上角按钮如何不需要定义就可以添加小红点

2021-2-2 6:30:28

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索