cocoapods的时候出现的问题 _OBJC_CLASS_$_XXX
2016-03-25 13:07
176 查看
最新的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)
添加之后,问题终于解决
一开始还用的挺开心的,后来,使用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)
添加之后,问题终于解决
相关文章推荐
- CSS3 响应式布局: @media (min/max-width:***) @font-face
- centos 6.7 perl 版本 This is perl 5, version 22 安装DBI DBD
- centos 6.7 perl 版本 This is perl 5, version 22 安装DBI DBD
- 操作系统实验一.命令解释程序的编写
- Java通过几种经典的算法来实现数组排序
- spinlock剖析与改进
- Linux下指定配置文件启动redis方式
- 实验一 命令解释程序的编写
- linux --- shell command
- Hadoop版本选择探讨
- Java中final、finally、finalize的区别 | Java基础
- The JRE could not be found.Edit the server and change the JRE location
- 基本类型与引用类型
- 1001 of greedy strategy
- 用C#来编程获取MAC
- Hadoop YARN安装部署初探
- x264代码剖析——核心算法之宏块编码中的量化编码
- x264代码剖析——核心算法之宏块编码中的量化编码
- LoadRunner 性能测试脚本
- Extjs给TextField赋值