'No such module' 模块存在时出错 swift

'No such module' error when module is there swift

我正在尝试使用 Swift 安装 Google 日历 API。我正在尝试 运行 他们放在网上的样本 https://developers.google.com/google-apps/calendar/quickstart/ios?ver=swift#step_2_prepare_the_workspace

但是,我看到了错误,"No such module 'GoogleAPIClient'"但是,该文件夹显然在项目目录中。请帮忙。以下截图

尝试添加

 #import <GTMOAuth2/GTMOAuth2Authentication.h> 

在你的桥接中-Header.h

无法读取模块,因为 pod 安装不成功。这似乎是由于当时使用的 ruby 版本所致。更新 ruby 并重新 运行 'pod install' 解决了这个问题。