手动导入xmpp后,再使用cocoapods的时候出现的问题
2015-06-17 10:46
232 查看
最新的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天的问题终于解决鸟~~。
一开始还用的挺开心的,后来,使用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天的问题终于解决鸟~~。
相关文章推荐
- FileUpload解析
- raid简介
- css3笔记--transition相关属性
- TFTP服务搭建
- 黑马程序员_Objective C中的@property 与 @synthesize 快速生成setter getter方法
- Android Fragment管理类,操作Fragment的增加、删除、替换、隐藏、显示等
- 从零起步——10步成为专业iOS开发者
- Django中模型Model添加JSON类型字段的方法
- WCF+SQL Server 2008 明源售楼系统项目解析
- iOS8使用CLLocationManager定位时,代理方法不执行的解决方法
- .NET程序调试技巧(一):快速定位异常的一些方法
- C++析构函数为什么要为虚函数
- python sympy包符号运算进行定积分计算
- Mac OS下安装ProtocolBuffer与iOS的简单使用
- git忽略已经被提交的文件
- diogo谈框,仿prompt()方法布局
- 读书笔记三——大道至简
- Sharepoint2013权限管理之老王乱弹一
- Lintcode(3)-字符串查找
- 三相异步电动机的微机保护设计