Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No visible @interface for TMAPIClient declares the selector 'handleOpenURL:' #128

Closed
canpoyrazoglu opened this issue Apr 11, 2017 · 6 comments · Fixed by #134
Closed

No visible @interface for TMAPIClient declares the selector 'handleOpenURL:' #128

canpoyrazoglu opened this issue Apr 11, 2017 · 6 comments · Fixed by #134

Comments

@canpoyrazoglu
Copy link

canpoyrazoglu commented Apr 11, 2017

I'm trying to follow the tutorial to use the SDK.

I'm following the steps, installed the SDK via pods, imported the header <TMTumblrSDK/TMAPIClient.h>.

When I try to insert the URL handling code:

return [[TMAPIClient sharedInstance] handleOpenURL:url];

I'm getting an error indicating the interface doesn't declare the method.

What am I doing wrong?

I'm on latest iOS SDK + Xcode 8.3.

@canpoyrazoglu
Copy link
Author

I see the method is encapsulated in an #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ directive along with authentication method too. I'm sure those methods are to be called from an iOS app too (it has references to UIApplicationDelegate which is only available on iOS).

What am I doing wrong?

@paulrehkugler
Copy link
Contributor

The method is encapsulated in #ifdef __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__, which makes it available only on iOS platforms. I recommend checking your build settings to ensure you’re building an iOS target.

@canpoyrazoglu
Copy link
Author

Hello @paulrehkugler

I am building for an iOS target. I've installed the SDK using Pods and there are 30+ other pods working perfectly.

The method is encapsulated in #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ in my header, which I got from the pod 'TMTumblrSDK'. I haven't touched anything.

@pourhadi
Copy link

pourhadi commented May 4, 2017

i am having the same issue
screen shot 2017-05-04 at 2 55 49 pm

@rofreg
Copy link

rofreg commented Jun 13, 2017

It appears that the latest release of the TMTumblrSDK pod is out of date – iOS-based authentication was merged in in August 2016, but the latest release of the pod (v4.0.4) came out in March 2016. Could someone on the Tumblr team package up a new release?

In the meantime, you can get the latest version of TMTumblrSDK by pointing your Podfile directly at the master branch of this repo:

pod 'TMTumblrSDK', git: 'https://github.com/tumblr/TMTumblrSDK.git'

Once you've done that, you should be able to call handleOpenURL on iOS.

@paulrehkugler
Copy link
Contributor

Version 4.0.5 resolves this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants