Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Issues with adding Foursquare authentication #53

Closed
Nilzone- opened this issue Apr 2, 2014 · 5 comments
Closed

Issues with adding Foursquare authentication #53

Nilzone- opened this issue Apr 2, 2014 · 5 comments

Comments

@Nilzone-
Copy link

Nilzone- commented Apr 2, 2014

I my pod-file i write:

pod 'SimpleAuth/FourSquare'

I go to terminal, locate my project folder and type: 'pod'

The error I receives is the following: "[!] Unable to find a specification named SimpleAuth/FourSquare in SimpleAuth (0.3.2)."

Edit: I have tried writing both Foursquare and FourSquare. The error is the same either way

@mouhcine
Copy link
Contributor

mouhcine commented Apr 2, 2014

You should use
pod 'SimpleAuth/FoursquareWeb'

@mergesort
Copy link

The proper name seems to be FoursquareWeb, not FourSquare.
(So no capital S, and the word web appended to it)

@Nilzone-
Copy link
Author

Nilzone- commented Apr 2, 2014

Thanks a lot guys! :)

@Nilzone- Nilzone- closed this as completed Apr 2, 2014
@Nilzone- Nilzone- reopened this Apr 2, 2014
@Nilzone-
Copy link
Author

Nilzone- commented Apr 2, 2014

Sorry about this, but one last question:

in my appDelegate I write this:

SimpleAuth.configuration[@"foursquareweb"] = @{
@"client_id" : @"my_id",
@"client_secret" : @"my_secret"
};

and in my viewController:

[SimpleAuth authorize:@"foursquareweb" completion:^(NSDictionary *responseObject, NSError *error) {
NSLog(@"%@", responseObject);
}];

The result is this error:

*** Assertion failure in +[SimpleAuth authorize:options:completion:], /Users/thomas/Desktop/Where/Pods/SimpleAuth/SimpleAuth/SimpleAuth.m:50

this is the line it points to:

NSAssert(klass, @"There is no class registered to handle %@ requests.", type);

@Nilzone-
Copy link
Author

Nilzone- commented Apr 2, 2014

Never mind

@Nilzone- Nilzone- closed this as completed Apr 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants