百度地图SDK Archive时报bitcode bundle could not be generated because ...

模拟器运行或者真机测试运行都没问题,当时当Archive时,报如下错误,根据报错提示,可以知道是百度地图SDK的问题,于是上百度地图开放平台查找相关解决方案。

ld: bitcode bundle could not be generated because '/Users/xxx/Desktop/Project/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base(BMSDKKeychainItemWrapper.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/Users/xxx/Desktop/Project/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base' for architecture armv7

在百度地图开放平台的常见问题中有这么一条:

  • 38、Archive时,提示不支持bitcode (*** was built without full bitcode)
    请到下载页面,下载支持bitcode的SDK版本即可(http://lbsyun.baidu.com/index.php?title=iossdk/sdkiosdev-download)

PS: 百度给的这个链接是不存在的-_-

但是百度地图SDK是使用CocoaPods方式引入的,且并没有指定版本,默认为最新版本,在集成文档中也没有看到以CocoaPods方式是否支持bitcode或者怎样下载支持bitcode的SDK方式。

网上他人的解决方法,亲测可用:

TARGETS -> Build Settings -> 搜索bitcode 找到Build Options -> Enable Bitcode 修改为NO

百度地图SDK Archive时报bitcode bundle could not be generated because ..._第1张图片
Snip20171127_4.png

你可能感兴趣的:(百度地图SDK Archive时报bitcode bundle could not be generated because ...)