Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Every few days I get this build 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.

Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources''

Normally, to fix this error, I reinstall the Google Maps SDK Cocoa Pods per the most common instructions I found here for this error. But now that the error continues to resurface, I need to find a permanent fix (if there is one).

How should one properly add GoogleMaps.bundle to the Copy Bundle Resources when Google Maps was added via Cocoa Pods? I am using Xcode version 9.1.

like image 460
kidcoder SAVE UKRAINE Avatar asked Jan 19 '26 15:01

kidcoder SAVE UKRAINE


1 Answers

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.

like image 94
schtipoun Avatar answered Jan 22 '26 07:01

schtipoun