react-native iOS 工程 release调试报错

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了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容