Failed to load optimized model - GoogleMaps SDK IOS

后端 未结 6 457
粉色の甜心
粉色の甜心 2020-12-03 06:52

I am getting this error after installing Google Maps SDK from CocoaPods.

CoreData: annotation:  Failed to load optimized model at path \'/Users/nabeel/Librar         


        
6条回答
  •  情书的邮戳
    2020-12-03 07:30

    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)
    
    }
    

提交回复
热议问题