【问题标题】:<GoogleMaps/GoogleMaps.h> file not found<GoogleMaps/GoogleMaps.h> 文件未找到
【发布时间】:2013-08-26 12:58:01
【问题描述】:

我正在尝试将 Google 地图集成到我的 xcode 项目中。 我严格按照here 的说明进行操作。不幸的是,我收到一个错误:

error: 'GoogleMaps/GoogleMaps.h' file not found with <angled> include; use "quotes" instead
#import <GoogleMaps/GoogleMaps.h>
    ^~~~~~~~~~~~~~~~~~~~~~~~~
    "GoogleMaps/GoogleMaps.h"

我从 更改为 "",现在它找到了 GoogleMaps.h!

但是,我在 SDK 中包含的其他 35 个标头中遇到了同样的错误。我无法编辑每一个,我也不想这样做,因为这会花费大量时间 + 这可能是错误的做法。

我对 xcode 并没有真正的经验,但我在互联网上找到了一些主题,但没有一个对我有真正的帮助。

我在这里做错了什么?

等待答复, 亚当。

【问题讨论】:

    标签: ios xcode google-maps compiler-errors file-not-found


    【解决方案1】:

    转到搜索导航器 (CMD+3) 选择左侧的替换并点击“全部替换”

    【讨论】:

    • 我使用了 Header Search 路径设置,不知怎的让它“工作”了。现在我收到另一个错误too long to be posted here
    【解决方案2】:

    你可以试试

     # import "GoogleMapsM4B/GoogleMaps.h"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-20
      • 2017-04-17
      • 1970-01-01
      • 2018-05-03
      • 1970-01-01
      • 2016-10-04
      相关资源
      最近更新 更多