题
我创建了一个使用SoundCloudapi集成的iPhone应用程序。当我尝试运行应用程序时,我会收到以下错误消息:
Error Domain=SoundCloudAPIError Code=2001 "The operation couldn't be completed. (NSURLErrorDomain error - 1012)" UserInfo=0x13cbc0 {httpErrorStatus=Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn't be completed. (NSURLErrorDomain error - 1012.)" UserInfo=0x137b90 {NSErrorFailingURLKey=http://api.soundcloud.com/ oauth/access_token, NSErrorFailingURLStringKey=http:// api.soundcloud.com/oauth/access_toekn, NSUnderlyingError=0x13b590 "The operation couldn't be completed. (kCFErrorDomainCFNetwork error - 1012.)"}, NSLocalizedDescription=The operation couldn't be completed. (NSURLErrorDomain error - 1012.)}
任何人请告诉我如何解决。
谢谢。
解决方案
我解决了这个问题。
问题是;我没有在“回调URL(OAuth 2重定向uri)”下输入回调URL
要输入此信息,请按照以下步骤:
1. Go to http://soundcloud.com/you/apps/testapp/edit and click on "Add info for publication to the app gallery". 2. Enter your Callback URL under "Callback URL (OAuth 2 Redirect URI)"
保存之前取消选择两个复选框,因此您的应用程序尚未发布。
不隶属于 StackOverflow