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了
网友评论