Undefined symbols for architecture x86_64: “std::terminate()”, referenced from

前端 未结 2 569
心在旅途
心在旅途 2021-02-05 05:22

I got the error when i run react-native run-ios after upgraded RN to 0.26.0-rc.

Undefined symbols for architecture x86_64:
      \"std::terminate()         


        
2条回答
  •  醉酒成梦
    2021-02-05 06:02

    Resolved with the following advice after running rnpm-plugin-upgrade@0.26:

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

    As pointed out in comments update target build settings (and not project). You may also need to update the Test target as well.

提交回复
热议问题