← All fixes
CocoaPods could not find compatible versions for pod
#178Error
[!] CocoaPods could not find compatible versions for pod "Firebase/Core": In Podfile: ... None of your spec sources contain a spec satisfying the dependency
Why it happens, and why this works
The local CocoaPods spec repo is out of date, Podfile.lock pins an older version than a library now needs, or the iOS deployment target in the Podfile is lower than the pod's minimum.
Fix
1. cd ios && pod install --repo-update (or pod repo update, then pod install). 2. If a version is pinned in Podfile.lock: pod update <PodName>, or delete Podfile.lock and Pods/ and pod install. 3. Raise the deployment target to what the pod requires: platform :ios, '15.1' in the Podfile (in Expo, set it with expo-build-properties ios.deploymentTarget). 4. Apple Silicon issues: make sure CocoaPods runs natively (brew install cocoapods), not under Rosetta.
Did it work?
No reports yet0 worked0 didn't
Tried it yourself?
Related fixes
npm install fails with ERESOLVE unable to resolve dependency tree (peer dependency conflict)
#36npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error Could not resolve dependency: peer react@"^18.3.1" from react-dom@18.3.1
TS2307: Cannot find module './logo.svg' or its corresponding type declarations
#90error TS2307: Cannot find module './logo.svg' or its corresponding type declarations.
typescriptviteVerifiedNo reports yet
git push rejected: Updates were rejected because the remote contains work that you do not have locally
#81! [rejected] main -> main (fetch first) error: failed to push some refs hint: Updates were rejected because the remote contains work that you do not have locally.