XCode Cant' Edit CoreData Model

前端 未结 8 1431
长发绾君心
长发绾君心 2020-12-18 23:44

After adding a CoreData Model to my existing project using

File > New > File... > Core Data > Data Model

I am unable to edit the m

8条回答
  •  情歌与酒
    2020-12-19 00:35

    This is still a problem in Xcode 8.

    For me, the simple solution was to drag (inside the project file navigator pane - left hand side of Xcode) my .xcdatamodeld file from its (yellow) sub group folder up to the very top level under the App (the one with the blue icon). After that, it opened up with the editor immediately.

    I retested by dragging it back to the sub-group, and again it would not open in the editor, then back to top level and it opened correctly... I have no idea why this is happening, but at least I can edit it again.

    Hope this helps somebody.

提交回复
热议问题