Swift iOS项目archive操作会报错误built without full bitcode解决方法

前端之家收集整理的这篇文章主要介绍了Swift iOS项目archive操作会报错误built without full bitcode解决方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Swift iOS项目集成阿里云和百度地图SDK时,archive操作会报下面的错误,原因是缺了相关的bitcode,详见参考文章解决办法是在编译脚本增加配置xcodebuild OTHER_CFLAGS="-fembed-bitcode" -target XXXX build


ld: bitcode bundle could not be generated because '/Users/zhangxitao/work/shine-ios/Carthage/Build/iOS/AliyunOSSiOS.framework/AliyunOSSiOS(OSSHTTPDNSMini.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7



参考文章http://stackoverflow.com/questions/31486232/how-do-i-xcodebuild-a-static-library-with-bitcode-enabled

原文链接:/swift/324497.html

猜你在找的Swift相关文章