手动导入xmpp后,再使用cocoapods的时候出现的问题

王朝学院·作者佚名  2016-08-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

最新的cocoapod导入xmpp的时候,会出现循环依赖,所以撸主选择了手动导入。

一开始还用的挺开心的,后来,使用cocoapods导入其他的框架,发现调用的时候总是报错。

Undefined symbols for architecture x86_64:

"_OBJC_CLASS_$_SVPRogressHUD", referenced from:

objc-class-ref in HJCXMPPTools.o

ld: symbol(s) not found for architecture x86_64

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

在网上搜索了一堆的攻略,cocoapods卸载重新按照了108遍,然而这并没有什么卵用。

后来我再次用cocoapod更新框架的时候,发现终端的一段警告

[!] The `myQQ[Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation

- Use the `$(inherited)` flag, or

- Remove the build settings from the target.

这下有了思路了,原来我手动导入xmpp的时候,修改了Other Linker Flags

所以解决办法就是:

按照提示,增加$(inherited)

添加之后,问题终于解决,撸主潸然泪下,困扰撸主2天的问题终于解决鸟~~。

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航