1. 配置info.plist文件
a. 模拟器联网配置(Xcode7之后需要配置) "iOS9改用更安全的https的缘故"
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
b. 如果在iOS9中使用了调起百度地图客户端功能,必须在"Info.plist"中进行如下配置,否则不能调起百度地图客户端
<key>LSApplicationQueriesSchemes</key>
<array>
<string>baidumap</string>
</array>
c. iOS8的定位能力做兼容 以下二选一,两个都添加默认使用第一个
(1) NSLocationWhenInUseUsageDescription ,允许在前台使用时获取GPS的描述
(2) NSLocationAlwaysUsageDescription ,允许永久使用GPS的描述 "推荐使用这个"
也可以在info.plist中添加该行代码
<key>NSLocationAlwaysUsageDescription</key>
<true/>
d. 添加:Bundle display name ,且其值不能为空(Xcode6新建的项目没有此配置,若没有会造成manager start failed)