lt;GoogleMaps/GoogleMaps.hgt; file not found Google Maps SDK for iOS(lt;GoogleMaps/GoogleMaps.hgt;找不到文件 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.
这篇关于<GoogleMaps/GoogleMaps.h>找不到文件 Google Maps SDK for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:<GoogleMaps/GoogleMaps.h>找不到文件 Google
基础教程推荐
- 在 Android 模拟器中激活网络位置提供程序? 2022-01-01
- 如何将多个组件添加到 PickerView? 2022-01-01
- 可可/目标C(OSX不是iOS)从子对象访问父对象 2022-01-01
- 我的 UIImageView 的任务 2022-01-01
- 在 appComponent dagger 2 中动态添加测试模块? 2022-01-01
- 在 iOS8 中无法获得正确的键盘高度值 2022-01-01
- Android:STATE_SELECTED不工作 2022-01-01
- 突出显示朗读文本(在 iPhone 的故事书类型应用程序中) 2022-01-01
- - (CGRect)convertRect:(CGRect)rect toView:(UIView *)view 如何工作 2022-01-01
- 新的@SystemApi 注解是什么意思,和@hide 有什么区别 2022-01-01
