Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
591 views
in Technique[技术] by (71.8m points)

react native - 'event2/event-config.h' file not found

I am trying to build a react-native app in iOS but unfortunately coming across the following issue (referring to libevent/Flipper):

'event2/event-config.h' file not found

I have react-native v0.63.4 and I have linked the packages using react-native link and also run pod update. I have also deleted my Podfile.lock and run pod install again.

My guess is that it is something to do with the Flipper version? When I comment out use_flipper! in my Podfile and build, it works.

Any ideas on how I can resolve this?

question from:https://stackoverflow.com/questions/66019068/event2-event-config-h-file-not-found

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Facebook released an update yesterday for flipper with v74 and added support for arm64 devices.

so Flipper v74 should have a fix for arm64 devices

Setup:

Using the latest Flipper SDK#

By default React Native might ship with an outdated Flipper SDK. To make sure you are using the latest version, determine the latest released version of Flipper by running npm info flipper.

  • Android:

    Bump the FLIPPER_VERSION variable in android/gradle.properties, for example: FLIPPER_VERSION=0.74.0. Run ./gradlew clean in the android directory.

  • iOS:

    Call use_flipper with a specific version in iOS/Podfile, for example: use_flipper!({ 'Flipper' => '0.74.0' }). Run pod install in the ios directory.

we can see how to setup flipper for react-native here: https://fbflipper.com/docs/getting-started/react-native

This link Solved my issue..Update of pods after changing Flipper Version..refer this

with this version I fixed the 'event2/event-config.h' file not found issue.

wish this will help you.??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...