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,From,Android,to,Swift)