Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "Flipper-Folly"

I have been trying to run ios for a new but kept getting this error

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/struggle/Library/Developer/Xcode/DerivedData/client-grabnjjdhfcfyugfdqcwdvbebnva/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/struggle/Desktop/Tax/client/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I saw a solution that said to add use_flipper!({ 'Flipper-Folly' => '2.3.0' }) in my podfile now when i run pod install i get the following error

`[!] CocoaPods could not find compatible versions for pod "Flipper-Folly":

In Podfile:
Flipper-Folly (= 2.3.0)

FlipperKit (~> 0.54.0) was resolved to 0.54.0, which depends on
  FlipperKit/Core (= 0.54.0) was resolved to 0.54.0, which depends on
    Flipper (~> 0.54.0) was resolved to 0.54.0, which depends on
      Flipper-Folly (~> 2.2)

FlipperKit (~> 0.54.0) was resolved to 0.54.0, which depends on
  FlipperKit/Core (= 0.54.0) was resolved to 0.54.0, which depends on
    Flipper (~> 0.54.0) was resolved to 0.54.0, which depends on
      Flipper-RSocket (~> 1.1) was resolved to 1.3.0, which depends on
        Flipper-Folly (~> 2.5)`

Using ({'Flipper-Folly' => '2.3.0'}) results in me getting the inital error again. Please help me fix this issue. Thank You

like image 646
Scav Avatar asked Feb 10 '21 21:02

Scav


6 Answers

In my case, I had just had to update the repo.

pod install --repo-update

the above command worked for me.

like image 80
makenova Avatar answered Oct 24 '22 01:10

makenova


Delete Podfile.lock and run pod install. It will start working.Also update your cocoapods by running sudo gem install cocoapods

like image 39
Ashish Guleria Avatar answered Oct 24 '22 02:10

Ashish Guleria


as of today April 11, 2021 use_flipper!({ 'Flipper-Folly' => '2.3.0' }) no longer works. Instead you use, use_flipper!({ 'Flipper-Folly' => '2.5' }) if this won't work in the future either. Look into the error it will tell you which version to use.

like image 14
Jeffox Avatar answered Oct 24 '22 02:10

Jeffox


  1. Delete Podfile.lock

  2. Add to your Podfile

    use_flipper!({ 'Flipper-Folly' => '2.3.0' }) # update this part post_install do |installer|

    flipper_post_install(installer)

    end

  3. run pod install.

if your Podfile contains below code or something like this and its working successfully for one of your project but not working for others, which means

Your podfile.lock may contains above definition or working flavour of folly.

  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
    installer.pods_project.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
      config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
    end
  end
like image 3
Samrez Ikram Avatar answered Oct 24 '22 02:10

Samrez Ikram


For Mac M1 mates.

I just updates the repo.

arch -x86_64 pod install --repo-update

its worked

like image 2
Manojkanth Avatar answered Oct 24 '22 01:10

Manojkanth


Remove the version with flipper so that it installs the latest available one on pod install.

So in pod file:

Change:

use_flipper!({ 'Flipper-Folly' => '2.3.0' })

to:

use_flipper!
like image 1
Nabeel Khan Avatar answered Oct 24 '22 02:10

Nabeel Khan