美文网首页
react-native iOS 工程 release调试报错

react-native iOS 工程 release调试报错

作者: 考拉小姐_zzzZZZ | 来源:发表于2017-03-03 14:22 被阅读485次
    Undefined symbols for architecture x86_64:
      "___gxx_personality_v0", referenced from:
          _RCTDefaultLogFunction_block_invoke in libReact.a(RCTLog.o)
          _RCTFormatLog in libReact.a(RCTLog.o)
          ___RCTAddLogFunction_block_invoke in libReact.a(RCTLog.o)
          _RCTPerformBlockWithLogFunction in libReact.a(RCTLog.o)
          _RCTPerformBlockWithLogPrefix in libReact.a(RCTLog.o)
          RCTGetLocalLogFunction() in libReact.a(RCTLog.o)
          ___RCTPerformBlockWithLogPrefix_block_invoke in libReact.a(RCTLog.o)
          ...
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    屏幕快照 2017-03-03 下午1.47.43.png

    解决方案:

    Open your project in Xcode.
    Click Product > Scheme > Manage Schemes.
    Select the scheme for your project, then click the minus (—) near the
    bottom left to delete it.
    Now click the plus (+) to create a new scheme for your project.

    xcode->Product->Scheme->Manage Scheme->
    选中列表中的工程对应的那个scheme, 点击-,删除
    点击+, 重新创建新的scheme.
    clean一下.
    就OK了

    相关文章

      网友评论

          本文标题:react-native iOS 工程 release调试报错

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