2015-06-19 47 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] 

希望它能幫助!