kru*_*ens 9 xcode ios swift google-signin
我已经完成了几年的Web开发,这是我第一个使用iOS应用程序的项目.我已经按照Google的Get the Google Sign-in SDK for iOS(没有CocoaPods)的所有说明进行操作,我尝试模拟应用程序并收到此错误消息:Use of unresolved identifier 'GGLContext'
这是从Google页面复制并放入AppDelegate.swift的代码:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
// Initialize Google sign-in
var configureError: NSError?
GGLContext.sharedInstance().configureWithError(&configureError) // THIS LINE HAS THE ERROR
assert(configureError == nil, "Error configuring Google services: \(configureError)")
//GIDSignIn.sharedInstance().delegate = self
GIDSignIn.sharedInstance().clientID = MY_CLIENT_ID
return true
}
Run Code Online (Sandbox Code Playgroud)
有帮助吗?
| 归档时间: |
|
| 查看次数: |
3950 次 |
| 最近记录: |