問題描述
昨天我收到一封來自 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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!