react-native-firestack icon indicating copy to clipboard operation
react-native-firestack copied to clipboard

[v2] Build failed in Release mode

Open sujameslin opened this issue 7 years ago • 2 comments

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

sujameslin avatar Dec 23 '16 07:12 sujameslin

@sujameslin can you try manually setup firestack without using react native link

Salakar avatar Dec 29 '16 12:12 Salakar

@Salakar It works with manual installation. But you have to update the readme since cocoapod installation is not working by following doc. Please check my PR. https://github.com/fullstackreact/react-native-firestack/pull/211

Any idea why automatic installation(using react-native link) is not working?

sujameslin avatar Jan 05 '17 02:01 sujameslin