flutter dependency_error ai_generated true

CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'

ID: flutter/cocoapods-version-conflict

Also available as: JSON · Markdown
82%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3 active

Root Cause

iOS dependency conflict. Plugin versions require incompatible native library versions.

generic

Workarounds

  1. 88% success Update CocoaPods repo and re-run pod install
    cd ios && pod repo update && pod install

    Sources: https://docs.flutter.dev/

  2. 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
  3. 82% success Check Flutter plugin compatibility matrix and update pubspec.yaml

Dead Ends

Common approaches that don't work:

  1. Delete Podfile.lock and Pods directory and re-run 68% fail

    Removing Podfile.lock loses version pins. May install breaking changes in transitive dependencies.

  2. Pin all pod versions to exact numbers 72% fail

    Exact version pins prevent security updates and conflict with Flutter plugin requirements