question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native Pod conflict with libevent

See original GitHub issue

🐛 Bug Report

The libevent pod conflicts with the one used by react-native when Hermes is enabled on iOS. To avoid the conflict cocoapod installs Flipper-Folly@2.5.0 which cause a build error. Forcing it to install 2.5.1 causes a conflict error when running pod install.

https://github.com/facebook/flipper/blob/master/iOS/Podspecs/Flipper-Folly.podspec#L20

https://github.com/facebook/react-native/blob/master/scripts/react_native_pods.rb#L67

To Reproduce

In a RN app enable hermes in the Podfile (use_react_native!(:hermes_enabled => true,)). Update pods and see version 2.5.0 of Flipper-Folly is installed instead of latest 2.5.1. In my case this also cause a build error later.

Environment

Flipper@0.74.0 react-native@2aab894acf83732591de861ee29f3ddbd25546c4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
janicduplessiscommented, Feb 11, 2021

Yea, I think so. I can open a PR to make this change.

1reaction
priteshrnandgaonkarcommented, Feb 17, 2021

Feel free to reopen an issue, if it doesn’t solve the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

'event2/event-config.h' file not found - react native
When I do as you suggested, it created the Podfile.lock with the same data as before I delete it (with libevent rather than...
Read more >
Resolving CocoaPods issues in React Native project
The goal of this blog is to provide steps to help you resolve commonly faced issues related to CocoaPods in React Native projects....
Read more >
Troubleshooting · React Native
This page contains resolutions to common problem you might face when migrating to the New Architecture.
Read more >
Swift Package Manager (SPM) and Cocoapod Dependency ...
[Answer]-Swift Package Manager (SPM) and Cocoapod Dependency Conflict-swift ... text box with transparent background on top of image in React Native iOS ...
Read more >
pod-patch
Patching the Pod specfiles in ReactNative projects. ... Checks if there is no version conflicts in your Podfile and .patch file, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found