Open ningzhiqun opened 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 } }
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 } }
xcode version : 15.3 ios : 17.4 firebaseui-ios : 12.3.1 firebase : 10.23.1
could you help me ? thanks
i use spm
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 } }
xcode version : 15.3 ios : 17.4 firebaseui-ios : 12.3.1 firebase : 10.23.1
could you help me ? thanks