Error with Google Maps sdk in Swift

0

I have the Google Maps app in swift but I have an error:

This is my code:

@IBOutlet weak var mapa: GMSMapView!


let camera = GMSCameraPosition.camera(withLatitude: lat, longitude: lon, zoom: 14)
let mapView = GMSMapView.map(withFrame: .zero, camera: camera)
mapView.delegate = self
mapView.mapType = .terrain

let marker = GMSMarker()
marker.position = camera.target
marker.snippet = "Hello World"
marker.appearAnimation = GMSMarkerAnimation.pop
marker.map = mapView

mapa = mapView

The problem is that if you load the map, but neither place it at the point I want nor add the marker. And this error appears on the console:

  

CoreData: annotation: Failed to load optimized model at path   '/var/containers/XXX/xxx.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.as'

     

CoreData: annotation: Failed to load optimized model at path   '/var/containers/XXX/xxx.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.as'

     

CoreData: annotation: Failed to load optimized model at path   '/var/containers/XXX/xxx.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.as'

    
asked by Alberto Mier 24.01.2018 в 11:43
source

0 answers