How to set Flutter correctly for cloud_firestore

Asked

Viewed 23 times

0

Hello, someone can help me! I’m configuring flutter design with firebase access. I’m using package firebase_core: 1.3.0 and cloud_firestore: 2.2.2 Works for ok android emulator.

The firebase connection works normally, but when I add package cloud_firestore: 2.2.2 or the previous one Xcode is running pod install and shows no message and so on.

I’ve tried with verses 12.0, 13.0 and 14.0 of iOS on podfile.

thank you

1 answer

0

In the company’s production app, we have the package cloud_firestore in the version ^2.1.0 and our target 'Runner' uses version 7.11.0 of the Firestore IOS SDK.

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  
  # Flutter Pod
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '7.11.0'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

You can get a better view of what’s going on inside the pod install running it manually. Just open the terminal in the IOS folder of the Flutter project and run pod install.

  • Good afternoon! I did what you suggested, but it didn’t solve the problem..

  • @Marcosaureliobinoti Could you share your Podfile? This file is inside the Ios folder/.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.