ios - 安装了 Google Drive API,但出现错误 "no such module ' GoogleAPIClient'"

标签 ios iphone swift google-drive-api google-sheets-api

我已完成此链接指示的每一步 (https://developers.google.com/drive/ios/quickstart?ver=swift)。但是,我在 import GoogleAPIClient 的行中收到错误。错误指出“没有这样的模块‘GoogleAPIClient’”。我已经阅读了其他提到 Ruby 和 Cocoa Pods 的主题,它们在我的项目中都是最新的。

我现在正在寻找任何建议,我只是感到困惑。

最佳答案

在导入任何东西之前,请确保在 pod 完成安装后构建项目。

还要确保你也在使用 .xcworkspace 文件而不是 .xcodeproj

关于ios - 安装了 Google Drive API,但出现错误 "no such module ' GoogleAPIClient'",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38176009/

相关文章:

iphone - 如何查看以模态方式呈现的 View Controller

读取字符串值时 iPhone 泄漏

iphone - self.managedObjectContext 和 managedObjectInstance.managedObjectContext 有什么区别?

ios - Xcode 11 swift 包管理器无法解析包

ios - 在 xcode 6 中使用 swift 自定义表格 View 单元格

Swift Array 扩展可按值删除元素而无需强制转换

适用于多种服务的 iOS 9 应用程序传输安全

iOS 蓝牙配件最大速度?

ios - 用于基于位置的图像的 Flickr API

ios - 在 iOS 上显示 3D 模型对象的注释