I was getting the same error. My code looked like this:
UserServices().getUserWithUID(uid: user.uid) { (user) in
self.window?.rootViewController = MapViewController(user: user)
self.window?.makeKeyAndVisible()
}
All I did to resolve the problem was change my code to this:
let userServices = UserServices()
userServices.getUserWithUID(uid: user.uid) { (user) in
self.window?.rootViewController = MapViewController(user: user)
self.window?.makeKeyAndVisible()
}
and the console errors disappeared.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…