views:

21

answers:

0

My project builds fine but when it gets to line pasted bellow it crashes with the following message.

CODE:

oauthAPI = [[MPOAuthAPI alloc] initWithCredentials:credentials
        authenticationURL:[NSURL URLWithString:@"https://twitter.com/oauth/"]
         andBaseURL:[NSURL URLWithString:@"https://twitter.com/"]];

ERROR:

Assertion failure in -[MPOAuthAuthenticationMethodOAuth initWithAPI:forURL:withConfiguration:], /Project/MPOAuth/MPOAuthAuthenticationMethodOAuth.m:49

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Incorrect number of oauth authorization methods'