6.7 C
New York
Friday, November 15, 2024

Flutter iOS construct error: Incompatible kind in registerFirebasePlugin for firebase_auth and firebase_core


I am engaged on a Flutter venture, and I am encountering the next error throughout the iOS construct course of. It looks like there’s a kind incompatibility concern between the firebase_auth and firebase_core packages.

Error Output:

/Customers/bertugmete/.pub-cache/hosted/pub.dev/firebase_auth-4.16.0/ios/Courses/FLTFirebaseAuthPlugin.m:113:72: warning: sending 'FLTFirebaseAuthPlugin *__strong' to parameter of incompatible kind 'id _Nonnull'
    [[FLTFirebasePluginRegistry sharedInstance] registerFirebasePlugin:self];

In module ‘firebase_core’ imported from /Customers/bertugmete/.pub-cache/hosted/pub.dev/firebase_auth-4.16.0/ios/Courses/FLTFirebaseAuthPlugin.m:7:

/Customers/bertugmete/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/ios/Courses/FLTFirebasePluginRegistry.h:23:64: notice: passing argument to parameter 'firebasePlugin' right here
   - (void)registerFirebasePlugin:(id _Nonnull)firebasePlugin;

pubspec.yaml Dependencies:

dependencies:
  firebase_core: ^2.24.2
  firebase_auth: ^4.16.0

Steps I’ve Tried:
I attempted cleansing the venture and working flutter clear and reinstalling the pods utilizing pod deintegrate and pod set up.
I’ve ensured that each firebase_core and firebase_auth packages are on the most recent variations.

How can I resolve this sort incompatibility concern? Is there a battle between the variations of firebase_auth and firebase_core? Any recommendation or strategies can be vastly appreciated.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles