如何删除Xcode 4中的旧的/未使用的数据模型版本 [英] How to delete an old/unused Data Model Version in Xcode 4

查看:184
本文介绍了如何删除Xcode 4中的旧的/未使用的数据模型版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Xcode 4中删除旧的数据模型?该菜单上的选项被禁用。 (我想删除的模型没有公开发布 - 它们是临时开发模型。)

解决方案

,但这对我有用:


  1. 将Xcode中的模型的当前版本设置为您要保留的模型

  2. 从您的项目中删除.xcdatamodeld(右键 - >删除 - > 仅删除参考

  3. 显示< xcdatamodeld包中的Finder(右键单击 - >显示包内容)

  4. 删除不再需要的.xcdatamodel文件

  5. 重新将.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:

  1. Set the Current version of the model in Xcode to one that you want to keep
  2. Remove the .xcdatamodeld from your project (Right-click -> Delete -> Remove Reference Only)
  3. Show the contents of the .xcdatamodeld package in the Finder (Right-click -> Show Package Contents)
  4. Delete the .xcdatamodel file(s) that you don't want anymore
  5. Re-add the .xcdatamodeld file to your project

This eliminates the need to manually modify any of the project metadata files.

这篇关于如何删除Xcode 4中的旧的/未使用的数据模型版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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