You need to sign in to do that
Don't have an account?

OAuth Error using Mobile SDK for iOS
For an existing iPhone application which used old-school logins (i.e. required a token and stored user creds) I added OAuth support last week using code from the Mobile SDK preview.
It's been working perfectly until today, when I've had errors several times regarding failed JSON parsing when processing the response of a refresh request (see below). What's odd is that the JSON is perfectly valid according to jsonlint.com so I'm assuming there's a problem with the parsing that's happening in SFOAuthCoordinator. Anybody have any ideas of how to resolve this? It's preventing my from continuing with my development! (I know the SDK is a preview release but surely login shouldn't need to change?).
oauthCoordinator:didFailWithError: Error Domain=SFOAuthErrorDomain Code=668 "SFOAuthErrorDomain malformed_response : failed to parse response JSON" UserInfo=0x760d700 {error=malformed_response, NSLocalizedDescription=SFOAuthErrorDomain malformed_response : failed to parse response JSON, error_description=failed to parse response JSON, response_data={"id":"https://test.salesforce.com/id/00DO00000005SlNMAU/00590000000NZvLAAW","issued_at":"1320726727749","instance_url":"https://cs5.salesforce.com","signature":"bapfKpkvacGgWSEddD+buphb2W3Y2Rwaq40FBIrbERE=","access_token":"00DO00000005SlN!AR8AQLQofWLSElsO0xcyc4bnIdMe.vmoFz_Ua237NMtdEWO6KMgZW2rdNTEKsERFy3Df2Lxe1Cmh.QcWJ2jDHAtVaReXjDZI"}, NSUnderlyingError=0x760aa60 "SFOAuthErrorDomain malformed_response : failed to parse response JSON"}
Having communted with a few of the SFDC guys managed to get this working by pulling down the latest code from the git repository, building that and then taking the newly built libraries from the dependancies folder.
All Answers
More information:
Re-compiled with the revokeAuthentication method being called and I can confirm that still works, but removing that, recompiling and trying the refresh approach is still failing.
Having communted with a few of the SFDC guys managed to get this working by pulling down the latest code from the git repository, building that and then taking the newly built libraries from the dependancies folder.
I am getting the same issue and I just downloaded from GitHub today, any ideas?
Notice I inserted "REMOVED" where ids/tokens were present.
Ok, so it seems the compiled frameworks in the dependencies directory have not been updated in awhile to include the changes that have been committed. Why aren't these being updated?