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
iosfolder after upgrading packages.
How to fix it
Update the spec repo and reinstall:
cd ios && pod install --repo-updateIn Expo projects, regenerate the native project instead of editing it:
npx expo prebuild --clean --platform iosIf a pod needs a newer iOS version, set it with
expo-build-properties(ios.deploymentTarget) and rebuild.