2015-06-19 48 views
1

我按照以下链接中所示的所有步骤: - Google plus sharing link to integrate谷歌加共享显示无效地址IOS的错误

我曾尝试下面的代码在细节设置标志: -

​​

我尝试下面的代码中的appdelegate: -

 func application(application: UIApplication, 
     openURL url: NSURL, 
     sourceApplication: String?, 
     annotation: AnyObject?) -> Bool 
      { 
      return GPPURLHandler.handleURL(url, sourceApplication: sourceApplication, annotation: annotation) 
      } 

我已经设置的URL方案和URL标识符作为我的包ID和包ID在谷歌开发板的提到的是相同的每个控制台。

但作为显示在屏幕截图中我得到的错误: - enter image description here

请帮我解决这个错误。我尝试了所有可能的方法。提前感谢。

回答

-1

相反的:

signIn.scopes = NSArray(array: ["https://www.googleapis.com/auth/plus.me"]) as [AnyObject] 

尝试(as in the link)

signIn.scopes = NSArray(array: ["profile"]) as [AnyObject] 

希望它能帮助!