Google Maps does not load the map on iphone, but when I connect the iphone to the xcode and execute the project, if it loads the map correctly.
This is the code:
let camera = GMSCameraPosition.camera(withLatitude: -33.868, longitude: 151.2086, zoom: 14)
let mapViewtest = GMSMapView.map(withFrame: .zero, camera: camera)
let marker = GMSMarker()
marker.position = camera.target
marker.snippet = "Hello World"
//marker.appearAnimation = kGMSMarkerAnimationPop
marker.map = mapViewtest
view = mapViewtest
The console shows me this, but I do not know if it has anything to do
CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/33FC89CC-DC52-4212-A361-F54DD2AC3CD9/App_name.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'
When I connect the iphone to the xcode and execute the application, the correct map appears:
When I run the app on the iphone without connecting it to the xcode the map does not load: