CoreData:注释:无法在Xcode 9 GM的路径上加载优化模型 [英] CoreData: annotation: Failed to load optimized model at path with Xcode 9 GM

查看:928
本文介绍了CoreData:注释:无法在Xcode 9 GM的路径上加载优化模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试/发布版本(iOS 11 GM / beta)期间,在控制台中观察到带有xcode 9警告的项目& iOS 10):

Project with xcode 9 following warning is observed in the console during debug/release builds (iOS 11 GM/beta & iOS 10):

CoreData: annotation:  Failed to load optimized model at path "/Users/xyz.abc/Library/Developer/CoreSimulator/Devices/A-GUID/data/Containers/Bundle/Application/B-GUID/app-name.app/Frameworks/framework-name/mystorename.momd/mystorename 6.omo"

使用CD的任何自定义框架(例如GoogleMaps等)也会导致此警告和潜在的崩溃。

Any custom framework (e.g. GoogleMaps, etc) that uses CD also results in this warning and potential crashes.


  • 还注意到了 app 和其他框架中使用的modal。对于app,clean build会导致此错误。警告中显示的路径指向与app一起使用的模型,而不是框架。

  • 使用以前的Xcode进行编译工作正常,没有注意到警告。

  • Also noticed this with modal used in app and other framework. For app, clean build results in this error. Path shown in warning points to model used with app and not a framework.
  • Compilation with previous Xcode do work fine and no warning is noticed.

  1. 完成清洁build

  2. 确保omo存在于datamodel v6,ManagedObjectModel& PersistentStoreCoordinator是非零的。所有功能都按预期工作。

  3. 添加更新版本的datamodel v7,确保omo v7存在 - clean builds&设备部署

  4. 再次添加架构

  1. complete clean build
  2. ensured omo exists in datamodel v6, ManagedObjectModel & PersistentStoreCoordinator are non-nil. All functionality works as expected.
  3. add newer version of datamodel v7, ensured omo v7 exists -- clean builds & device deployment
  4. added schema again

请添加建议。
此警告的潜在影响是什么?

Please add suggestions. What are the potential implications of this warning?


  1. https://openradar.appspot.com/33212613

  2. https://openradar.appspot.com/33573724

  3. https://openradar.appspot.com/33773917

  4. < a href =https://issuetracker.google.com/issues/35827124\"rel =noreferrer> https://issuetracker.google.com/issues/35827124

  5. https://issuetracker.google.com/issues/35827113

  1. https://openradar.appspot.com/33212613
  2. https://openradar.appspot.com/33573724
  3. https://openradar.appspot.com/33773917
  4. https://issuetracker.google.com/issues/35827124
  5. https://issuetracker.google.com/issues/35827113



旧Xcode 6 / iOS 9和Xcode 7 / iOS 9的类似问题



Similar issues with old Xcode 6/iOS 9 and Xcode 7/iOS 9


  1. 核心数据 - 无法加载路径优化模型

  2. CoreData:无法在路径上加载优化模型

  3. Google Maps SDK for iOS运行时警告 - 核心日期无法加载优化路径

  1. Core Data - Failed to load optimized model at path
  2. CoreData: Failed to load optimized model at path
  3. Google Maps SDK for iOS Runtime warning - Core Date Failed to Load Optimised Path


推荐答案

现在处理它的唯一方法(ios 11 =崩溃,不仅是警告)是降级你的sdk !!

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

在你的Podfile中修改以下行:

Within your Podfile modify the following lines:

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

执行此操作后,运行 pod update 以便库得到更新。

上面的任何版本都会崩溃。

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

这篇关于CoreData:注释:无法在Xcode 9 GM的路径上加载优化模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆