React Native & Expo errors · Error 06 of 12

iOS “CocoaPods could not find compatible versions for pod”

By Muhammad Abdullah, full-stack, mobile and ai automation developer · Last reviewed

CocoaPods could not find compatible versions for pod “<Name>”

Short answer

Your local CocoaPods spec repo is outdated, or a library needs a higher iOS deployment target. Update the repo and reinstall pods; if that fails, raise the deployment target.

Common causes

  • An outdated CocoaPods specs repository on your machine.
  • A library that requires a newer minimum iOS version than your project sets.
  • A stale ios folder after upgrading packages.

How to fix it

  1. Update the spec repo and reinstall:

                          cd ios && pod install --repo-update
                        
  2. In Expo projects, regenerate the native project instead of editing it:

                          npx expo prebuild --clean --platform ios
                        
  3. If a pod needs a newer iOS version, set it with expo-build-properties (ios.deploymentTarget) and rebuild.

Let’s talk about the next step

Have an idea, a stuck app, or a workflow toimprove?

Tell me what you are building, what is blocking you, and what a successful outcome looks like.