Skip to content

[v2] Build failed in Release mode #196

Open
@sujameslin

Description

@sujameslin

It seems working well in Debug mode, but in Release mode build fails

Steps to reproduce

  1. Create new project by react-native cli

  2. Install react-native firestack

Commands for reproduce

$ react-native init AwesomeProject
$ cd AwesomeProject
$ npm install react-native-firestack --save
$ react-native link react-native-firestack
$ cd ios && pod update --verbose
$ cd ..
$ react-native run-ios --configuration Release

Build fail error that I got finally

/Users/phoenix/Documents/Workspace/AwesomeProject/ios/build/Build/Intermediates/AwesomeProject.build/Release-iphonesimulator/AwesomeProjectTests.build/Objects-normal/i386/AwesomeProjectTests

Undefined symbols for architecture i386:
  "___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 i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does anyone know how to solve this issue?

Thanks

Versions of packages that I use for test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions