flutterdartcocoapodsflutter-dependenciespod-install

CocoaPods could not find compatible versions for pod "flutter_sound_core"


i tried to install the pod in flutter project but got the follwing error

[!] CocoaPods could not find compatible versions for pod "flutter_sound_core":
  In snapshot (Podfile.lock):
    flutter_sound_core (= 9.24.4)

  In Podfile:
    flutter_sound (from `.symlinks/plugins/flutter_sound/ios`) was resolved to 9.25.4, which depends on
      flutter_sound_core (= 9.25.4)


You have either:
 * changed the constraints of dependency `flutter_sound_core` inside your development pod `flutter_sound`.
   You should run `pod update flutter_sound_core` to apply changes you've made.

i also tried

rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ios/.symlinks
rm -rf ios/Flutter/Flutter.framework
rm -rf ios/Flutter/Flutter.podspec


Solution

  • Did you try to remove all caches ?
    rm -rf ~/Library/Caches/CocoaPods
    rm -rf ~/Library/Developer/Xcode/DerivedData/*
    pod cache clean --all
    pod repo update
    pod install
    flutter clean
    flutter pub cache clean  
    flutter pub get