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!!
1.11. 3 - March 16, 2022 (287 KB)
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'.
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 ).
I solved the above problem by updating the ruby to the latest version(3.0.0) using the following command in the terminal:
Check the version of Ruby installed on your Mac
ruby -v
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.
Install the latest version of Ruby
rvm install ruby-[version]
(or)
rvm install ruby --latest
Install cocoapods
sudo gem install cocoapods
pod setup
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With