App crashing when using Firebase Auth, reason: 'Default app has already been configured.'

前端 未结 9 1697
梦如初夏
梦如初夏 2020-12-13 23:34

I\'m building my first iOS application, and I am using Firebase to handle authentication, database, etc. I added a sign up screen and used the following code to create a new

9条回答
  •  清歌不尽
    2020-12-14 00:22

    Class Name: AppDelegate+FCMPlugin.m

    [FIRApp.configure()];

    Put this at the top most of this method

    - (BOOL)application:(UIApplication *)application customDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     if(![FIRApp defaultApp]){
        [FIRApp configure];}}
    

提交回复
热议问题