【问题标题】:xCode 7.1: Could not build Objective-C module 'GoogleMaps'xCode 7.1:无法构建 Objective-C 模块“GoogleMaps”
【发布时间】:2015-10-22 17:33:39
【问题描述】:

我在我的应用程序中使用 GoogleMaps iOS SDK 并将其与 cocoapods 一起添加。但是,在将 xCode 从 7.0 更新到 7.1 后,我突然收到以下错误:Could not build Objective-C module 'GoogleMaps'

此外,xCode 还在 GoogleMaps.framework 中的 GoogleMaps.h 文件中给了我一个错误: Include of non-modular header inside framework module 'GoogleMaps'

我已经删除了我的 DerivedData 文件夹,更新了 cocoapods,重新安装了 GoogleMaps iOS SDK,并清理并构建了框架的方案和我的应用程序的方案。但到目前为止没有任何帮助。

【问题讨论】:

    标签: objective-c xcode swift


    【解决方案1】:

    在类似的问题中回答:xCode 7 error: include of non-modular header inside framework module with Google Maps

    ...但本质上,您需要创建一个 Objective-C 桥接头文件,而 Xcode 7.0 可能不需要。为什么我仍然无法理解。

    【讨论】:

    【解决方案2】:

    您应该打开 .xcworkspace 而不是 .xcodeproj 添加可可豆荚后,您的项目文件夹将包含 .xcworkspace 文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-31
      • 1970-01-01
      • 2017-06-29
      • 2015-07-05
      • 2016-10-16
      • 2016-04-06
      • 2018-05-25
      相关资源
      最近更新 更多