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