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

iOS 5.0/ARC, fails on device in OAMutableURLRequest, CFRelease #85

Open
robreuss opened this issue Aug 9, 2011 · 7 comments
Open

iOS 5.0/ARC, fails on device in OAMutableURLRequest, CFRelease #85

robreuss opened this issue Aug 9, 2011 · 7 comments

Comments

@robreuss
Copy link

robreuss commented Aug 9, 2011

Built the library, and my project which is working fine in the simulator but failing on the device in OAMutableURLRequest when attempting to call CFRelease.

I'm wondering if the fact that I'm using ARC for the rest of my project could be contributing to this? Of course, if that were the case, I wouldn't expect it to work in the simulator either. Nor does it make any sense that ARC would impact it, since ARC is applied at compile time, and the library is, of course, pre-compiled.

Perhaps the solution to my problem involves:

Changing the compilation settings for the library, to handle 5.0 or something else
Improperly including the library in my project

Any hints or suggestions will be most appreciated!

@bluewhaleinc
Copy link

Did you hear back about this? Having the same issue but in the sim as well.

@diegopizzocaro
Copy link

same for me...thinking about switching to the iOS Twitter integrated library...although would gladly welcome any sugestion!!!

@DarkMagicCK
Copy link

I have this prob too... struggling with it for few days. Can any one give some suggestions?

@DarkMagicCK
Copy link

I tried author's DEMO but still failed. Nothing with ARC, all the iOS5 environment will get this problem.
I tried to find something may help, in the callback OAuthTwitterController:authenticatedWithUsername , the username NSString is always null in iOS5 environment so I don't think it's something wrong with that OAMutableURLRequest. And the app can get the right PIN.
Maybe something's wrong with the token or else, hope the author or someone else can solve this problem or this lib can't be used in iOS5.

@NSDestroyer
Copy link

Change http to https in SA_OauthTwitterEngine.m and this should fix the problem - like so:

self.requestTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/request_token"];
self.accessTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/access_token"];
self.authorizeURL = [NSURL URLWithString: @"https://twitter.com/oauth/authorize"];

@DarkMagicCK
Copy link

WOW!!!! Thanks NSDestroyer!! But I wonder how could this fix the problem. Twitter disabled the http link and only let https work?

@SlaunchaMan
Copy link

I changed the URLs but am still getting the error on iOS 4.3 when using ARC.

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

No branches or pull requests

6 participants