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.

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

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
b3codedcommented, May 21, 2021

@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' })
0reactions
Nodmancommented, May 21, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CocoaPods could not find compatible versions for pod "Flipper ...
In my case, I had just had to update the repo. pod install --repo-update. the above command worked for me.
Read more >
Flipper doesn't build with Xcode 12.5 RC · Issue #2215 - GitHub
Bug Report Flipper in a React Native project fails to build with the following ... CocoaPods could not find compatible versions for pod...
Read more >
Flipper-Folly on CocoaPods.org
This will help ensure that you build with recent versions of all of the dependent libraries, regardless of what versions are installed locally...
Read more >
CocoaPods could not find compatible versions for pod ... - Ionic
but they required a higher minimum deployment target. To resolve this error, set the minimum iOS version to 13.0 within your Podfile :...
Read more >
CocoaPods could not find compatible versions for pod
I'm having an issue installing the pods for @segment/analytics-react-native and 3 additional plugins ( amplitude , firebase and ...
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