IOS 11 GoogleMaps crash on device (iphone 5s)

Viewed 2016

Xcode 8.3.2 iphone 5s ios 11 GoogleMaps 2.4

I getting error and crash in viewContoller

@IBOutlet weak var mapView: GMSMapView! 
override func viewDidLoad() { }

Logs:

CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
2017-09-21 16:02:08.805064+0300 Medico[2552:187180] [Common] _BSMachError: port 1187f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"

It happens only in IOS 11

6 Answers

I was facing same issue before some days, actually this issue is related to xcode and/or debuger.

The workaround for this issue is as below:

  • From the Menu in xcode, go to Product > Scheme > Edit Scheme..
  • Select "Run" tab and then select "Options" sub-tab.
  • Change "GPU Frame Capture" from "Automatically Enabled" or "OpenGL ES" to either "Metal" or "Disabled".

Thats it!!

Upgrade your Xcode and Google maps SDK .it worked for me .

No need to upgrade Xcode. Just upgrade Google SDK. Had same problem. That helped me.

Related