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

Viewed 27144

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

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

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 :)

Related