Search Unity

Error: libiPhone-lib.a Does not contain bitcode. You must rebuild it with bitcode enabled....

Discussion in 'iOS and tvOS' started by Pixeltoffee, Sep 19, 2015.

  1. Pixeltoffee

    Pixeltoffee

    Joined:
    Jun 22, 2015
    Posts:
    5
    Hi guys!

    I made a test project containing an empty scene. I opened XCode project and tried to run on my iPad. I received the error message you can see in attached image.

    Any suggestions whats wrong?

    System: OS X Yosemite 10.10.5, Unity 5.1.1f1 Pro, XCode 7.0.

    Thanks in advance!
     

    Attached Files:

  2. K1kk0z90_Unity

    K1kk0z90_Unity

    Joined:
    Jun 2, 2013
    Posts:
    90
    Same problem here!
    Using Unity 5.1.2f1 Personal edition, both building from Windows 8.1 and OS X Yosemite.
    Any ideas?
     
  3. Dreamwriter

    Dreamwriter

    Joined:
    Jul 22, 2011
    Posts:
    472
    If I remember right, the problem is gonna be fixed in the next patch release. For now it's a really easy problem to fix: go into XCode build settings, make sure you have All selected in the top-left corner (instead of Basic), do a search for "Bitcode". Change the Enable Bitcode option to "Yes".
     
    Pixeltoffee and K1kk0z90_Unity like this.
  4. K1kk0z90_Unity

    K1kk0z90_Unity

    Joined:
    Jun 2, 2013
    Posts:
    90
    Thank you! In fact I want to say that I've just updated Unity to latest version (5.2) and it works fine. :)
     
  5. Mirecsy23

    Mirecsy23

    Joined:
    Jan 9, 2015
    Posts:
    31
    I update to Xcode,Unity. and my problem isn't solved
     
  6. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    check build settings, look for BitCode and change the value to No. This is related to size optimizations by appstore and unity not yet fully complying to them. It's odd that 5.2 didn't fix that though, because my projects work just fine.
     
  7. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    To what version?
     
  8. Pixeltoffee

    Pixeltoffee

    Joined:
    Jun 22, 2015
    Posts:
    5
    Thanks guys. That was helpfull.
     
  9. DiegoSup

    DiegoSup

    Joined:
    Jul 21, 2014
    Posts:
    5
    Any idea how to do it automatically?
    Every time I need to replace my project I have to go and check the setting in xcode but I would add it to the post processing script. I think the value should be ENABLE_BITCODE=NO but I am not sure where should it go.

    This is the error I get:

    ld: '/Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/Trampoline/Libraries/libiPhone-lib-il2cpp-dev.a(MonoPosixHelper.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
     
  10. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Update Unity to latest version.
     
  11. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
  12. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    256
    Getting this on latest version with libvrunity.a
     
  13. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    This is an issue with a plugin you're using. Please write to the vendor of the plugin to get it fixed.