带有电子邮件和密码的Google Firebase身份validation不起作用

我安装了由Google的新的Firebase SDK,我尝试使用身份validationSDK创build一个新的用户。 但是,我完全按照文档所说的做了,但是不起作用。 任何意见或build议?

我有RegisterUserViewController.h中的身份validation代码

在AppDelegate.h中,我还在应用程序中添加了[FIRApp configure]:didFinishLaunchingWithOptions;

这里是RegisterUserViewController.h的代码:

#import "RegisterUserViewController.h" @import FirebaseAuth; @import Firebase; @import FirebaseMessaging; @interface RegisterUserViewController () @end @implementation RegisterUserViewController - (void)viewDidLoad { [super viewDidLoad]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } - (IBAction)createUserButton:(id)sender { [[FIRAuth auth] createUserWithEmail:self.emailTextField.text password:self.passwordTextField.text completion:^(FIRUser * _Nullable user, NSError * _Nullable error) { if(error == nil) { NSLog(@"%@", user.email); NSLog(@"New user Created!"); [self performSegueWithIdentifier:@"BackToLogin" sender:nil]; } else { NSLog(@"%@",error); } }]; } @end 

这是我得到的错误:

错误域= FIRAuthErrorDomain代码= 17999“发生内部错误,打印并检查错误的详细信息以获取更多信息。 UserInfo = 0x7f98fc4609d0 {NSUnderlyingError = 0x7f98fc4cf790“操作无法完成(FIRAuthInternalErrorDomain错误3.)”,error_name = ERROR_INTERNAL_ERROR,NSLocalizedDescription =发生内部错误,打印并检查错误详细信息以获取更多信息。

我有同样的错误,并通过在Google控制台上激活身份工具箱API来解决它https://console.developers.google.com/apis/api/identitytoolkit/overview?project=YOUR_PROJECT