Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xCode 7.1: Could not build Objective-C module 'GoogleMaps'

I am using the GoogleMaps iOS SDK in my app and added it with cocoapods. However, after updating xCode from 7.0 to 7.1 I'm suddenly getting the following error: Could not build Objective-C module 'GoogleMaps'

In addition xCode also gives me an error in the GoogleMaps.h file in the GoogleMaps.framework: Include of non-modular header inside framework module 'GoogleMaps'

I already deleted my DerivedData folder, updated cocoapods, reinstalled the GoogleMaps iOS SDK and cleaned and build the framework's scheme and my app's scheme. But nothing helped so far.


1 Answers

Answered in this similar question: xCode 7 error: include of non-modular header inside framework module with Google Maps

...but essentially you'll need to create an Objective-C bridging header file whereas you may not have needed one with Xcode 7.0. The why still eludes me.

like image 162
mpatzer Avatar answered Nov 26 '25 18:11

mpatzer