Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: module 'firebase_core' not found

Just created a new flutter project, added google-services-info.plist file to iOS and added firebase_core to pubspec.yaml. Ran the project and got this error. Error: fatal error: module 'firebase_core' not found @import firebase_core;

I have searched a lot on the stack overflow and gitlab. Tried all the workarounds like flutter clean, update repo, delete pod and reinstall pod but still got no success in resolving this error.

This has blocked me for 5 days. Unable to find anything on this. Please help.

Link to my project on GitHub. : https://github.com/infonotics/stocklyticsSO Do add your own googleService-Info.plist file to the Runner folder. I have removed my file for security reasons.

Thanks in advance.

like image 580
user12784286 Avatar asked Sep 06 '25 13:09

user12784286


1 Answers

I assume you have tried opening the ios project in xcode. When opening the project in XCode, make sure you open the file with the .xcworkspace extension instead of the one with .xcodeproj and then build again.

like image 104
Naj Avatar answered Sep 09 '25 06:09

Naj