I have created several entities in the data modeler and created the sublasses (tools version Automatic Xcode 8.0) using Class Definition for Codegen.
The subclass is created correctly.
import Foundation
import CoreData
import UIKit
extension CLCText {
@nonobjc class func fetchRequest() -> NSFetchRequest<CLCText> {
return NSFetchRequest<CLCText>(entityName: "CLCText");
}
@NSManaged var font: UIFont
@NSManaged var digitMarker: CLCDigitMarker?
}
Compiling the code, I get similar error messages for all of the entities:
<unknown>:0: error: no such file or directory: '/Users/***/Library/Developer/Xcode/DerivedData/Clocks-bxgduwqteypfhkabgkvbkpgkqhcp/Build/Intermediates/Clocks.build/Debug-iphonesimulator/***.build/DerivedSources/CoreDataGenerated/CLClockModel/.CLCText+CoreDataClass.swift'
<unknown>:0: error: no such file or directory: '/Users/***/Library/Developer/Xcode/DerivedData/Clocks-bxgduwqteypfhkabgkvbkpgkqhcp/Build/Intermediates/Clocks.build/Debug-iphonesimulator/***.build/DerivedSources/CoreDataGenerated/CLClockModel/.CLCText+CoreDataProperties.swift'
Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
As a matter of fact, the files are in the subfolder, but without the leading dot: file:///Users/***/Library/Developer/Xcode/DerivedData/Clocks-bxgduwqteypfhkabgkvbkpgkqhcp/Build/Intermediates/Clocks.build/Debug-iphonesimulator/***.build/DerivedSources/CoreDataGenerated/CLClockModel/CLCText+CoreDataClass.swift and …/CLCText+CoreDataProperties.swift.