美文网首页
Mac OS 升级10.15之后,objc-750编译不过

Mac OS 升级10.15之后,objc-750编译不过

作者: SpringAlways | 来源:发表于2020-05-21 14:01 被阅读0次

    报找不到_objc_opt_class

    Undefined symbols for architecture x86_64:
      "_objc_opt_class", referenced from:
          -[NSObject superclass] in NSObject.o
          -[NSObject isMemberOfClass:] in NSObject.o
          -[NSObject isKindOfClass:] in NSObject.o
          +[NSObject isAncestorOfObject:] in NSObject.o
          -[NSObject respondsToSelector:] in NSObject.o
          -[NSObject conformsToProtocol:] in NSObject.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    简单快速的方法:General -> Deployment Target 改为10.14.

    Pass!

    相关文章

      网友评论

          本文标题:Mac OS 升级10.15之后,objc-750编译不过

          本文链接:https://www.haomeiwen.com/subject/ovmzohtx.html