firebase / FirebaseUI-iOS

iOS UI bindings for Firebase.
Apache License 2.0
1.5k stars 467 forks source link

Cannot assign value of type 'AppDelegate' to type '(any FUIAuthDelegate)?' #1186

Open ningzhiqun opened 2 months ago

ningzhiqun commented 2 months ago

xcode tip: Cannot assign value of type 'AppDelegate' to type '(any FUIAuthDelegate)?'

code class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { FirebaseApp.configure() let authUI = FUIAuth.defaultAuthUI() // You need to adopt a FUIAuthDelegate protocol to receive callback authUI?.delegate = self return true } }

image

xcode version : 15.3 ios : 17.4 firebaseui-ios : 12.3.1 firebase : 10.23.1

could you help me ? thanks

ningzhiqun commented 2 months ago

i use spm