1

I tried to run the Google Calendar API sample code for iOS Swift and followed steps 1 to 5 in accordance with the guide https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift

However, I encountered the following errors:

1) Failed to import bridging header 2) file not found

I followed the steps. I have a bridging header which included #import
statements in it. Is there anything else that I'm missing?

mechdon
  • 517
  • 1
  • 10
  • 23
  • see [a quick solution](http://stackoverflow.com/questions/34046676/file-not-found-in-bridging-header-when-importing-objective-c-frameworks-into-s/34046677#34046677) – childrenOurFuture Dec 09 '15 at 02:17

1 Answers1

0

The following answer from Ryan Heitner helped solve my problem: Google Objective-C API 'GTL' with Swift

Basically, I should have the following import statements in my bridging header:

#import "GTMOAuth2ViewControllerTouch.h"
#import  "GTLCalendar.h"

instead of:

#import "GTMOAuth2ViewControllerTouch/GTMOAuth2ViewControllerTouch.h"
#import  "GTLCalendar/GTLCalendar.h"
Community
  • 1
  • 1
mechdon
  • 517
  • 1
  • 10
  • 23