【问题标题】:Unable to run Google Calendar API sample code for iOS Swift无法为 iOS Swift 运行 Google Calendar API 示例代码
【发布时间】:2015-09-03 16:18:06
【问题描述】:

我尝试运行适用于 iOS Swift 的 Google Calendar API 示例代码,并按照指南 https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift 执行步骤 1 到 5

但是,我遇到了以下错误:

1) 导入桥接头失败 2) 找不到文件

我按照步骤操作。我有一个桥接头,其中包括 #import
其中的陈述。还有什么我想念的吗?

【问题讨论】:

标签: ios swift calendar


【解决方案1】:

Ryan Heitner 的以下回答帮助解决了我的问题:Google Objective-C API 'GTL' with Swift

基本上,我的桥接头中应该有以下导入语句:

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

代替:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多