Search code examples
flutterfirebasemacosgoogle-cloud-firestorecocoapods

Cocoapods Probleme


[Podfile][1]``` Error output from CocoaPods: ↳

[!] The FlutterFire plugin cloud_firestore for macOS requires a macOS
deployment target of 10.12 or later.

Exception: Error running pod install



Hi, I've been stuck on this problem for a while, I'm trying to connect my flutter app with firebase but as soon as I put firestore on I have this problem. I modified the podfile file by putting the right version but nothing is done. I followed a lot of tutorials but none solved my problem. so please i need help.

I created my database on firebase, I configured it with xcode

Cocaopods version : 1.11.3

firebase_core: ^2.1.1

cloud_firestore: ^4.0.3

platform :ios, '12.0'


Podfile : 

  [1]: https://i.sstatic.net/fYqSZ.png

Solution

  • I solved this problem.

    Here are the tips:

    1. Run Xcode --> Click Runner --> Change version in 'minimum deployments' f.e. to 11.0 or later

    2. Go to Visual Studio Code --> go to 'macos' folder --> click 'podfile' --> change on the same version like in Xcode in platform :osx, '11.0'

    3. Restart App and start with debugging again.

    Let me know if it worked :)