Back to Blog
Bug Fixes•1 min read

Fix React Native 'CocoaPods could not find compatible versions for pod'

Scaleup Infotech Team
Scaleup Infotech Team

Custom Software & Business Automation

React NativeiOSCocoaPods

In this guide

A simple guide to this issue: React Native 'CocoaPods could not find compatible versions for pod'. Learn why it happens, what to check first, and how to fix it.

After bumping React Native or a native library, pod install often fails with a version conflict. The fix is usually refreshing the spec repo and reinstalling pods from a clean slate.

The Error

[!] CocoaPods could not find compatible versions for pod "Some-Pod": In Podfile: ...

Step 1: Update the Pod Specs and Reinstall

bash
cd ios
pod repo update
pod install --repo-update

Step 2: Deintegrate When It's Really Stuck

bash
cd ios
pod deintegrate
rm -rf Pods Podfile.lock
pod install

Step 3: Align the iOS Deployment Target

If a pod requires iOS 13+ but your Podfile sets 12, the resolver fails. Bump platform :ios, '13.0' in the Podfile to match the strictest dependency.

Apple Silicon

On M-series Macs, if pods fail to build, try arch -x86_64 pod install or ensure ffi is installed for your Ruby. Architecture mismatches masquerade as version conflicts.

Relevant Scaleup Infotech Services

Share this article:

Keep Reading

Ready to implement these ideas?

Discuss Your Project