Google Maps Sdk for iOS Requires Googlemaps.Bundle to Be Part of Your Target Under 'Copy Bundle Resources

Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources

The instructions are kinda lacking. I hope this helps...

  1. Launch Xcode (easy)
  2. Drag the GoogleMaps.framework bundle to the Frameworks
    group of your project. When prompted, select Copy items into
    destination group's folder.

  3. Right-click GoogleMaps.framework in your project, and select Show In
    Finder. What it doesn't say is...Then go into the child folder called Resources

  4. Drag the GoogleMaps.bundle from the Resources folder to your
    project. We suggest putting it in the Frameworks group. When
    prompted, ensure Copy items into destination group’s folder is not
    selected.

Recurring error: Google Maps bundle missing from 'Copy Bundle Resources'

I had the same issue here. Here is how I solved it.

In XCode, in the project navigator, go to Pods > Pods > GoogleMaps > Maps > Frameworks

Right click on GoogleMaps.framework > Show in Finder

Expand GoogleMaps.framework > Resources

Drag the GoogleMaps.bundle into your XCode project navigator (under Frameworks) for a better readibility.

Click Finish to confirm the prompt that asks you to copy the item if needed.

Since, I have some CoreData warning in the console that I'm trying to see if it's important or not. But from what I read so far, it doesn't seem to.

Crash with GoogleMaps on Xcode 9

I have the same issue.
just delete GoogleMaps folder in Pods project,and then "pod install" again.

GMSService exception Google Maps SDK for iOS requires GoogleMaps.bundle

Looks like the new Xamarin Studio has support for components and adding the Google Maps component to your app from that route solves the issue... oh well.

AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS React Native

Finally what I was missing has been found here: Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources

So what I did is in Steps For installing the react-native:

  1. npm install --save react-native-maps
  2. react-native link react-native-maps
  3. Download the google maps ios SDK from here
    [https://developers.google.com/maps/documentation/ios-sdk/start
  4. Follow the steps for manually installing the ios SDK, In the 4th
    Step of google documentation

    Drag the following bundles into your project under Frameworks in
    Xcode (when prompted, select Copy items if needed):

    • GoogleMaps-2.7.0/Base/Frameworks/GoogleMapsBase.framework

    • GoogleMaps-2.7.0/Maps/Frameworks/GoogleMaps.framework

    • GoogleMaps-2.7.0/Maps/Frameworks/GoogleMapsCore.framework

  5. Right-click GoogleMaps.framework in your project, and select Show In
    Finder. What it doesn't say is...Then go into the child folder
    called Resources

  6. Drag the GoogleMaps.bundle from the Resources folder to your
    project. We suggest putting it in the under the Frameworks folder in
    Xcode. When prompted, ensure Copy items into destination group’s
    folder is not selected.
  7. Go to Build Settings in Xcode for your project and type "Header
    Search Paths" in the search bar and double click the debug to see
    the header search paths in debug build. Click + to add the path and
    add "$(SRCROOT)/Frameworks/" with the recursive option.
  8. Go to Build Phases of your project in Xcode. Add the following
    frameworks and libraries.

    • GoogleMapsBase.framework
    • GoogleMaps.framework
    • GoogleMapsCore.framework
    • libAirMaps.a
      Note: In case libAirMaps.a does not get linked automatically then you can link manually by dragging the AirMaps.xcodeproj from
      node_modules/react-native-maps/lib/ios to the Libraries folder on
      k/start

Hope so it helps anyone :)

Debug error xcode 6- using google maps sdk

You need to add GoogleMaps.bundle to your project's Frameworks.
You can find it in GoogleMaps.framework/Versions/A/Resources. and make sure that the "Copy items if needed" is not checked

you can also try the solution suggested here:
Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources

iOS on archiving Found an unexpected Mach-O header code: 1918975009

As mentioned in comment, managing libraries via Cocoapods can resolve the issue. It manages the include path, linker flags and the bundled files automatically.



Related Topics



Leave a reply



Submit