Ios.appthinning-ios9-new-feature-for-app-thinning-bitcode-odr-slicing

Source: Internet
Author: User
<span id="Label3"></p><p><p></p></p><span style="color: #008000;"><span style="color: #008000;">Bitcode</span></span><span style="color: #008000;"><span style="color: #008000;">0. Introduction to Bitcode</span></span><p><p></p></p><span style="color: #008000;"><span style="color: #008000;">1. Build Static library or framework via Xcode 7, while user build application using Xcode 7.</span></span><p><p>"the Xcode 7 build system defaults include enabling the Enable Bitcode build setting, but standard Debug</p></p><p><p>The or Release builds does not include the full bitcode content in the built framework and library Products.</p></p><p><p>To-build Framework and library products for distribution and ensure the full bitcode content is included,</p></p><p><p>Framework and library providers Must:</p></p> <ul class="nested"> <ul class="nested"> <li class="nested li"><p>Ensure that, the Enable bitcode build setting is correct<strong><span style="color: #ff6600;"> <code>ENABLE_BITCODE=YES</code> </span></strong>().</p></li> <li class="nested li"><p>Perform either an <strong><span style="color: #ff6600;">Archive build</span></strong> or a<span style="color: #ff6600;"> Install build</span> to produce framework and library products for Distri Bution. " ref[3.6]</p></li> </ul> </ul><span style="color: #008000;"><span style="color: #008000;">2. Build Static library or framework via Xcode 7, while user build application using Xcode 6.</span></span><p><p>"Framework and library providers need to include Bitcode for Xcode 7 development, and Xcode 7 generates Bitcode by default .</p></p><p><p>however, bitcode-enabled Framework and library products does not work well with Xcode 6. If you still need to support Xcode 6 development,</p></p><p><p>You must produce a additional version of your products without bitcode.</p></p><p><p>To build a library without bitcode, either use Xcode 7 with the build setting Enable bitcode disabled (<span style="color: #ff6600;"><strong> <code>ENABLE_BITCODE=NO</code> </strong></span>)</p></p><p><p>or use Xcode 6. "</p></p><span style="color: #008000;"><span style="color: #008000;">3. How to check whether the static library are built with Bitcode enable?</span></span><p><p>"otool-l (. o or. a File)</p></p><p><p>"__bitcode" Section "ref[3.7"</p></p><pre><pre><span style="color: #008080;">1</span> <span style="color: #0000ff;">grep</span> __bitcode</pre></pre><p><p></p></p><p><p></p></p><p><p></p></p>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.