Reputation: 111
Before answering Please note that i have tried all these solutions: sudo gem install cocoapods-deintegrate cocoapods-clean pod deintegrate pod cache clean --all Follow this command on project folder: flutter clean rm ios/Podfile && flutter build ios (I've also uncommented this line in pod File [platform :ios, '12.0'])
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
firebase_analytics (from .symlinks/plugins/firebase_analytics/ios
) was resolved to 0.0.1, which depends on
Firebase/Analytics (~> 6.0) was resolved to 6.0.0, which depends on
Firebase/Core (= 6.0.0) was resolved to 6.0.0, which depends on
Firebase/CoreOnly (= 6.0.0)
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.0.4, which depends on
Firebase/CoreOnly (= 7.3.0)
CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios
) was resolved to 1.0.4, which depends on
Firebase/CoreOnly (= 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCore (= 7.3.0)
firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 2.0.1, which depends on
Firebase/Crashlytics (= 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCrashlytics (~> 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCore (~> 7.0)
CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios
) was resolved to 1.0.4, which depends on
Firebase/CoreOnly (= 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCore (= 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCoreDiagnostics (~> 7.0) was resolved to 7.9.0, which depends on
nanopb (~> 2.30907.0)
firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 2.0.1, which depends on
Firebase/Crashlytics (= 7.3.0) was resolved to 7.3.0, which depends on
FirebaseCrashlytics (~> 7.3.0) was resolved to 7.3.0, which depends on
nanopb (~> 2.30906.0)
Upvotes: 0
Views: 1321
Reputation: 1156
First clean flutter project
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
For clean pod file
rm ios/Podfile
Then run your flutter project
flutter run -v
Upvotes: 0
Reputation: 111
I found a soluton:
Upvotes: 0