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
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 runpod 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 runpod install
it started working.Honestly don’t know how 🙂
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 runpod install
in theios
directory.This fixed it for me.