首页 > 代码库 > 高德地图初始化 ios

高德地图初始化 ios

最新版本的高德地图AMap_iOS_API_Lib_V2.1.1 2,这个可以到高德地图官网下载,并且按照官网给的步骤加载库,等我们加载完后要申请一个高德地图apiKey,这个非常容易。然后在我们想初始化地图的地方写上

 [MAMapServices sharedServices].apiKey =@"7e475dd3713565015cac7ea667977a63";这个key是我自己申请的  ,没有key的话地图不会显示出来,这样程序可以跑起来了   但是还有这样的警告warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/OffsetCoordinate/lib/Release-iphonesimulator/liboffset.a(offset.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTMatrixX.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTString.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTQuaternionX.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTTrans.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTTriStrip.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTResourceFile.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTQuaternionF.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTMatrixF.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTVector.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTMisc.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTError.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTModelPOD.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTTexture.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTDecompress.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTPrint3D.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTFixedPoint.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTVertex.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTBackground.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTglesExt.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTPrint3DAPI.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTTextureAPI.o) unable to open object file

warning: (i386) /Users/xiaominghan/Desktop/autonavi/MAMapKit_3D_r923_20131010/MapKit_static/MapKit_static/External/AMap3D/libAMap3DEngine.a(PVRTShadowVol.o) unable to open object file。。。。。。。。。。,这里我们只要找到一个地方设置一下就可以了  ,那就是在targets里面的build settings里的buildoptions的Debug Information Format 设置成DRAWF高德地图初始化 <wbr> <wbr> <wbr> <wbr>ios设置成高德地图初始化 <wbr> <wbr> <wbr> <wbr>ios


run,   ok!!!

高德地图初始化 ios