upgrade-support: 'React' requires CocoaPods version >= 1.10.1, which is not satisfied by your current version, 1.10.0.

Environment

System: OS: macOS 11.2.3 Shell: 3.2.57 - /bin/bash Binaries: Node: 15.7.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 7.4.3 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/testUser/.rvm/gems/ruby-2.6.3/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 11.0.5 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0 react-native-macos: Not Found

Things I’ve done to figure out my issue

  • Tried all the possible solutions (deleting package.lock, deleting podfile.lock, etc.)
  • Ran pod deintegrate && pod install
  • Deleted derived data and cleaned build folder

Upgrading version

react-native 0.64.0 react 17.0.1

Description

after following the upgrading steps and doing pod install throwing error with cocoa pods incompatibility Fetching podspec for RCT-Folly from ../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec [!] React requires CocoaPods version >= 1.10.1, which is not satisfied by your current version, 1.10.0.

I have tried as suggested in some stack overflow and here other issues to clear the pods and uninstall and reinstall the CocoaPods but still no luck

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19

Most upvoted comments

I’ve just ran sudo gem install cocoapods and it works

I’ve just run sudo gem install cocoapods and it works. This is right. But I’d like to add the answer.

I think you can see this error sometimes: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.

Then you have to run this command. sudo gem install cocoapods -n /usr/local/bin

And then please run the command pod install in the iOS directory of the project.

Happy coding!!!

brew upgrade cocoapods

Got it to work:

First i installed Command_Line_Tools_for_Xcode_13.1.dmg Then:

curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby-2.7
gem install cocoapods

Credits to this article: https://www.fatalerrors.org/a/macos-10.15.x-newly-installed-cocoapods-2020.12.html

@Beardev118 Thanks. I had the permissions already. Issue resolved now after running the command bundle update

for m1

arch -arm64 brew upgrade cocoapods