I have a SwiftData Model which includes a property of type Array<String>.
@Model
final class Handler {
public var id: UUID
public var name: String
public var mailingAddress: [String]
. . .
public init() {
self.id = UUID()
self.name = ""
self.mailingAddress = []
. . .
}
When I use this Model in code, the mailingAddress field appears to work just as I would expect, but when saving it (running in Simulator), I see the following logged message:
CoreData: fault: Could not materialize Objective-C class named "Array" from declared attribute value type "Array<String>" of attribute named mailingAddress
Should I be worried about this?