Google Sign In not working on iOS 10 Beta 7 with Xcode 8 beta 6

前端 未结 7 2418
后悔当初
后悔当初 2020-12-15 09:30

I have an app in the app store which worked perfectly fine till first few betas of iOS 10 (i am not exactly sure which one). It also works perfectly fine on iOS 9.3.

7条回答
  •  醉梦人生
    2020-12-15 10:01

    Do Nothing Just set the clientID while application is being finished launching. Like Given in the code below:

    import FBSDKLoginKit import GoogleSignIn import GGLCore

    @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    
    
        var ConfigError : NSError?
        GGLContext.sharedInstance().configureWithError(&ConfigError)
        assert(ConfigError == nil, "Error Configuration with Google services: \(ConfigError)")
        GIDSignIn.sharedInstance().clientID = "679401366566-8107g2n11hpnqas58m9v8rk7hl2lgl7s.apps.googleusercontent.com" // Here You Have To Change Your App ID
    
        let fbDelegate = FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
        print("DidFinish")
    
        return fbDelegate
    }
    

提交回复
热议问题