Flipper: Question: Unable to install pods (0.91.1) could not find compatible versions for pod "Flipper-Folly"

Created on 21 May 2021  Â·  5Comments  Â·  Source: facebook/flipper

Hi!

I was recently trying to add Flipper to my react-native app, followed by this instruction https://fbflipper.com/docs/getting-started/react-native-ios#initialization

so my Podfile looks like this:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '14.5'

target 'MyApp' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => true
  )

  target 'MyAppTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  # use_flipper!()
  use_flipper!({'Flipper' => '0.91.1'}) # should match the version of your Flipper client app

  pre_install do |installer|
     $RNMBGL.pre_install(installer)
  end

  post_install do |installer|
    flipper_post_install(installer)

    $RNMBGL.post_install(installer) # MapBox required
    react_native_post_install(installer)
  end
end

after running pod install I am getting an error:

[!] CocoaPods could not find compatible versions for pod "Flipper-Folly":
  In Podfile:
    Flipper (= 0.91.1) was resolved to 0.91.1, which depends on
      Flipper-Folly (~> 2.6)

    Flipper-Folly (~> 2.5.3)

env:

Flipper client version 0.91.1

System:
    OS: macOS 11.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
    Memory: 47.52 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.0 - /var/folders/3f/rwnrq2zn6tq85lnsvb1bh4400000gn/T/fnm_multishells/21688_1621606174458/bin/node
    Yarn: Not Found
    npm: 6.14.8 - /var/folders/3f/rwnrq2zn6tq85lnsvb1bh4400000gn/T/fnm_multishells/21688_1621606174458/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.64.1 => 0.64.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Thanks for help!

Most helpful comment

@Nodman I think you don't need to use flipper_post_install(installer) because react_native_post_install(installer) already does it.

I'm using like this and it's working:

use_flipper!({ 'Flipper' => '0.91.1', 'Flipper-Folly' => '~> 2.6', 'Flipper-RSocket' => '~> 1.4' })

All 5 comments

Did you run pod install --repo-update?

On Fri, May 21, 2021 at 5:22 PM Dmitriy @.*> wrote:

Hi!

I was recently trying to add Flipper to my react-native app, followed by
this instruction
https://fbflipper.com/docs/getting-started/react-native-ios#initialization

so my Podfile looks like this:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative @.*/cli-platform-ios/native_modules'

platform :ios, '14.5'

target 'MyApp' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change false to true and then install pods
:hermes_enabled => true
)

target 'MyAppTests' do
inherit! :complete
# Pods for testing
end

# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# use_flipper!()
use_flipper!({'Flipper' => '0.91.1'}) # should match the version of your Flipper client app

pre_install do |installer|
$RNMBGL.pre_install(installer)
end

post_install do |installer|
flipper_post_install(installer)

$RNMBGL.post_install(installer) # MapBox required
react_native_post_install(installer)

end
end

after running pod install I am getting an error:

[!] CocoaPods could not find compatible versions for pod "Flipper-Folly":
In Podfile:
Flipper (= 0.91.1) was resolved to 0.91.1, which depends on
Flipper-Folly (~> 2.6)

Flipper-Folly (~> 2.5.3)

react-native version is 0.64.1
Flipper client version 0.91.1

Thanks for help!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/flipper/issues/2347, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN4NBEXIPKPPFSE225O2TLTO2CEJANCNFSM45JOU46Q
.

@mweststrate yes

also I forgot to mentions that previously error was also complaining about build target

[!] CocoaPods could not find compatible versions for pod "Flipper-Folly":
  In snapshot (Podfile.lock):
    Flipper-Folly (= 2.5.3, ~> 2.5, ~> 2.5.3)

  In Podfile:
    Flipper-Folly (~> 2.5.3)

    FlipperKit/CppBridge (= 0.91.1) was resolved to 0.91.1, which depends on
      Flipper (~> 0.91.1) was resolved to 0.91.1, which depends on
        Flipper-Folly (~> 2.6)

Specs satisfying the `Flipper-Folly (~> 2.5.3), Flipper-Folly (= 2.5.3, ~> 2.5, ~> 2.5.3), Flipper-Folly (~> 2.6)` dependency were found, but they required a higher minimum deployment target.

I tried to set build target to 14.5 (both in Xcode project and in Podfile) but nothing changed until at some point it just disappeared and error became like in OP

I recommend comparing your setup in that case against our reference Podfile: https://github.com/facebook/flipper/blob/master/react-native/ReactNativeFlipperExample/ios/Podfile

@Nodman I think you don't need to use flipper_post_install(installer) because react_native_post_install(installer) already does it.

I'm using like this and it's working:

use_flipper!({ 'Flipper' => '0.91.1', 'Flipper-Folly' => '~> 2.6', 'Flipper-RSocket' => '~> 1.4' })

passing 'Flipper-Folly' 2.6 version explicitly did the trick, should have look into example first :/
this probably needs to be added to rect-native docs though

Thanks you for your time and help guys, closing this.

Was this page helpful?
0 / 5 - 0 ratings