Core Data Generated Files Not Found by Xcode 8 During Build

Number:rdar://27151410 Date Originated:03-Jul-2016
Status:Open Resolved:
Product: Product Version:
Classification:Serious Bug Reproducible:
During the build process of an iOS 10 project that uses Core Data, the build fails with the error that the Core Data generated NSManagedObject subclasses cannot be found.

Steps to Reproduce:
1. Install Xcode 8
2. Create a new single view iOS project with Core Data enabled.
3. Add a new entity with various attributes in the xcdatamodel and save the file.
4. Generate NSManagedObject's using the generation tool.
5. Build the Project

Expected Results:
1. The project should build.

Actual Results:
1. The build fails with the following error:
<unknown>:0: error: no such file or directory: '~/Library/Developer/Xcode/DerivedData/Flags-ehewnupfwfyaezbdvoohlbtmspad/Build/Intermediates/'

Note: that the file 'Country+CoreDataClass.swift' does exists in the above folder without the leading '.'

Version 8.0 beta (8S128d)


OS X 10.11.5


This also appears in Version 8.1 beta (8T29o), I cannot find a workaround and the steps listed above are all that is needed to show the problem.

By paul.gullett at Sept. 23, 2016, 1:25 p.m. (reply...)

+1 for Version Version 8.0 (8A218a)

By blitzehandy at Sept. 21, 2016, 2:24 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!