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

10,491

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.

Share:
10,491

Related videos on Youtube

Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    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.

  • Admin
    Admin over 8 years
    Yes the workaround of adding an Objective-C bridging header solved the issue for me. But it seems like it's a bug in the framework: code.google.com/p/gmaps-api-issues/issues/…