Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreData: Failed to load optimized model at path

I am getting this warning multiple times when i goto a view using google maps.This started as soon as i migrated to swift 2.0 and xcode 7 for my exising project .Im using google maps in my project. See the console log below enter image description here

I have gone through some links but was not helpful https://code.google.com/p/gmaps-api-issues/issues/detail?id=8459

https://forums.developer.apple.com/thread/14157

like image 933
Suraj K Thomas Avatar asked Sep 22 '15 11:09

Suraj K Thomas


2 Answers

In my case I needed doing 1) update cocoa pod, 2) setup again, and 3) update pods.

1) $ gem update cocoapods

2) $ pod setup

3) $ pod update

like image 179
Gameo Hamasaki Avatar answered Sep 30 '22 19:09

Gameo Hamasaki


As indicated in your console log, this is caused by an issue in the Google Maps SDK. The issue has been fixed in the latest Google Maps SDK release, so if you update it, it should work like before.

If you're using CocoaPods, just add pod 'GoogleMaps' in your podfile and run $ pod install.

like image 26
Harry Wang Avatar answered Sep 30 '22 21:09

Harry Wang