Xcode unable to compile xcdatamodeld

Hello,


Xcode stalls on compiling the xcdatamodeld Core Data file when attempting to build my project.


This is only happening (to my knowledge) for this project in particular.


The following is shown in the Report Navigator in Xcode, under the target for the App. This is what the compiler endlessly tries to compile.

DataModelCompile DerivedData/Unitu/Build/Intermediates/ArchiveIntermediates/Unitu/InstallationBuildProductsLocation/Applications/Unitu.app/ Unitu/UnituAPIDataModel.xcdatamodeld
    cd /Users/jamesbellamy/Desktop/unitu
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/usr/bin/momc --sdkroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk --iphoneos-deployment-target 8.0 --module Unitu /Users/jamesbellamy/Desktop/unitu/Unitu/UnituAPIDataModel.xcdatamodeld /Users/jamesbellamy/Desktop/unitu/DerivedData/Unitu/Build/Intermediates/ArchiveIntermediates/Unitu/InstallationBuildProductsLocation/Applications/Unitu.app/


The problem has been resolved once before by entirely re-installing Xcode after attempting all other fixes:

- Clean Project

- Deleting Derived Data, Manually and via Xcode

- Inspecting the model for any incorrect relationship or attribute settings

- Re-adding the file to the project, and ensuring the file path is absolute

- Adding different versions to the data model


The confusing aspect of the issue is that it was possible to build the project as normal immediately before this issue arose.

- Nothing changed about the data model between these times; the file remained unmodified.


Any suggestion, barring a repeated complete re-installation of Xcode, would be gladly welcomed.


Many Thanks.

The issuse has been resolved by a system restart.

- But the issue could arrise again, as I believe this is a bug within Xcode

Xcode unable to compile xcdatamodeld
 
 
Q