I recently updated to Xcode 8 and did the auto swift 3 conversion. I then read about the new Core Data auto-generated subclassing. I had defined classes but wanted to switch, so I deleted all my defined classes and then switched all the entity definitions' Codegen drop down to Class Definition and my project won't build. I believe it's because it hasn't generated the classes but I'm not sure. Here's the error I'm getting:
<unknown>:0: error: no such file or directory: '*my file path to the iphonesimulator/Debug-iphonesimulator/LoRezDungeon.build/DerivedSources/CoreDataGenerated/GameDataModel/.UAWeapon+CoreDataProperties.swift'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This is just the last Entity error, All entities in my xcdatamodel file throw the error, the command portion is just displayed once at the end of the error log.
I say I assume it just isn't generating the files because it says there is no such file as the auto-generated classes should be.
How can I force them to generate or how can I fix this? I tried what some other have said and made entity changes, saved. Changed entity name changes and saved. Cleaned and rebuilt. Same thing just keeps happening and I'm stuck. Thanks in advance for the help.
EDIT: I checked the directory it's talking about and there are generated files there so idk why it's not building..
EDIT 2: The classes do exist in the directory but they don't start with a .
, any idea why this would be happening or if it's a bug?
EDIT 3: Well, I'm kinda just assuming this is a bug they need to fix, decided to do manual creation again and this is also a thing: XCode 8 generates broken NSManagedObject subclasses for iOS 10
This among other things I'm just going to wait for an update for like a month before I continue my personal development. This is just frustrating.. :(