iOS-百度地图API那些注意的事

1>.模拟器和device的百度api静态库合并成一个:打开终端,进入静态库所在的目录,在终端输入,同时将生成的静态库放在libs文件夹下面:

KEtekiMac-mini:~ KE$ cd /Users/KE/Documents/iOS/BaiduMapApi_All_iOS_1.2.2/BaiduMapApi_Lib_iOS_1.2.2/libs

KEtekiMac-mini:libs KE$ ls
Release-iphoneos Release-iphonesimulator
KEtekiMac-mini:libs KE$ lipo -create Release-iphoneos/libbaidumapapi.a ./Release-iphonesimulator/libbaidumapapi.a -output libbaidumapapi.a
KEtekiMac-mini:libs KE$ ls
Release-iphoneos Release-iphonesimulator libbaidumapapi.a
KEtekiMac-mini:libs KE$ 

2>.运行报错 [UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to,uniqueGlobalDeviceIdentifier不是系统自带的方法,需要在编译设置里加-all_load参数,位置:Project ->build settings ->linking->Other Linker flags。

你可能感兴趣的:(ios,百度地图api)