0

I have a straightforward AppDelegate setup in a small SwiftUI project, but the code is not getting called.

class AppDelegate: NSObject, UIApplicationDelegate {
    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
        FirebaseApp.configure() // Never hit
        
        return true
    }
}

@main
struct card_uploaderApp: App {
    var body: some Scene {
        // register app delegate for Firebase setup
        @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
        
        WindowGroup {
            TabContainerView()
        }
    }
}

Is some sort of file corruption preventing the app delegate code from getting hit?

yambo
  • 1,388
  • 1
  • 15
  • 34

0 Answers0