zoukankan      html  css  js  c++  java
  • cocoapods的时候出现的问题 _OBJC_CLASS_$_XXX

    最新的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)

     

    添加之后,问题终于解决

  • 相关阅读:
    instance
    iptables
    centos系统准备
    Leecode no.236 二叉树的最近公共祖先
    Leecode no.235 二叉搜索树的最近公共祖先
    leecode no.98 验证二叉搜索树
    leecode no.109 有序链表转换二叉搜索树
    leecode no.113 路径总和 II
    Leecode no.112 路径总和
    Leecode no.111 二叉树的最小深度
  • 原文地址:https://www.cnblogs.com/jyking/p/5319045.html
Copyright © 2011-2022 走看看