Widget Intent does not work on macOS Sequoia

  • Environment
    • Xcode: 16.1
    • Swift 6 and SwiftUI for macOS development
    • macOS Sequoia

I have an app for macOS, and that uses an interactive widget feature. On macOS Sequoia, the widget does not display anything and widget intent doesn't work either. I tested it on macOS Sonoma and it totally works. I assume it's a macOS bug. The app has been working fine before Sequoia.

Even on Xcode, when I tried to run the widget preview, Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 4.). I could avoid the error by changing version and build numbers, but I still got The operation couldn't be completed. (CHSErrorDomain error 1103.)

How am I able to fix the issue? I wanna at least know if its a bug from the app or macOS Sequoia.

Widget Intent does not work on macOS Sequoia
 
 
Q