SwiftData enum type decoding failure

Hi, I have a swift data class that has an enum PromptFont as a property. the data class is hosted in CloudKit. upon launch, I started getting this error:

below is the property and the enum

when I released this app, there was no error, and it was building and running flawlessly. when I build this on a simulator (iPadOS 17.5), it runs just fine

This seems like a bug to me. I’d suggest that you file a feedback report with a testing project that reproduces the issue for the SwiftData folks to take a look – If you do so, please share your report ID here for folks to track.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

SwiftData enum type decoding failure
 
 
Q