今天升级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.
04-26 06:27