SwiftData and 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release

I get this red warning in Xcode every time my app is syncing to the iCloud. My model has only basic types and enum that conform to Codable so i'm not sure what is the problem.

App is working well, synchronization works. But the warning doesn't look good.

Maybe someone has idea how to debug it.

SwiftData and 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release
 
 
Q