I just stumbled onto the same problem, and I still can't find a solution documented online. But I had read already, that CoreData has issues with arrays of strings.
What seems to work is creating a different data type when it comes to storing... The simplest solution for me was to convert the array to a string before storing, if you don't want to create a new class, as suggested in the comments.
In my case it looks like this:
private var longString: String = ""
var strings: [String] {
get {
longString.isEmpty ? [] : longString.components(separatedBy: .newlines)
}
set {
longString = newValue.joined(separator: "\n")
}
}```
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: