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