Flipper: React Native Pod conflict with libevent

Created on 10 Feb 2021  路  5Comments  路  Source: facebook/flipper

馃悰 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 [email protected] 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

[email protected]
react-native@2aab894acf83732591de861ee29f3ddbd25546c4

Most helpful comment

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

All 5 comments

Can RN use the libevent pod from the CocoaPod. Its essentially the same pod which RN uses, but its published on cocoapods.

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

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

The problem is that in scripts/react_native_pods.rb the Flipper-Folly version is setted to '~> 2.2', but I think that is better to set something like '~> 2.2.0'.

Today to solve it we are configuring the flipper versions manually use_flipper!({ 'Flipper-Folly' => '~> 2.2.0' }), but it would be very good not to have to worry about that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vkotovv picture vkotovv  路  3Comments

richardtop picture richardtop  路  3Comments

orlandobustamantep picture orlandobustamantep  路  3Comments

hsavit1 picture hsavit1  路  3Comments

abaker picture abaker  路  3Comments