Swift + CoreData: Can not set a Bool on NSManagedObject subclass - Bug?

前端 未结 6 1334
谎友^
谎友^ 2020-12-16 13:02

I have a little strange issue which I can\'t seem to figure out, I have a simple entity with a custom NSManagedObject subclass:

@objc(EntityTest) class Entit         


        
6条回答
  •  旧巷少年郎
    2020-12-16 13:08

    I found that it works fine if you specify the class name and module in the data model (instead of leaving the default NSManagedObject).

    Once I set that, I can use Bool, Int16, Int32, etc., without any problems.

提交回复
热议问题