gpt4 book ai didi

objective-c - 体系结构 x86_64 的 undefined symbol : "std::terminate()", 引用自

转载 作者:太空狗 更新时间:2023-10-30 03:12:09 28 4
gpt4 key购买 nike

我在将 RN 升级到 0.26.0-rc 后运行 react-native run-ios 时出现错误。

Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libReact.a(RCTJSCExecutor.o)
"___gxx_personality_v0", referenced from:
-[RCTJavaScriptContext initWithJSContext:onThread:] in libReact.a(RCTJSCExecutor.o)
-[RCTJavaScriptContext init] in libReact.a(RCTJSCExecutor.o)
-[RCTJavaScriptContext invalidate] in libReact.a(RCTJSCExecutor.o)
_RCTNSErrorFromJSError in libReact.a(RCTJSCExecutor.o)
+[RCTJSCExecutor runRunLoopThread] in libReact.a(RCTJSCExecutor.o)
-[RCTJSCExecutor init] in libReact.a(RCTJSCExecutor.o)
-[RCTJSCExecutor context] in libReact.a(RCTJSCExecutor.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该如何解决?

最佳答案

通过 following advice 解决运行后 rnpm-plugin-upgrade@0.26 :

[...] add -lc++ in Other Linker Flags in your xcode project build settings.

正如评论中指出的更新目标build设置(而不是项目)。您可能还需要更新测试目标。

关于objective-c - 体系结构 x86_64 的 undefined symbol : "std::terminate()", 引用自,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37186967/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com