iOS 集成百度地图常见错误详解

1.环境配置

2.导入依赖库:

CoreLocation.framework、QuartzCore.framework、OpenGLES.framework、SystemConfiguration.framework、CoreGraphics.framework、Security.framework、libsqlite3.0.tbd、CoreTelephony.framework 、libstdc++.6.0.9.tbd

如果没有导入libsqlite3.0.tbd,会报

如果没有导入libstdc++.6.0.9.tbd,会报

4.编译正常,运行报  [UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to此时需要 other linker  flags 添加 -all_load参数。

         具体:Project ->build settings ->linking->Other Linker flags

5.编译报  Undefined symbols for architecture armv7。请检查有没有添加QuartzCore.framework 和 CoreLocation.framework

6. 启动就报 manager start failed!
之所以出现这样的问题,是因为在Xcode6中 plist文件中默认是没有BundleDisplayName的 所以你需要找到你工程下对应的info.plist文件 添加 BundleDispayName 并设置相应的value就可以了

7.建议把BMKMapManager通过单例模式管理起来。

8.把其中的一个类改成mm文件.

原文地址:https://www.cnblogs.com/hongyan1314/p/5803219.html