Seguiste la guía oficial de FlutterFire https://firebase.flutter.dev/docs/overview/#improve-ios-build-times Donde te dice que agregues esta línea a ios/Podfile
- pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '6.26.0'
Instalaste Cocoapods https://josevibriezca.blogspot.com/2021/01/instalar-cocoapods-en-macos-1015.html
Y ahora tienes un nuevo error:
- [!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
- In Podfile:
- FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `6.26.0`)
- cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.14.4, which depends on
- Firebase/Firestore (~> 6.33.0) was resolved to 6.33.0, which depends on
- FirebaseFirestore (~> 1.18.0)
- Firebase/Firestore (~> 6.33.0) was resolved to 6.33.0, which depends on
- In Podfile:
El problema esta en que tenemos instalada una versión diferente a la que especificamos en Pofdile
Para solucionarlo vamos al archivo Podfile (que está en la carpeta ios) del proyecto de Flutter y cambiamos:
- pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '6.26.0'
por 6.33.0 (o cualquiera que sea la versión que el error nos indique – en mi caso me dice was resolved to 6.33.0)
- pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '6.33.0'