Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 5.1 simulator Twitter sign in issue

I'm started to develop some application whit Twitter integration, but when trying sign in to Twitter ... this happen

http://i.stack.imgur.com/Agdn5.png

every time, I tried some different accounts. I'm on Macbook 2011 , OS X 10.8 (Mountain Lion), Xcode 4.4 (4F250), iOS Simulator 5.1 (272.21)

I'll be happy of any ideas, because after researching ,didn't find anything :(

like image 991
Emil Marashliev Avatar asked Aug 02 '12 00:08

Emil Marashliev


2 Answers

It's Mountain Lion and/or Xcode 4.4 issue/bug!

Read here https://devforums.apple.com/message/705937#705937 And here https://dev.twitter.com/discussions/4850

like image 191
Emil Marashliev Avatar answered Oct 27 '22 11:10

Emil Marashliev


This is a known bug occurring in Mac OS X v10.8 (Mountain Lion).

It's probably because Mountain Lion has a native Social.framework and the developer tools, I assume are using these, and therefore the Twitter.framework isn't being used, so when you try to login to twitter with the simulator on iOS 5.x it can't use Social.framework and the system isn't using Twitter.framework correctly as a fallback.

Anyhow, here is the official word on it:

When using the iOS 6.1 SDK on OS X v10.8 (Mountain Lion), if you use the iOS 5.0 or iOS 5.1 “Legacy SDK” in iOS Simulator, you will not be able to sign in to Twitter via the Settings pane, and Twitter.framework will not work correctly. If you need to test Twitter features, you will need to choose either the iOS 6.1 or iOS 6.0 Simulator run destination, or test with iOS 5.x on a device. These problems do not occur when running Simulator on OS X v10.7 (Lion).

Source: Apple documentation (Social section)

like image 39
Daniel Avatar answered Oct 27 '22 13:10

Daniel