What's the difference between `-fembed-bitcode` and BITCODE_GENERATION_MODE?
<p>I've been updating a static library to support bitcode, and from my research I found two ways to achieve that:</p>

<ul>
<li>Adding the <code>fembed-bitcode</code> flag to the Other C flags option in my project Build Settings (<a href="https://stackoverflow.com/questions/31486232/how-do-i-xcodebuild-a-static-library-with-bitcode-enabled?lq=1">link</a>)</li>
<li>Adding a User-defined Setting with the key <code>BITCODE_GENERATION_MODE</code> set to <code>bitcode</code> (<a href="https://github.com/Carthage/Carthage/issues/535" rel="noreferrer">link</a>)</li>
</ul>

<p><strong>Is there any difference between these two options?</strong></p>

<p>The only difference I noted is that by using <code>fembed-bitcode</code>, 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 <code>otool</code>), which doesn't seem to make any difference in its usage.</p>