Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`Realm` requires CocoaPods version `>= 1.10`, which is not satisfied by your current version, `1.8.3` [closed]

I tried to update the cocoa pods, but facing an issue while updating(xcode12, macOS Catalina 10.15.5). please help. I have also attached a screenshot of my terminal. Thanks in advance!! enter image description here

like image 242
subhangi pawar Avatar asked Dec 08 '20 12:12

subhangi pawar


People also ask

What is the latest version of CocoaPods?

1.11. 3 - March 16, 2022 (287 KB)

How do I update my pod on my Mac?

How to Update the Pods Firmware. Once the PlayerTek Updater has downloaded onto your Mac, open it. If you receive the below error, please navigate to 'System Preferences' > 'Security & Privacy' and select 'Open Anyway'. Once installed, open up the 'Firmware Updater'.

How do I update my IOS pod?

When you run pod update PODNAME , CocoaPods will try to find an updated version of the pod PODNAME , without taking into account the version listed in Podfile. lock . It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile ).


1 Answers

I solved the above problem by updating the ruby to the latest version(3.0.0) using the following command in the terminal:

  1. Check the version of Ruby installed on your Mac

    ruby -v
    
  2. Install the Ruby Version Manager rvm

    curl -L https://get.rvm.io | bash -s stable
    

    Once this command has finished running you need to restart your terminal for rvm to be recognised.

  3. Install the latest version of Ruby

    rvm install ruby-[version]
    

    (or)

    rvm install ruby --latest
    
  4. Install cocoapods

    sudo gem install cocoapods
    
    pod setup
    
like image 79
subhangi pawar Avatar answered Sep 28 '22 00:09

subhangi pawar