不兼容的对象模型版本 [英] Incompatible Object Model Version

查看:70
本文介绍了不兼容的对象模型版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释这里发生了什么?我有一个文件,我JUST保存从我的应用程序的新版本 - 但如果我关闭我的应用程序,双击该文档文件,它给我这个错误:

Can anyone explain what's going on here? I have a file I JUST saved from a new version of my application - yet if i close my application and double click that document file, it gives me this error:

The document "main" could not be opened. The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store.

现在,我已经检查谷歌这个,它似乎是相当普遍,建议删除应用程序支持文件夹中的文件(它的文件夹由于某种原因不存在),并清除所有目标从XCode(构建>清除所有目标)没有运气。最奇怪的部分是,当我接受错误,并看看它加载的应用程序,它是一个旧版本。在哪里可以找到我的应用程序的这个神秘的版本,如何解决它?

Now, I have checked Google for this and it appears to be fairly common, however, I tried the advise of deleting the files in the Application Support Folder (it's folder doesn't exist for some reason) and cleaned all targets from XCode (Build > Clean All Targets) with no luck. The weirdest part is, when I accept the error and take a look at the application it loaded, it's an old version. Where can I find this mystery version of my application and how do I fix it??!

推荐答案

只要有问题的任何人 - 我也有问题安装应用程序),当查看安装程序日志时,它在计算机上的某些WEIRD位置显示了我的应用程序。删除那些并重新安装(或不,如果只是从XCode调试)和问题解决。

Just for anyone who's having issues with this - I was also having issues installing the application correctly (when testing for App Store submission), and when looking at Installer Logs, it showed my app in some WEIRD locations on the computer. Delete those and reinstall (or don't, if just debugging from XCode) and problem solved.

这篇关于不兼容的对象模型版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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