Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Google Mobile Ads SDK v7.4.1 for iOS (GoogleMobileAdsSdkiOS-7.4.1) with bitcode for app thinning

Tags:

ios9

admob

When linking an iOS 9 app against Google Mobile Ads SDK v7.4.1 for iOS (as a framework) I get this error message:

GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADGestureIdUtil.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.

What is the right way to overcome what looks like a Catch 22?

  • Google does not seem to provide a version with bitcode enabled (or does it?)
  • If I disable bitcode for my app I risk Apple rejecting it (or won't I?)
like image 708
Drux Avatar asked Aug 18 '15 13:08

Drux


2 Answers

I've meanwhile found this in Apple's documentation:

For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

So turning bitcode off for the iOS app target should be a feasible approach for the time being.

like image 130
Drux Avatar answered Dec 21 '22 22:12

Drux


Apple does not allow submissions to the app store using Xcode Betas. So there's no way you could release with bitcode at the moment.

Google might be waiting until iOS9 is out before they release any bitcode enabled libraries to avoid confusion.

https://forums.developer.apple.com/thread/5989

like image 22
xcvr Avatar answered Dec 22 '22 00:12

xcvr