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

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!

Same problem here!
Using Unity 5.1.2f1 Personal edition, both building from Windows 8.1 and OS X Yosemite.
Any ideas?

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”.

2 Likes

Thank you! In fact I want to say that I’ve just updated Unity to latest version (5.2) and it works fine. :slight_smile:

I update to Xcode,Unity. and my problem isn’t solved

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.

To what version?

Thanks guys. That was helpfull.

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

Update Unity to latest version.

This bug has been fixed, but for similar tasks in the future you can use integrated Xcode API http://docs.unity3d.com/ScriptReference/iOS.Xcode.PBXProject.html

Getting this on latest version with libvrunity.a

This is an issue with a plugin you’re using. Please write to the vendor of the plugin to get it fixed.