NotificationService Extension doesn't work in XCode 13.3

I recently upgraded to Xcode 13.3.

Since that time NotificationService extension has completely stopped working. Notifications work correctly but cannot be changed. In debug when a notification arrives with "mutable-content" = 1, sometimes the process switches from "Waiting for attach" to "Running", but not always. The notification remains blocked until debugging is stopped, then all notifications with "mutable-content" = 1 are shown without changes to the content.

I also have another problem when debugging the main app: when a breakpoint is hit it's not possible to go forward, XCode freezes and the only thing possible is to stop debugging with dozens of stop button clicks which seems to be unresponsive.

Could you help me please?

I updated the MacOS to the latest version, then XCode proposed me to install a missing package to be able to debug. Now I am able to debug but the problem regarding NotificationService remains. It is now clearer that the notification is triggered by the target, as the mode immediately switches from "waiting for attach" to "running" as soon as the notification is received, but XCode does not stop at breakpoint.

The notification remains suspended and it is shown with content unchanged at the stop of the debug.

I found this in device console

Sending event: com.apple.stability.crash {"bundleID":"xx.xxxx.***","bundleVersion":"xx","exceptionCodes":"0x0000000000000000, 0x0000000000000000The extension took too much time to initialize(\n  0,\n  0\n)EXC_CRASHSIGKILLLAUNCH_HANG","incidentID":"BF0FDEB5-3A1E-4C7A-A6F0-90B1372DBE84","logwritten":0,"process":"xxxNotificationService","terminationReasonExceptionCode":"0x3","terminationReasonNamespace":"LIBXPC"}

NotificationService Extension doesn't work in XCode 13.3
 
 
Q