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


- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01