title: Google+ iOS Sign-In Error "com.google.GTMHTTPFetcher"
body: <p>I'm stuck in a very irritating issue for the last 3 days. I have implemented the Google+ sign-in and it worked just fine till I upgraded from G+ iOS SDK version 1.5.1 to 1.7.1. I did exactly like it is mentioned in <a href="https://developers.google.com/+/mobile/ios/upgrading-sdk" rel="nofollow">Google Developers</a>. After when I press the login button, it goes to Safari or Google+ application on the device and switches back to my application with an error which I cannot resolve. </p>
  
  <p>This is how I have implemented,</p>
  
  <p><strong>StartScreenViewController.h</strong></p>
  
  <pre><code>#import &lt;GooglePlus/GooglePlus.h&gt;
  
  @interface StartScreenViewController : UIViewController &lt;GPPSignInDelegate&gt; {
  
      GPPSignIn *signIn;
  
  }
  </code></pre>
  
  <p><strong>StartScreenViewController.m</strong></p>
  
  <pre><code>#import &lt;GoogleOpenSource/GoogleOpenSource.h&gt;
  
  static NSString * const kClientId = @"********-*************.apps.googleusercontent.com";
  
  - (void)initUI {
  
  btnGooglePlus = [UIButton buttonWithType:UIButtonTypeCustom];
      [btnGooglePlus addTarget:self action:@selector(loginWithGooglePlus:) forControlEvents:UIControlEventTouchUpInside];
      [self.view addSubview:btnGooglePlus];
  
  }
  
  - (void)viewDidLoad {
  
      signIn = [GPPSignIn sharedInstance];
      signIn.shouldFetchGooglePlusUser = YES;
      signIn.shouldFetchGoogleUserEmail = YES;
      signIn.clientID = kClientId;
      signIn.scopes = @[ kGTLAuthScopePlusLogin ];
      signIn.delegate = self;
  
  }
  
  -(void)loginWithGooglePlus:(id)sender {
  
  [signIn authenticate];
  
  }
  </code></pre>
  
  <p>It switches back to app and calls the delegate method <strong>-(void)finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error</strong></p>
  
  <p>What I'm getting is an error message: <strong>Error Domain=com.google.GTMHTTPFetcher Code=-1 "The operation couldn’t be completed. (com.google.GTMHTTPFetcher error -1.)"</strong></p>
  
  <p>I even implemented the GPPSignInButton and it also gives the same result. I have no idea why it happens. If anyone can point me to the right direction, that will be a great help.</p>
  
  <p>Thanks.</p>