CoreData: annotation: Failed to load optimized model at path with Xcode 9 GM

核能气质少年 提交于 2019-11-29 20:43:46
DaNLtR

The only way now to handle it (ios 11 = crash, not only warning) is to downgrade your sdk!!

Within your Podfile modify the following lines:

pod 'GoogleMaps', '2.2'
pod 'GooglePlaces', '2.2'

After doing so, run pod update so the library will get updated.
any version above it will crash.

Upgrading Xcode to Version 9.1 beta (9B46) doesn't output this warning in the console. Tried following to reproduce console message:

  • Clean pods entirely, and rebuilt project.
  • Complete Xcode clean including derived data, simulator cleanup.
  • Device deployment, no crash observed.

The GoogleMaps 2.5.0 is out which is supposed to solve the issue.

Here is the issue tracker: Crashes on iOS 11

just update your Podfile

pod 'GoogleMaps'
pod 'GooglePlaces'

And pod update

I was getting these warnings on a simulator, after reverting my 'GoogleMaps' pod to 2.2 the API didn't show the map anymore. I updated to 2.5 which just got releases, the map works now but I still get these logs.

Also try a clean build! My app suddenly started crashing whenever I was opening a controller with GoogleMaps imported in it and everything was absolutely fine so I spent hours and finally just did a clean build and the issue was resolved!

command + shift + B
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!