Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Swift : error with google login

I was following this tutorial to add google sign in in my iOS app using swift. I followed all the steps as mentioned but when I try to build app then it is giving me an issue in my appdelegate.swift file.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

    var configureError: NSError?
    GGLContext.sharedInstance().configureWithError(&configureError)
    assert(configureError == nil, "Error configuring Google services: \(configureError)")

    GIDSignIn.sharedInstance().clientID = "client id"

    return true

}

so below line of code

GGLContext.sharedInstance().configureWithError(&configureError)

Error text is "Use of unresolved identifier GGLContext". What could be the issue here ?

like image 874
Anil Kumar Avatar asked Jul 25 '15 12:07

Anil Kumar


1 Answers

in Bridging-Header.h

import <GoogleSignIn/GoogleSignIn.h>

import <Google/Core.h>

in AppDelegate.swift

import Google
like image 193
Dattatray Deokar Avatar answered Sep 28 '22 08:09

Dattatray Deokar