如何在 Xcode 中删除旧的/未使用的数据模型版本 [英] How to delete an old/unused Data Model Version in Xcode
本文介绍了如何在 Xcode 中删除旧的/未使用的数据模型版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Xcode 中删除旧的数据模型?该选项在菜单上被禁用.(我要删除的模型还没有公开发布 - 它们是临时开发模型.)
How can I delete an old Data Model in Xcode? 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.)
推荐答案
这是一个 hack,但这对我有用:
It's a hack, but this worked for me:
- 在 Xcode 中将模型的当前版本设置为您想要保留的版本
- 从您的项目中删除 .xcdatamodeld(右键单击 -> 删除 -> 仅删除引用)
- 在 Finder 中显示 .xcdatamodeld 包的内容(右键单击 -> 显示包内容)
- 删除不再需要的 .xcdatamodel 文件
- 将 .xcdatamodeld 文件重新添加到您的项目中
这样就无需手动修改任何项目元数据文件.
This eliminates the need to manually modify any of the project metadata files.
这篇关于如何在 Xcode 中删除旧的/未使用的数据模型版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文