Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load optimized model - GoogleMaps SDK IOS

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

CoreData: annotation:  Failed to load optimized model at path '/Users/nabeel/Library/Developer/CoreSimulator/Devices/96078737-8063-4BC1-97DB-7FECEC6835D9/data/Containers/Bundle/Application/972CD686-82DD-4357-9CDD-65A735D82190/My-APP-Beta.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.omo'
CoreData: annotation:  Failed to load optimized model at path '/Users/nabeel/Library/Developer/CoreSimulator/Devices/96078737-8063-4BC1-97DB-7FECEC6835D9/data/Containers/Bundle/Application/972CD686-82DD-4357-9CDD-65A735D82190/My-APP-Beta.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.omo'
CoreData: annotation:  Failed to load optimized model at path '/Users/nabeel/Library/Developer/CoreSimulator/Devices/96078737-8063-4BC1-97DB-7FECEC6835D9/data/Containers/Bundle/Application/972CD686-82DD-4357-9CDD-65A735D82190/My-APP-Beta.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileVersionID.omo'

I have tried pod update and pod install again but same issue.

like image 544
Nabeel Avatar asked Nov 11 '17 10:11

Nabeel


3 Answers

If you have already double-checked the basic setup for the "google maps ios-sdk" with an APIkey for your app's bundle identifier here and still have the same problem then probably you have not enabled the google maps API. Go to your app-project's dashboard on https://console.developers.google.com and click the "ENABLE APIS AND SERVICES". There, under the MAPS section select "the Google maps sdk for ios" and enable it.

like image 161
C. Kontos Avatar answered Nov 06 '22 15:11

C. Kontos


  1. Selecte [APP-NAME].app and show it in finder and show package contents.
  2. You will see GoogleMaps.bundle, right click and show it's package contents.
  3. Enter GMSCacheStorage.momd folder.
  4. Delete StorageWithTileProto.omo.

After that those errors disappeared.

like image 29
Murat Uygar Avatar answered Nov 06 '22 15:11

Murat Uygar


Expand GoogleMaps.bundle from Project Navigator(in Xcode) then expand GMSCacheStorage.momd folder. Now delete StorageWithTileProto.omo file from this folder and run project again.

like image 6
Som Parkash Avatar answered Nov 06 '22 13:11

Som Parkash