IMA iOS SDK 3.2 Bitcode Issue

318 views
Skip to first unread message

Miguel López Valenciano

unread,
Apr 22, 2016, 5:04:05 PM4/22/16
to Interactive Media Ads SDK
Hello,

I'm having trouble trying to compile a framework that I have to build in order to simplify IMA usage, I'm getting the following issue: "GoogleInteractiveMediaAds.framework/GoogleInteractiveMediaAds(IMAAdsLoader.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 arm64."

I can confirm that bitcode is working for apps, but not for frameworks. If I set Enable Bitcode to NO, my framework compiles but isn't generated with bitcode, so the app where this framework is used can't be archived.

You can get a really simple sample of a Swift framework with Enable Bitcode = YES, where you can see the error.
https://drive.google.com/file/d/0BzbIvIcySh09UUtHUFNCZ3FUSVU/view?usp=sharing

Thanks,

Veer Arjun Busani

unread,
Apr 22, 2016, 5:21:36 PM4/22/16
to Interactive Media Ads SDK
Hi Migul,

You have to include Bit Code in your framework as well. You can look into this post to understand how this is done.

Thanks,
Veer Busani
Mobile Ads SDK Team

Miguel López Valenciano

unread,
Apr 22, 2016, 5:54:21 PM4/22/16
to Interactive Media Ads SDK
Hi Veer,

Actually, we have several frameworks that are already compiling with bitcode, the IMA one is the only failing right now.
I have created a workspace with a framework compiling with bitcode without dependencies, and another with IMA as a dependency, there is also an app using those frameworks.
I am using an aggregate target to build our frameworks using a bash script, I also included that as well to better showcase the issue.
You can see that the app, just using the NormalFramework (no dependencies), it compiles, runs and can be archived as well.
But I can't compile any of the IMAFramework targets.

Have you verified the IMA SDK in Framework projects?
Do you use another approach to do so?

https://drive.google.com/file/d/0BzbIvIcySh09VGRKal9DbDFHTnM/view?usp=sharing

Thanks,

Veer Arjun Busani

unread,
Apr 25, 2016, 10:13:51 AM4/25/16
to Interactive Media Ads SDK
Hi Miguel,

I was able to reproduce the issue with enabling Bit Code on iOS SDK V3.2.0 and have shared this with the rest of the team. I would update you as soon as there is any update with regards to this. Till then, I would suggest you not to enable Bit Code.

Thanks,
Veer Busani
IMA SDK Team

Miguel López Valenciano

unread,
Apr 25, 2016, 12:32:06 PM4/25/16
to Interactive Media Ads SDK
Hi Veer,

Thank you so much. I'd really appreciate the update.

Best regards,

Veer Arjun Busani

unread,
May 10, 2016, 12:07:39 PM5/10/16
to Interactive Media Ads SDK
Hi Miguel,

The BitCode issue has been fixed in our latest v 3.2.1 release of the SDK. Do let us know if you need anything else.

Thanks,
Veer Busani
IMA SDK Team

Miguel López Valenciano

unread,
May 10, 2016, 3:52:10 PM5/10/16
to Interactive Media Ads SDK
Hi Veer,

Awesome, I just tested the latest release with our framework and the bitcode is now generated.

Thanks!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages