Skip to content

Part of the source code is missing when adding the SDK via cocoapods #116

Open
@thinium

Description

I am trying to add TMTumblrSDK into my project using cocoapods. This is what I have in my pod file:

platform :ios, '7.0'

target 'PhotoPostExample' do

pod 'TMTumblrSDK', '~> 4.0.4'

end

I set the SDK version to 4.0.4 based on the info here
https://github.com/tumblr/TMTumblrSDK/blob/master/TMTumblrSDK.podspec.json

But the TMAPIClient.h looks very different, the following secion is missing:

#ifdef __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__

/**
 Authenticate via three-legged OAuth using a given UIWebView

 Your `TMAPIClient` instance's `handleOpenURL:` method must also be called from your `UIApplicationDelegate`'s
 `application:openURL:sourceApplication:annotation:` method in order to receive the tokens.

 This method proxies to an underlying `TMTumblrAuthenticator` which will authenticate using the given the web view.
 That class can be used on its own but you do not need to invoke it directly if you are including the whole API client in your project.

 @param URLScheme a URL scheme that your application can handle requests to.

 @param fromViewController a UIViewController to present the authentication view controller from.
 */
- (void)authenticate:(NSString *)URLScheme fromViewController:(UIViewController *)fromViewController callback:(void(^)(NSError *))error;

#endif

Any idea what I can do to fix this? Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions