如何删除Xcode 4中的旧的/未使用的数据模型版本 [英] How to delete an old/unused Data Model Version in Xcode 4
本文介绍了如何删除Xcode 4中的旧的/未使用的数据模型版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Xcode 4中删除旧的数据模型?该菜单上的选项被禁用。 (我想删除的模型没有公开发布 - 它们是临时开发模型。)
解决方案
,但这对我有用:
- 将Xcode中的模型的当前版本设置为您要保留的模型
- 从您的项目中删除.xcdatamodeld(右键 - >删除 - > 仅删除参考)
- 显示< xcdatamodeld包中的Finder(右键单击 - >显示包内容)
- 删除不再需要的.xcdatamodel文件
- 重新将.xcdatamodeld文件添加到您的项目
这样就不需要手动修改任何项目元数据文件。 / p>
How can I delete an old Data Model in Xcode 4? The option is disabled on the menu. (The models I want to delete have not been released to the public - they are interim development models.)
解决方案
It's a hack, but this worked for me:
- Set the Current version of the model in Xcode to one that you want to keep
- Remove the .xcdatamodeld from your project (Right-click -> Delete -> Remove Reference Only)
- Show the contents of the .xcdatamodeld package in the Finder (Right-click -> Show Package Contents)
- Delete the .xcdatamodel file(s) that you don't want anymore
- Re-add the .xcdatamodeld file to your project
This eliminates the need to manually modify any of the project metadata files.
这篇关于如何删除Xcode 4中的旧的/未使用的数据模型版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文