Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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...

like image 383
Stophface Avatar asked Feb 09 '21 11:02

Stophface


1 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

like image 117
Markus Hayner Avatar answered Oct 21 '22 00:10

Markus Hayner