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...
- Launch Xcode (easy)
Drag the GoogleMaps.framework bundle to the Frameworks group of your project. When prompted, select Copy items into destination group's folder.
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
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.
To the 2017 people searching on SO, the easiest way is indeed try the installing and updating your pod by of course pod install
and pod update
. Then finally, clean the project and the build by these two commands:
- Clean Build:
Command + alt option + Shift + K
- Clean Project:
Command + Shift + K
Then voila! Crash won't happen again.
If you are experiencing this issue in a more recent version of this framework and are using the CocoaPods deployment, then check that the "Copy Pods Resources" section of "Build Phases":
Apparently this section going missing is a thing and deleting your Pods directory and re-running "pod install" isn't sufficient to fix it. Instead you will need to grab this handy tool:
https://github.com/CocoaPods/cocoapods-deintegrate
Run this thing and then re run pod install and your "Copy Pods Resources" section should be back and you won't get this exception when you instantiate your map.