Include of non-modular header inside framework module 'GoogleMobileAds' after swift 2 conversion

693 views
Skip to first unread message

Vigneswara Baarathi

unread,
Nov 11, 2015, 9:25:26 PM11/11/15
to Google Mobile Ads SDK Developers

Good day everyone. So i just migrated to swift 2.0 and am facing this problem as titled: Include of non-modular header inside framework module 'GoogleMobileAds'. 21 occurrences. What I have done so far:

I removed every item on my pod file and reinstalled one at a time. Just before adding the GoogleMobileAds, everything would work and deploy to the simulator. Once I add it in, I see all these errors.

I have tried:

  • Allow non-modular Includes in Framework Modules to "Yes".
  • I added the "post_install" script for "'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'" to "yes" at the pod file.
  • I have set enable bit code to "No"

Strange thing was it did work for half a day on the simulator. When i was ready to deploy to device, it stopped working. I decided to reinstall the pods and it doesnt work even on simulator again.

Please help. Attached are some screenshots



Vigneswara Baarathi

unread,
Nov 11, 2015, 9:55:27 PM11/11/15
to Google Mobile Ads SDK Developers
Temporary solution is to remove it from cocoapods and add the framework manually. 

Vu Chau (MobileAds SDK Team)

unread,
Nov 12, 2015, 11:15:30 AM11/12/15
to Google Mobile Ads SDK Developers
Hi Vigneswara,

We have a fix slated for this bug, and it should be out with the next release of the SDK. 

As you have known, a workaround is to integrate the SDK manually. Another approach is to add every GoogleAdMobs header to its module.modulemap file, as described here

Best,

Vu Chau
Mobile Ads SDK Team

Alexey Gobzhelyan

unread,
Dec 13, 2015, 1:39:51 PM12/13/15
to Google Mobile Ads SDK Developers
It seems fixed in v7.6
pod 'Google-Mobile-Ads-SDK', '~> 7.6'

Vu Chau (MobileAds SDK Team)

unread,
Dec 14, 2015, 10:32:46 AM12/14/15
to Google Mobile Ads SDK Developers
Hi Alexey,

Thanks for confirming! Let us know if you need anything.

Vu Chau
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages