<GoogleMaps/GoogleMaps.h>找不到文件 Google

lt;GoogleMaps/GoogleMaps.hgt; file not found Google Maps SDK for iOS(lt;GoogleMaps/GoogleMaps.hgt;找不到文件 Google Maps SDK for iOS)
本文介绍了<GoogleMaps/GoogleMaps.h>找不到文件 Google Maps SDK for iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我收到一封来自 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.

这篇关于&lt;GoogleMaps/GoogleMaps.h&gt;找不到文件 Google Maps SDK for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Get an event when UIBarButtonItem menu is displayed(显示UIBarButtonItem菜单时获取事件)