skip to Main Content
[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.stack.imgur.com/fYqSZ.png

2

Answers


  1. Take a look at the first line of your Podfile in your macOS folder. If it looks like this:
    platform :osx, '10.11'
    then change it to your desired MACOS_DEPLOYMENT_TARGET

    Login or Signup to reply.
  2. 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 🙂

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search