[Core Data small tips] How to remove a Data Model Version in Xcode.

尝试写一篇纯英文的。

How to remove a Data Model Version in Xcode.

When you need to migration data model, you will create lots of data model version.

You will know that it is easy to create a data model veresion. But it is hard to find a way to delete one when it's useless for you.

here present a way to delete a data model version:

  1. right-click your .xcdatamodeld file in xcode files inspector, select the show in finder, and you will your .xcdatamodeld file in finder.

  2. Next, right-click the .xcdatamodeld file and select Show Package Contents, then you can see all you data model version.

  3. Back to Xcode, delete the reference of your .xcdatamodeld file, (remember just to delete the refreence, but to move to trash).

  4. Remove the data model version you didn't want anymore in finder.

  5. Add the .xcdatamodeld file back to your project in Xcode.

Then you got a new .xcdatamodeld file without the data model version you want to delete.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,564评论 5 6
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,967评论 0 23
  • 改变,不能有语言暴力。 坚持,用心陪女儿。 放心,让自己能真正安静。 放松,这世界没有过不去的坎。 相信,努力一定...
    老鹰liu阅读 104评论 0 0
  • 慢慢地,忘记了伤痛,慢慢地,不再害怕自己是特别的那个,因为随着长大,身边的人和事都在变化。 当年花了4年时间才彻底...
    蓝瓜瓜阅读 235评论 0 0
  • “本文参加#未完待续,就要表白#活动,本人承诺,文章内容为原创,且未在其他平台发表过。” 文/南塔 风,从耳边吹过...
    安徽外国语学院阅读 270评论 7 5