03-10-2024, 01:00 AM
I've encountered an issue where I am getting a 'FirebaseAppPlatform.verifyExtends' error while trying to run my Flutter application. I've already tried the common steps to resolve Flutter errors, including cleaning the project, fetching the packages again, and updating iOS pods. However, these steps did not resolve the issue. I suspect there might be a problem in the configuration of my Firebase initialization or there could be a version mismatch with the Firebase plugins I am using. Here's the sequence of commands I've run:
However, I keep encountering the same error. This is preventing my app from compiling and running on an iOS device. I'm using a number of Firebase services, such as Firestore, Auth, and Cloud Messaging. Perhaps there's an issue with how I'm setting them up. I'll share the relevant code below for initializing Firebase:
I'm including my pubspec.yaml file dependencies here for reference:
Any insights into what could be causing this 'FirebaseAppPlatform.verifyExtends' error would be helpful.
Code:
cd ios
pod install
However, I keep encountering the same error. This is preventing my app from compiling and running on an iOS device. I'm using a number of Firebase services, such as Firestore, Auth, and Cloud Messaging. Perhaps there's an issue with how I'm setting them up. I'll share the relevant code below for initializing Firebase:
Code:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
I'm including my pubspec.yaml file dependencies here for reference:
Code:
dependencies:
flutter:
sdk: flutter
firebase_core: ^ 1.3 .0
firebase_auth: ^ 3.1 .1
cloud_firestore: ^ 2.5 .1
firebase_messaging: ^ 10.0 .3
Any insights into what could be causing this 'FirebaseAppPlatform.verifyExtends' error would be helpful.