Swift - using undeclared type "GTMOAuth2Authentication"

I am switching my app from Obj-C to Swift where I have a Google+ login.

I have GoogleOpenSource.framework

it GooglePlus.framework

in my project as well as the following lines in my bridge header:

#import <GooglePlus/GooglePlus.h>
#import <GooglePlus/GPPSignIn.h>

      

Unfortunately I am still getting an error Use of undeclared type 'GTMOAuth2Authentication'

when trying to implement - (void)finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error

on GPPSignInDelegate

.

I am using G + SDK 1.7.1 as well as Xcode 6 final release.

Any ideas on what I might be missing?

Greetings

+3


source to share


1 answer


You just miss one import from the bridge header - it GTMOAuth2Authentication

's part of the frame GoogleOpenSource

:



#import <GoogleOpenSource/GoogleOpenSource.h>

      

+4


source







All Articles