How to solve: Flutter 2.8.0 will not deploy and run project on iOS simulator (was working on 2.5.3)

Question

Asked by dmalikyar on December 10, 2021 (source).

My dev environment is as follows:

  • Mac Mini M1
  • Mac OS Monterey
  • Visual Studio Code
  • Flutter 2.8.0
  • iPhone 12 Pro Max (iOS simulator)

Flutter dependencies: dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 firebase_core: ^1.10.5 firebase_auth: ^3.3.3 google_sign_in: ^5.2.1 flutter_login_facebook: ^1.2.0
provider: ^6.0.1

When I try to build and run the application, I get the following error:

Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Xcode build done. 18.5s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ /Users/daoudmalikyar/Documents/dev/Udemy/flutter_firebase/time_tracker/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'firebase_auth' not found @import firebase_auth; ~~~~~~~^~~~~~~~~~~~~ 1 error generated. note: Using new build system note: Planning note: Build preparation complete note: Building targets in parallel /Users/daoudmalikyar/Documents/dev/Udemy/flutter_firebase/time_tracker/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'AppAuth' from project 'Pods') /Users/daoudmalikyar/Documents/dev/Udemy/flutter_firebase/time_tracker/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'GoogleSignIn' from project 'Pods') Could not build the application for the simulator. Error launching application on iPhone 12 Pro Max. Exited (sigterm)

I've tried several potential fixes found on the web but none seem to fix the issue. Again, this code was running fine under 2.5.3. When I try building the project in XCode, I get the same error that 'firebase_auth' was not found. Any suggestions are appreciated.

Thanks.

Answer

Question answered by alectogeek (source).

AUTHENTICATION FIREBASE FLUTTER IOS
SHARE: