简体   繁体   中英

Why I am getting error of “Use of unresolved identifier 'GIDSignIn'”?

I am trying to implement it from google but failed in Swift 4. Maybe the code is outdated. How can I solve the issue in swift 4? My pod file is for Swift 4.

pod 'Google/SignIn'

and my AppDelegate file is looking like this.

Appdelegate

Try updating your pod file to include the following:

pod 'GTMAppAuth'

pod 'GoogleSignIn'

And also use this import in your AppDelegate:

import GoogleSignIn

Hope this helps someone out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM