Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google iOS API Auth2 Login blank screen

For the life of me, I can not figure this out. I followed the instructions on this blog http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/ to help me set up sharing videos on youtube. However, before I am able to share videos, I need the user to be able to log into google and get permission. However only a blank screen pops up. I noticed in the errors that I get this error "missing GTMOAuth2ViewTouch.nib".

NSLog(@"PostVideoToYoutube");
    GTMOAuth2ViewControllerTouch *viewController;
    viewController = [[[GTMOAuth2ViewControllerTouch alloc] initWithScope:kMyscope
                                                                 clientID:kMyClientID
                                                             clientSecret:kMyClientSecret
                                                         keychainItemName:kKeychainItemName
                                                                 delegate:self
                                                         finishedSelector:@selector(viewController:finishedWithAuth:error:)] autorelease];

    [ITVC presentModalViewController:viewController animated:YES];

Can anyone please point me to the right direction on why the Google login page is not showing? Thank you!

like image 771
dcart1234 Avatar asked May 25 '12 13:05

dcart1234


1 Answers

Old question but heres the answer for anyone stuck:

While you may have the GTMOAuth2ViewTouch.xib file in your projects directory you, need to add it to 'Compile Sources'.

Click on your project settings > 'Build Phases' tab and click the '+' icon under compile sources. Here add 'GTMOAuth2ViewTouch.xib'.

Build, run, happy days.

like image 133
DexCurl Avatar answered Oct 01 '22 10:10

DexCurl