firebaseのログイン機能を実行しようとしていますが、うまくいきましたが、迅速なバージョンを更新しても機能しません。エラーがnilでnilでない場合は両方ともチェックすると、printステートメントは実行されませんが、前後のプリントは実行されません。なぜ誰もこれが実行されないだろうが、また、エラーをスローされていない知っていますか?これは代わりにFIRAuthのAUTHfirebaseログイン機能が実行されていません
FIRAuth.auth()?.signIn(withEmail: email, password: password, completion: { user, error in
if error == nil {
print("Successful login")
if user!.isEmailVerified {
let vc = self.storyboard!.instantiateViewController(withIdentifier: "ProfileView") as! ProfileView
self.present(vc, animated: true, completion: nil)
} else {
print("nil is hitting")
}
}
})
print("done running login")
これはちょうど私に次のエラー与える: '使用を未解決の識別子のAuth' – Drew
の可能性が高いfirebaseのバージョンを更新していません。 cocopodsを使ってfirebaseを更新してください。 –