Ios plist中使用OAuth2的URL方案

Ios plist中使用OAuth2的URL方案,ios,xcode,oauth-2.0,soundcloud,Ios,Xcode,Oauth 2.0,Soundcloud,我正在构建一个iOS应用程序,并尝试使用SoundCloudAPI。我注册了我的应用并创建了一个重定向URI:app_NAME://soundcloud。然后,在Xcode中,我添加了一个URL方案作为APP_NAME,URL标识符作为com.BUNDLE_identifier,并在我的AppDelegate中执行以下操作: [SCSoundCloud setClientID:@"CLIENT_ID" secret:@"SECRET"

我正在构建一个iOS应用程序,并尝试使用SoundCloudAPI。我注册了我的应用并创建了一个重定向URI:app_NAME://soundcloud。然后,在Xcode中,我添加了一个URL方案作为APP_NAME,URL标识符作为com.BUNDLE_identifier,并在我的AppDelegate中执行以下操作:

[SCSoundCloud setClientID:@"CLIENT_ID"
                   secret:@"SECRET"
              redirectURL:[NSURL URLWithString:@"APP_NAME://soundcloud"]];
如果我在模拟器上启动应用程序,然后在Safari的地址栏中键入app_NAME://soundcloud,它会成功地将我恢复到我的应用程序中。但是,在应用程序中,我不断遇到以下错误:

*** Assertion failure in +[SCRequest performMethod:onResource:usingParameters:withAccount:sendingProgressHandler:responseHandler:]

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Resource '(null)' is invalid because the scheme is not 'https'.'

为什么资源为“(null)”而方案为“https”?我在哪里更改此错误以及如何修复此错误?

该方法调用
SCRequest
performMethod
方法并需要https链接,这意味着不支持深入链接到其他应用程序

NSAssert1([[aResource scheme] isEqualToString:@"https"], @"Resource '%@' is invalid because the scheme is not 'https'.", aResource);
为了解决这个问题,在你的应用程序中实现通用链接,如果设备上安装了https链接,该链接将重定向到你的应用程序