skip to Main Content

I have a cleanly installed Mac 10.15.7, with freshly installed xCode (12.4) on in it. I installed react-native following the official instructions here. I created a new project and tried to build it (from Xcode), but ended up with this error:

Lexical or Preprocessor Issue – event2/event-config.h file not found

Error Message

It appears to have something to do with Flipper. I have absolutely no clue how to fix this, as I am not familiar with CPP development and the file/data-structure it needs…

3

Answers


  1. That’s because there is a new version of Flipper and React Native might not come with the right one so best is to go in your podfile and add this use_flipper!({ 'Flipper' => '0.74.0' }) then run pod install

    Login or Signup to reply.
  2. SOLVED:

    First i tried to add use_flipper!({ 'Flipper' => '0.74.0' }) But it didnt solve my error then i commented out this like like # use_flipper!({ 'Flipper' => '0.74.0' }) and run pod install it started working.

    Honestly don’t know how 🙂

    Login or Signup to reply.
  3. You need to get the latest version of Flipper SDK, from here: https://fbflipper.com/docs/getting-started/react-native/

    For example: use_flipper!({ 'Flipper' => '0.78.0' }) then run pod install in the ios directory.

    This fixed it for me.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search