2015-09-03 22 views
1

我試圖運行爲iOS夫特的谷歌日曆API示例代碼和接着的步驟1〜5按照與導向https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift無法運行谷歌日曆API的示例代碼爲iOS夫特

然而,我遇到了以下的錯誤:

1)無法導入橋接報頭 2)未找到文件

我遵循的步驟。我有一個橋接頭,其中包含#import
陳述。還有什麼我失蹤?

+0

見[快速解決方案](http://stackoverflow.com/questions/34046676/file-not-found-in-bridging-header-when-importing-objective-c-frameworks-into-s/34046677#34046677) – childrenOurFuture

回答

0

從瑞安Heitner以下的答案必須幫助解決我的問題:Google Objective-C API 'GTL' with Swift

基本上,我應該有以下import語句在我的橋接報:中

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

代替:

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