I have a framework need to be released with bitcode enabled. I have set "Enable Bitcode" to "YES" in project "Build Settings". And in the Makefile I have the command line like this:
xcodebuild OTHER_CFLAGS="-fembed-bitcode" -target MyFramework -configuration ${CONFIG} -sdk iphoneos. When I run the makefile, I got the error:clang: error: argument unused during compilation: '-fembed-bitcode-marker'But when I changed the "Enable Bitcode" to "NO" in "Build Settings". There is no error occurred. And run the command
otool -l build/Debug-output/MyFramework.framework/Libraries/libMyFramework.a | grep __LLVM, I can get segname __LLVM.So the questions are:
- "Enable Bitcode" to "YES" can not work with command line
at same time?xcodebuild OTHER_CFLAGS="-fembed-bitcode" - If we want to build a bitcode enabled framework, we just need adding
to the build command or addOTHER_CFLAGS="-fembed-bitcode"
to the "Other C Flags" in "Build Settings", right?-fembed-bitcode