无法 运行 Google 日历 API iOS Swift 的示例代码
Unable to run Google Calendar API sample code for iOS Swift
我尝试 运行 Google 日历 API iOS Swift 的示例代码,并根据指南执行了步骤 1 到 5 https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift
但是,我遇到了以下错误:
1) 导入桥接头失败
2) 找不到文件
我按照步骤操作。我有一个桥接头,其中包括#import
其中的陈述。还有什么我想念的吗?
Ryan Heitner 的以下回答帮助解决了我的问题:Google Objective-C API 'GTL' with Swift
基本上,我的桥接中应该有以下导入语句 header:
#import "GTMOAuth2ViewControllerTouch.h"
#import "GTLCalendar.h"
而不是:
#import "GTMOAuth2ViewControllerTouch/GTMOAuth2ViewControllerTouch.h"
#import "GTLCalendar/GTLCalendar.h"
我尝试 运行 Google 日历 API iOS Swift 的示例代码,并根据指南执行了步骤 1 到 5 https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift
但是,我遇到了以下错误:
1) 导入桥接头失败 2) 找不到文件
我按照步骤操作。我有一个桥接头,其中包括#import
其中的陈述。还有什么我想念的吗?
Ryan Heitner 的以下回答帮助解决了我的问题:Google Objective-C API 'GTL' with Swift
基本上,我的桥接中应该有以下导入语句 header:
#import "GTMOAuth2ViewControllerTouch.h"
#import "GTLCalendar.h"
而不是:
#import "GTMOAuth2ViewControllerTouch/GTMOAuth2ViewControllerTouch.h"
#import "GTLCalendar/GTLCalendar.h"