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
基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
