Appdelegate sigabrt ничего не появляется! в основной раскадровке - PullRequest
0 голосов
/ 18 марта 2019

Я делаю новостную ленту, и когда я пытаюсь добавить сообщение, появляется это предупреждение [SIGABRT], а не переходить к следующему viewController, чтобы написать сообщение здесь, это картинка, любая идея?

image of the mainstoryboard

second

и это некоторые сс с точки останова и исключения.

breakpointimage

class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        FirebaseApp.configure()

        let authListener = Auth.auth().addStateDidChangeListener { auth, user in
            let storyboard = UIStoryboard(name: "Main", bundle: nil )

            if user != nil {
                UserService.observeUserProfile(user!.uid) { UserProfile in
                    UserService.currentUserProfile = UserProfile
                }

                //
                let controller = storyboard.instantiateViewController(withIdentifier: "MainTabBarController") as! UITabBarController

                self.window?.rootViewController = controller
                self.window?.makeKeyAndVisible()
            } else {
                UserService.currentUserProfile = nil

                let controller = storyboard.instantiateViewController(withIdentifier: "MenuViewController") as! ViewController

                self.window?.rootViewController = controller
                self.window?.makeKeyAndVisible()
            }
        }

        return true
    }
}
...