# CocoaPods could not find compatible versions for pod: fix it in React Native

Source: https://www.reactnative.help/cocoapods-could-not-find-compatible-versions

CocoaPods stops with this error when `Podfile.lock`, your local specs repo, or your iOS deployment target conflicts with a version a pod now requires. After a React Native or Expo upgrade, `pod install --repo-update` fixes most cases. The error text tells you which of the three it is.

Last updated December 1, 2026

## Read the error first

```
[!] CocoaPods could not find compatible versions for pod "React-Core":
  In snapshot (Podfile.lock):
    React-Core (= 0.79.6)
  In Podfile:
    React-Core (from `../node_modules/react-native/`)
```

Find the line that matches your output:

- **"In snapshot (Podfile.lock)"**: the lockfile pins an old version. See Stale Podfile.lock.
- **"None of your spec sources contain a spec satisfying the dependency"** or **"out-of-date source repos"**: your local specs repo is old. See Update the specs repo.
- **"required a higher minimum deployment target"**: your iOS version setting is too low. See Deployment target.

## Update the specs repo

CocoaPods resolves third-party pods from a local copy of the specs repo. A version published after your last update is not in that copy yet.

```
cd ios
pod install --repo-update
```

## Stale Podfile.lock

After an upgrade, the lockfile still pins the old React Native pods, and `pod install` refuses to change them. Update only the pod named in the error:

```
cd ios
pod update React-Core
```

If many React pods conflict, which is normal after a React Native version bump, reinstall them all from a clean lockfile:

```
cd ios
rm -rf Pods Podfile.lock
pod install --repo-update
```

Commit the new `Podfile.lock` so the team and CI resolve the same versions.

## Deployment target too low

```
Specs satisfying the `RNScreens` dependency were found, but they required a higher minimum deployment target.
```

Each React Native and Expo SDK release raises the minimum iOS version. Check the minimum for your Expo SDK in the [Expo SDK compatibility table](https://www.reactnative.help/expo-sdk-compatibility), or the React Native release notes for a bare project.

**Bare React Native:** the Podfile normally reads the minimum from React Native with `platform :ios, min_ios_version_supported`. If yours has a hard-coded number such as `platform :ios, '13.0'`, change it back to `min_ios_version_supported` or raise the number, then run `pod install`.

**Expo with prebuild:** do not edit the Podfile, because prebuild regenerates it. Set the target with `expo-build-properties` in your app config, then regenerate:

```
npx expo install expo-build-properties
```

```
{
  "expo": {
    "plugins": [
      ["expo-build-properties", { "ios": { "deploymentTarget": "15.1" } }]
    ]
  }
}
```

```
npx expo prebuild --clean --platform ios
```

Use the minimum your SDK requires, not 15.1 blindly. `--clean` deletes the `ios/` folder, so skip it if you edit native files by hand.

## A JavaScript package pins the wrong native version

If the conflicting pod belongs to a library such as react-native-reanimated, its JavaScript version in `node_modules` decides which pod is requested. Align it with your React Native or Expo version first. In Expo, use `npx expo install --fix`. In a bare project, paste your package.json into the [Upgrade Checker](https://www.reactnative.help/upgrade-checker). Then run `pod install` again.

## Verify the fix

`pod install` ends with "Pod installation complete!" and no warnings about the pod. Build once from Xcode or with `npx expo run:ios` to confirm the native build compiles.

Still stuck after a React Native upgrade? I fix iOS build failures for a fixed price.

[React Native upgrade service](https://www.reactnative.help/react-native-upgrade-service)

## Sources

- [CocoaPods: pod install vs. pod update](https://guides.cocoapods.org/using/pod-install-vs-update.html)
- [Expo: BuildProperties](https://docs.expo.dev/versions/latest/sdk/build-properties/)
- [React Native: Upgrading to new versions](https://reactnative.dev/docs/upgrading)
