App getting crash when click on GoogleSignIn button

后端 未结 8 719
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 15:54

I am using Google Sign-In SDK 4.0.1. When I press googleSignInButton then app will be crash. And gave below error, how to fix this:

Terminating app due to un         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 16:10

    in GoogleSignIn SDK 5.0

    add code

    GIDSignIn.sharedInstance().delegate = self

    GIDSignIn.sharedInstance().presentingViewController = self

    instead of this code

    GIDSignIn.sharedInstance().delegate = self

    GIDSignIn.sharedInstance().uiDelegate = self

提交回复
热议问题