Unity Ads Causing Error in XCode 7

I get this error in XCode 7 Beta:

“File Name” (I don’t want to give away what the file names are called) 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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

BTW: the "File name" is a Unity Ads framework file. Does it have something to do with Unity Ads
I have Certificates, profiles, etc. for XCode. This is the only error i’m getting, plus 699 warnings =/

Please help! How do I fix this? I tried setting “Enable BitCode” to No, and also to Yes. When I set it to “No”, I get 14 new warnings and the same warning still. When I set it to “Yes”, I just get that same warning.

Thanks!

2 Likes

I am having the same problem but mine is with GameCenter

Xcode Version 7.0
Unity Version: 5.1.3

GameCenter.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 for this target. for architecture arm64
clang error: linker command failed with exit code 1 (user -v to see invocation)

I changed the bitcode in the settings like it said but then every time i launch my app on my phone, it crashes immediately. The debugging message I get is “failed to send the k packet”.

Any help would be great

Hey man! So, I filed a bug report and was able to get it solved (the game ran on my iOS Device). However, it still gave me 701 Warnings, and the game was stuck on the splash screen I created. But, on the good side, it was able to run.

I was stuck on this for 2 weeks, and so hopefully this step-by-step solution works out for you so that you don’t have to wait 2 weeks like I did :wink:

  1. Check your iOS Player Settings - make sure all the Icons, Bundle ID, etc. are correct.
  2. Build it under iOS, with “Release”
  3. Open it in XCode 7.0 Beta (or release)
  4. Set your Development Team to whatever it is
  5. Make sure all your certificates are recognized by XCode
  6. Make sure you have made your keys, and your registered Apple Account is being recognized by XCode
  7. Set the Development Target to whatever your iOS version your device is that you want to run it on. (or use simulator)
  8. Click on your project in the “File” window on the (usually left) side of the screen. Make sure that your Target is set to “Unity-iPhone” (usually that’s what it’s called). Then go to Build Settings.
  9. Find the “Enable Bitcode” setting and set it to “No”.
  10. Click the play button. It should build.

That’s ALL you have to do. If this doesn’t work, I’m not sure what will. Hopefully it works :slight_smile:

Good luck :smile:

1 Like