azihsoyn / flutter_mlkit

A Flutter plugin to use the Firebase ML Kit.
MIT License
391 stars 90 forks source link

Input Firebase App can not be nil #88

Open nominator opened 4 years ago

nominator commented 4 years ago

Hi,

I am getting this error when trying to use MLKit plugin. Rest of flutterfire plugins are working. There was another error I was getting __FIRAPP_DEFAULT does not exist

This was solved by making following changes to AppDelegate.m

import UIKit import Flutter import Firebase

@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { FirebaseApp.configure() GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } }

But still I am getting the error mentioned in the topic. Please help!!

Thanks