What's the difference between `-fembed-bitcode` and BITCODE_GENERATION_MODE?
I've been updating a static library to support bitcode, and from my research I found two ways to achieve that: Adding the fembed-bitcode flag to the Other C flags option in my project Build Settings ( link ) Adding a User-defined Setting with the key BITCODE_GENERATION_MODE set to bitcode ( link ) Is there any difference between these two options? The only difference I noted is that by using fembed-bitcode , the resulting static library for iphonesimulator will be built with full bitcode enabled (in my case, binary size changes from 5MB to 13MB, and I can check bitcode support using otool ),