I am getting this error after installing Google Maps SDK from CocoaPods.
CoreData: annotation: Failed to load optimized model at path \'/Users/nabeel/Librar
I had this problem. I just forgot to add view = mapView. add this to your viewDidLoad :
override func viewDidLoad(){
super.viewDidLoad()
view = mapView
mapView?.delegate = self
let camera = GMSCameraPosition.camera(withLatitude : 0.0 , longitude : 0.0, zoom :6.0)
mapView = GMSMapView.map(withFrame : CGRect.zero , camera : camera)
}