Skip to content

Xcode will not build release with React Native 0.39.2 #11454

@Hyllesen

Description

@Hyllesen

Description

Error in Xcode when trying to create a Release build of my newly created React Native 0.39.2.

Undefined symbols for architecture arm64: "___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 arm64

Reproduction

react-native init NewProject
Go to Xcode and change build scheme to "Release".
Build/Run

Solution

Removing the NewProjectTests folder seems to remove the symptom, but this is probably not a good solution!

Additional Information

  • React Native version: 0.39.2
  • Platform: [FILL THIS OUT: iOS, Android, or both?]
  • Operating System: MacOS Sierra
  • Xcode: 8.2

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