Firebase Integration with Flutter targeting IOS

follow these steps to resolve uncommon issues when integrating Firebase with Flutter targeting IOS.

Firebase Integration with Flutter targeting IOS
Photo by Osman Rana / Unsplash

Official Guideline

Preparation

update all the following to the latest

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

CocoaPods

brew install cocoapods

Enabling IOS DebugView on Xcode

  1. Open your Xcode project.
  2. Go to the "Product" menu in the menu bar and select "Scheme" > "Edit Scheme".
  3. In the left pane of the Scheme Editor window, select "Run".
  4. Select the "Arguments" tab.
  5. In the "Arguments Passed On Launch" section, click on the "+" button to add a new argument.
  6. Add -FIRDebugEnabled as the new argument.
  7. Click "Close" to save the changes and close the Scheme Editor.
  8. Build and run your app on the development device.

"arm64" will show up on the Debug Device dropdown in the Firebase Dashboard


Error: ...cannot load such file -- xcodeproj (LoadError)

gem install xcodeproj

Change of Connecting Firebase Project

remove existing GoogleService-info.plist