Expressão implicitamente coagida de 'String?' para qualquer [duplicado]
Esta pergunta já tem uma resposta aqui:
Swift 3: expressão implicitamente coagida de 'UIView?' para qualquer 3 respostasEu tenho algum erro como este "Expressão implicitamente coagida de 'String?' para qualquer "este é o meu código:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FIRApp.configure()
FIRAuth.auth()?.signIn(withEmail: "[email protected]", password: "mypassword", completion: { (user, error) in
if (error != nil) {
print(user?.email)
}else {
print(error?.localizedDescription)
}
})
return true
}
Erro nesta linha
print(user?.email)
E
print(error?.localizedDescription)
Por favor me ajude