【发布时间】:2015-09-14 21:04:01
【问题描述】:
我正在使用 UberKit 将 Uber API 集成到我的应用中。
按下我的登录按钮调用[uberKit startLogin]; 并设置clientID、clientSecret、applicationName、redirectURL 和delegate。
应用程序从 Safari 使用授权码返回后,我无法获得经过身份验证的令牌!在UberKit.m 的函数getAuthTokenForCode: 中总是失败:
Error in sending request for access token Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x16e7edf0 {NSErrorFailingURLKey=https://login.uber.com/oauth/token, NSErrorFailingURLStringKey=https://login.uber.com/oauth/token, NSUnderlyingError=0x16e7d600 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"}
你能告诉我可能出了什么问题吗?
提前致谢
【问题讨论】:
标签: ios xcode nsurlerrordomain