您自己的Xcode中的MapBox iOS SDK [英] MapBox iOS SDK within your own Xcode
问题描述
我使用以下命令从github下载了MapBox示例 git clone --recursive https://github.com/mapbox/mapbox-ios-example. git
I downloaded MapBox example from github using the following git clone --recursive https://github.com/mapbox/mapbox-ios-example.git
下载了包括所有依赖项在内的文件.现在,我正在尝试创建一个单独的项目,并包括该示例中的MapBox DSK.我尝试创建工作区,然后创建一个单一视图项目,然后添加新文件并为MapBox DSK选择.xcodepro,但是在尝试导入MapBox.h
文件时无法正常工作.我从未尝试过导入第三方API,并且有点不确定如何正确执行此操作.知道我如何做到吗?
Which downloaded it including all dependencies. Now I'm trying to create a separate project and include MapBox DSK as it was in that example. I tried creating workspace then creating a single view project then add new file and select .xcodepro for the MapBox DSK but didn't work when I tried importing MapBox.h
file. I never tried importing 3rd parties API before and a bit not sure how I can do that correctly. Any Idea how I can accomplish that ?
预先感谢
推荐答案
只需尝试:
#import <Mapbox/Mapbox.h>
而不是按照此处的建议仅导入Mapbox.h: https://www.mapbox.com/blog/ios-sdk-framework
instead of just importing Mapbox.h as suggested here: https://www.mapbox.com/blog/ios-sdk-framework
这篇关于您自己的Xcode中的MapBox iOS SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!