When enable bitcode got the error:clang: error: argument unused during compilation: '-fembed-bitcode-marker'

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:

  1. "Enable Bitcode" to "YES" can not work with command line
    xcodebuild OTHER_CFLAGS="-fembed-bitcode"
    at same time?
  2. If we want to build a bitcode enabled framework, we just need adding
    OTHER_CFLAGS="-fembed-bitcode"
    to the build command or add
    -fembed-bitcode
    to the "Other C Flags" in "Build Settings", right?
When enable bitcode got the error:clang: error: argument unused during compilation: '-fembed-bitcode-marker'
 
 
Q