昨天我收到一封来自 google 的电子邮件,说我可以访问 ios 的 map api,我从应用程序控制台生成了我的密钥,我按照 https://developers.google.com/maps/documentation/ios/start 但 xcode 抛出此错误.
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
感谢您的支持.
出现Headers可执行文件而不是文件夹是正常的吗?
It is normal that appears the Headers executable instead of the folder?
解决了!
确保使用能够理解符号链接的东西解压缩 SDK.
Make sure you unzip the SDK with something which understands symbolic links.
GoogleMaps.framework/Headers
是到 GoogleMaps.framework/Versions/A/Headers
的符号链接.
GoogleMaps.framework/Headers
is a symbolic link to GoogleMaps.framework/Versions/A/Headers
.
当我在我的 Mac 上解压缩它时,符号链接设置正确.但是当我在我的电脑上解压缩它而不是符号链接时,我得到的文本文件只包含路径(例如 Versions/Current/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
).
如果您在 PC 上解压缩,然后将文件夹复制到您的 Mac(或使用其他不创建符号链接的方法解压缩),则会收到您看到的错误.
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.
这篇关于<GoogleMaps/GoogleMaps.h>找不到文件 Google Maps SDK for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!