flutter
dependency_error
ai_generated
true
CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'
ID: flutter/cocoapods-version-conflict
82%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
iOS dependency conflict. Plugin versions require incompatible native library versions.
genericWorkarounds
-
88% success Update CocoaPods repo and re-run pod install
cd ios && pod repo update && pod install
Sources: https://docs.flutter.dev/
-
85% success Run flutter clean then rebuild iOS
flutter clean && cd ios && rm -rf Pods Podfile.lock && cd .. && flutter pub get && cd ios && pod install
-
82% success Check Flutter plugin compatibility matrix and update pubspec.yaml
Dead Ends
Common approaches that don't work:
-
Delete Podfile.lock and Pods directory and re-run
68% fail
Removing Podfile.lock loses version pins. May install breaking changes in transitive dependencies.
-
Pin all pod versions to exact numbers
72% fail
Exact version pins prevent security updates and conflict with Flutter plugin requirements