You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Further more mogenerator doesn't seem to respect the "Optional" flag or relationships:
It generates @NSManaged open var betas: NSSet which should be @NSManaged open var betas: NSSet?, no?
@regexident seems to be an issue with core data working out the entity name because you have it linked to your project namespace, so you have a couple of different solutions:
remove @objc(Alpha) and @objc(Beta) from the Human. (Stick with project namespace)
remove namespace from your entities, click the entity in the core data model, under "Class" where it is titled "Module" delete the contents which will force it to use the global namespace
Reproduce:
…with
betas
being optional, whilealpha
being mandatory.Set
Codegen
of entities toManual/None
.Generate source code via mogenerator:
Add generated code files to project.
Create entities:
Expected Behavior
Shouldn't crash.
Actual Behavior
Crashes:
Further more mogenerator doesn't seem to respect the "Optional" flag or relationships:
It generates
@NSManaged open var betas: NSSet
which should be@NSManaged open var betas: NSSet?
, no?Additional Information
Xcode 8.3, mogenerator 1.31
A sample project can be found here: https://github.com/regexident/MogeneratorCrash
The text was updated successfully, but these errors were encountered: