Open
Description
It seems working well in Debug mode, but in Release mode build fails
Steps to reproduce
-
Create new project by react-native cli
-
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
- OS: macOS Sierra
- [email protected]
- [email protected]
- [email protected]