Xcode 11 doesn't recognize Core data Entity

前端 未结 4 954
轻奢々
轻奢々 2020-12-31 20:33

I just declared an entity called \"Users\" array:

var UsersArray = [Users]()

I got this error:

use of unresolved id

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 20:55

    Please try this solutions !!

    Solution 1 :- Product->Buld for testing solved this issue for me(it solves most unresolved identifier bugs for some strange reason)

    Solution 2 :- changing import Foundation to import UIKit. It seems like UIApplication isn't included in Foundation framework.

    Solution 3 :- Highlight the Data Model, go to Editor -> Create NSManagedObject Subclass...

    Hope this helps thank you..

提交回复
热议问题