简体   繁体   中英

React Native- Using Hermes with Flipper disabled on iOS

I'm having a hard time using Flipper. I commented it out in Podfile while hermes_enabled => true . I ran pod install agin and build the app but it crashed upon launch. When I set Hermes to false, it was build successfully.

Is there a way to disable Flipper & keep Hermes true and app builds successfully?

For react-native v0.70.1 I did the following

  1. Remove react-native-flipper from package.json . Maybe I think you need to remove other packages that depend on the flipper. But I didn't

  2. Set in ios/Podfile

    :flipper_configuration => FlipperConfiguration.disabled

    instead of

    :flipper_configuration => FlipperConfiguration.enabled

  3. Remove node_modules

  4. Run yarn or npm install

  5. Clear old data:

  • 5.1 Run cd ios

  • 5.2 Run command pod deintegrate && pod install

  • 5.3 Run cd..

  • 5.4 Run cd android &&./gradlew clean

  • 5.5 Run cd..

Clearing old data is really important, I even restart my MacBook

I hope this helps you

I found the best way for people who don't like debugging using Flipper like me is to disable Hermes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM