SwiftData Models not working after updating to macOS 26

Im working on an app which have a lot of diffrent models which are having relationships one to many and so on and on macos Sequoia and Sonoma everything is working but on Tahoe i have this error

SwiftData/SchemaProperty.swift:286: Fatal error: Illegal attempt to create a property that's a sequence of a non-codable type (_buffer - _ArrayBuffer<Double>). Did you mean to use a transformable attribute?

I also use computed properties to perform login on model value change like property name is var name: String{ get:{ self._name} set:{ self._name = $0 } } var _name: String = ""

I no where use ArrayBuffer i just use [Double] it its needed

The error message indicates that your model uses a non-codable type, which is not allowed in SwiftData, but if that is the case, your code shouldn't work in the previous system versions.

It's hard to say anything more than that without looking into your schema. If you can provide a minimal project that contains only the relevant code, with detailed steps to reproduce the issue, I'll be happy to take a closer look.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Here i have a simplest project which cant even open. It compiles but crashes: https://filebin.net/archive/3udkjnu767yi6pr0/zip

Thanks for sharing your code. It looks good to me. I've also confirmed that the code works on macOS 15.5, which suggests that the issue may be a regression in macOS Tahoe. I’d hence suggest that you file a feedback report – If you do so, please share your report ID here. Thanks again.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

SwiftData Models not working after updating to macOS 26
 
 
Q