Xcode data model problems with appearance in editor

后端 未结 1 1033
一生所求
一生所求 2021-01-05 17:07

Can anyone help \'cos this is driving me nuts!

I have an app I am at the early stages of and it has a Data Model. So far it has only 5 entities and a few relationsh

相关标签:
1条回答
  • 2021-01-05 17:19

    Here is a little hack to fix this display bug in Xcode, which is typically due to corrupted data in YourApp/YourApp.xcdatamodeld/YourApp.xcdatamodel/layout.

    After quitting Xcode or closing the project, you can just delete this file (did not always work for me, sometimes the file is not there).

    Alternatively, you can edit the file contents in the same directory and simply delete the whole section labeled <elements> .... </elements>. Your entities will all be on top of each other in the editor, but it should work now after rearranging them.

    0 讨论(0)
提交回复
热议问题