< Google地图/ GoogleMaps.h>文件未找到Google Maps SDK for iOS [英] <GoogleMaps/GoogleMaps.h> file not found Google Maps SDK for iOS

查看:881
本文介绍了< Google地图/ GoogleMaps.h>文件未找到Google Maps SDK for iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我收到了谷歌的一封电子邮件,说我可以访问ios的地图API,我从应用程序控制台生成了我的密钥,然后按照 https://developers.google.com/maps/documentation/ios/start ,但xcode引发此错误。

  #import< GoogleMaps / GoogleMaps.h> //文件未找到

感谢您的支持。



出现Headers可执行文件而不是文件夹是正常的吗?




已解决!

解决方案


$ b

GoogleMaps.framework / Headers 确保您将SDK解压缩到可理解符号链接的位置。是一个指向 GoogleMaps.framework / Versions / A / Headers 的符号链接。



当我在Mac上解压缩它时符号链接设置正确。但是当我在PC上解压缩而不是符号链接时,我得到的文本文件只包含路径(例如 Versions / Current / Headers )。

如果您在PC上解压,然后将文件夹复制到Mac(或使用其他方法不会创建符号链接解压缩),则会看到您看到的错误。


Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://developers.google.com/maps/documentation/ios/start but xcode throw this error.

#import <GoogleMaps/GoogleMaps.h> //file not found

Thanks for your support.

It is normal that appears the Headers executable instead of the folder?

SOLVED!

解决方案

Make sure you unzip the SDK with something which understands symbolic links.

GoogleMaps.framework/Headers is a symbolic link to GoogleMaps.framework/Versions/A/Headers.

When I unzip it on my Mac the symbolic link is set up correctly. But when I unzip it on my PC instead of symbolic links I get text files which just contain the path (eg Versions/Current/Headers).

If you unzip on a PC and then copy the folder to your Mac (or unzip using some other method which doesn't create symbolic links), then you will get the error you see.

这篇关于&LT; Google地图/ GoogleMaps.h&GT;文件未找到Google Maps SDK for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆