zoukankan      html  css  js  c++  java
  • 手动导入xmpp后,再使用cocoapods的时候出现的问题

    最新的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天的问题终于解决鸟~~。

  • 相关阅读:
    Uva 12166 Equilibrium Mobile
    2015年7月实习经历以及一些感悟
    让键盘只数字键盘
    保留两位小数且,不四舍五入
    vuex的理解
    点击出现闪烁
    vue 添加样式分几种方法
    数据滞后的坑
    H5防止安卓手机软键盘弹出挤压页面导致变形的方法
    js 为false的几种情况
  • 原文地址:https://www.cnblogs.com/haojuncong/p/4582623.html
Copyright © 2011-2022 走看看