Reputation: 72905
I have no idea why, but using Xcode 6.2 this compiled fine; now it doesn't in Xcode 6.3, failing with:
TMTumblrSDK: No visible @interface ... declares selector "handleOpenURL"
Looking at the header file and it clearly shows that method is there.
#import "TMAPIClient.h"
// ...
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
[[TMAPIClient sharedInstance] handleOpenURL:url];
}
I tried a clean, deleting derived data, and I even tried with <TMTumblrSDK/TMAPIClient.h>
but no dice?
Via CocoaPods, I'm Using TMTumblrSDK (2.1.1)
Upvotes: 1
Views: 221
Reputation: 72905
Turns out this has been removed by design, per this commit:
Unfortunately, Apple has started rejecting apps that use three-legged OAuth via Safari, the preferred way to retrieve access tokens from a security perspective. For the time being, please either:
- Request xAuth access
- Use a web view inside of your application (here's a TMTumblrSDK fork that adds this capability, we may add it to the SDK proper at a later date)
We hope to have more to share on this note shortly.
Upvotes: 1