I am facing problem while integrating the google plus log i got the following error:
2015-02-17 20:03:39.377 SIR[288:14344] -[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x14d57a20
2015-02-17 20:03:39.383 SIR[288:14344] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x14d57a20'
The code i used to google login is below:
-(void) setGooglePlusButtons {
UIButton *googlePlusSignInButton = [UIButton buttonWithType:UIButtonTypeCustom] ;
UIImage *backgroundButtonImage = [UIImage imageNamed:@"google.png"];
googlePlusSignInButton.frame = CGRectMake(0.0f,
400,
150,
50);
googlePlusSignInButton.titleLabel.textColor = [UIColor whiteColor];
googlePlusSignInButton.titleLabel.font = [UIFont boldSystemFontOfSize:11.0f];
googlePlusSignInButton.titleLabel.numberOfLines = 2;
googlePlusSignInButton.titleLabel.shadowColor = [UIColor darkGrayColor];
googlePlusSignInButton.titleLabel.shadowOffset = CGSizeMake(0.0f,
-1.0f);
[googlePlusSignInButton setTitle:NSLocalizedString(@"", @"")
forState:UIControlStateNormal];
[googlePlusSignInButton setBackgroundImage:backgroundButtonImage
forState:UIControlStateNormal];
[self.view addSubview:googlePlusSignInButton];
[googlePlusSignInButton addTarget:self action:@selector(signInGoogle) forControlEvents:UIControlEventTouchUpInside];}
- (void)signInGoogle {
GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.delegate = self;
signIn.shouldFetchGoogleUserEmail = YES;
signIn.clientID = KclientId;
signIn.scopes = [NSArray arrayWithObjects:kGTLAuthScopePlusLogin,nil];
signIn.actions = [NSArray arrayWithObjects:@"http://schemas.google.com/ListenActivity",nil];
[[GPPSignIn sharedInstance] authenticate];}
- (void)signOut {
[[GPPSignIn sharedInstance] signOut];}
and in app delegate
- (BOOL)application: (UIApplication *)application openURL: (NSURL *)url sourceApplication: (NSString *)sourceApplication annotation: (id)annotation {
return [GPPURLHandler handleURL:url sourceApplication:sourceApplication annotation:annotation];}
and i declared at the top kclientId
static NSString * const KclientId=@"xxxxxxxxxxxxxxx.apps.googleusercontent.com";
i have tried it on my end but i am not able to found the issue that where i am going wrong.