Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Ribbit-Invalid className

Am trying to implement the sign up form and am getting this errorTerminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid class name. Class names cannot start with an underscore.' PFUser * user = [PFUser user];

    user.username = username;
    user.password = password;
    user.email = email;

    [user signUpInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {

        if (error) {

            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error!" message:[error.userInfo objectForKey:@"error"] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
            [alertView show];

        }
        else{

            [self.navigationController popToRootViewControllerAnimated:YES];
        }
    }];

Hi. I tracked down the error and found out I had deleted the appID and clientID from my appDelegate class. After putting them back it worked like a charm:)

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Glad you got it working! :)