iOS cannot find folder xcdatamodeld Xcode 7

今天升级xcode7时发现了个这个编译bug,说是找不到xcdatamodeld。

 

 解决方法如下:

I had the same problem. Here are the steps I used to solve it: 

  1. Right-click on your project file in Xcode and select 'Show in Finder'.
  2. Right-click on your .xcodeproj and select 'Show Package Contents'.
  3. Right-click on the project.pbxproj and open it with TextEdit (or any text editor you prefer).
  4. Search for "/* Begin XCVersionGroup section */".
  5. In my case, I had 2 entries for the .xcdatamodeld file in the XCVersionGroup section. I deleted the first one, which was not accurate (had only one child version, whereas my .xcdatamodeld should have had 3 .xcdatamodel versions), saved the file, and this fixed it for me.

 

posted @ 2015-09-22 13:28  幻化成疯  阅读(326)  评论(0编辑  收藏  举报