Crash with GoogleMaps on Xcode 9

Viewed 1235

I use GoogleMaps lib on my application since a long time but since I updated Xcode with Swift 4, when I go to the map, my application crash.

Error :

WARNING: Unable to find and load 'GoogleMaps.bundle' for Google Maps SDK for iOS. This may be a sign that you've forgotten to include a resources bundle in your 'Copy Bundle Resources' build phase. As this bundle contains important resources, you may encounter missing images, translations and other incorrect behavior.

Why ?

3 Answers

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

Open your Xcode, Click on Project Navigator In that goto Pods section Pods/GoogleMaps/Maps. folder. Inside Maps folder you can find 2 folder like Framework and resources. Goto resources folder you can find

GoogleMaps.bundle

just drag into Project -> Target -> Build Phases -> Copy Bundle Resources selection.

while draping it will ask Copy items into destination group’s folder is not selected.

Related