My MacOS swift app refuses to close (When running on Monterrey, The app becomes unresponsive after it finishes all its work, and needs to be forcefully closed)

My MacOS swift app [myStuckApp5] refuses to close when running on Monterrey (The app becomes unresponsive after finishing its work, and needs to be forcefully closed). However, it closes as expected when running MacOS 13 and above. How can I troubleshoot this error?

I'm attaching the content of the sys Log related to the app while it was stuck (too long to copy here...)

This is the content of the sys Log related to the app while it was stuck. 

Process:          com.apple.appkit.xpc.openAndSavePanelService [50252]
UUID:             527D565F-7A21-3059-ACBB-95D4985D6DF2
Path:             /System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc/Contents/MacOS/com.apple.appkit.xpc.openAndSavePanelService
Identifier:       com.apple.appkit.xpc.openAndSavePanelService
Version:          1.0 (1)
Build Version:    1
Project Name:     AppKit_executables
Source Version:   2113060150000000
Shared Cache:     246818C3-4B9F-3462-BCAF-FDF71975E5FE slid base address 0x7ff815d1e000, slide 0x15d1e000
Architecture:     x86_64
Parent:           launchd [1]
Responsible:      myStuckApp5 [50218]
UID:              501
Sudden Term:      Tracked (allows idle exit)
Footprint:        27.04 MB
Time Since Fork:  6070s
Num samples:      999 (1-999)
Note:             1 idle work queue thread omitted

  Thread 0xd8dfe    DispatchQueue "com.apple.main-thread"(1)    999 samples (1-999)    priority 4 (base 4)
  999  start + 462 (dyld + 21806) [0x1101f452e]
    999  main + 170 (com.apple.appkit.xpc.openAndSavePanelService + 30389) [0x10deea6b5]
      999  NSViewServiceApplicationMain + 1326 (ViewBridge + 55270) [0x7ff81d6697e6]
        999  -[NSXPCSharedListener resume] + 16 (ViewBridge + 46086) [0x7ff81d667406]
          999  xpc_main + 99 (libxpc.dylib + 86441) [0x7ff815d871a9]
            999  _xpc_objc_main + 867 (libxpc.dylib + 88036) [0x7ff815d877e4]
              999  NSApplicationMain + 817 (AppKit + 14234) [0x7ff818b0879a]
                999  -[NSApplication run] + 586 (AppKit + 194584) [0x7ff818b34818]
                  999  -[NSViewServiceApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 151 (ViewBridge + 72691) [0x7ff81d66dbf3]
                    999  -[NSViewServiceApplication _withToxicEventMonitorPerform:] + 114 (ViewBridge + 147459) [0x7ff81d680003]
                      999  __75-[NSViewServiceApplication nextEventMatchingMask:untilDate:inMode:dequeue:]_block_invoke + 111 (ViewBridge + 147906) [0x7ff81d6801c2]
                        999  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 (AppKit + 250214) [0x7ff818b42166]
                          999  _DPSNextEvent + 927 (AppKit + 256681) [0x7ff818b43aa9]
                            999  _BlockUntilNextEventMatchingListInModeWithFilter + 70 (HIToolbox + 188645) [0x7ff81edb70e5]
                              999  ReceiveNextEventCommon + 594 (HIToolbox + 189258) [0x7ff81edb734a]
                                999  RunCurrentEventLoopInMode + 292 (HIToolbox + 189926) [0x7ff81edb75e6]
                                  999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
                                    999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
                                      999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
                                        999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
                                         *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Thread 0xd8e1c    Thread name "com.apple.NSEventThread"    999 samples (1-999)    priority 4 (base 4)
  999  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff81603bf6b]
    999  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8160404e1]
      999  _NSEventThread + 132 (AppKit + 1754482) [0x7ff818cb1572]
        999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
          999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
            999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
              999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
               *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Binary Images:
           0x10dee3000 -        0x10def6fff  com.apple.appkit.xpc.openAndSavePanelService 1.0 (1) <527D565F-7A21-3059-ACBB-95D4985D6DF2>  /System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc/Contents/MacOS/com.apple.appkit.xpc.openAndSavePanelService
           0x1101ef000 -        0x110272fff  dyld (960)                                           <EEA022BB-A6AB-3CD1-8AC1-54CE8CFD3333>  /usr/lib/dyld
        0x7ff815d72000 -     0x7ff815dadfff  libxpc.dylib (2236.140.2.705.3)                      <488BD58D-65C0-3341-B0CF-BE85D2257A91>  /usr/lib/system/libxpc.dylib
        0x7ff816002000 -     0x7ff816039fff  libsystem_kernel.dylib (8020.240.18.709.2)           <2FE67E94-4A5E-3506-9E02-502F7270F7EF>  /usr/lib/system/libsystem_kernel.dylib
        0x7ff81603a000 -     0x7ff816045fff  libsystem_pthread.dylib (486.100.11.701.1)           <5A5F7316-85B7-315E-BAF3-76211EE65604>  /usr/lib/system/libsystem_pthread.dylib
        0x7ff816087000 -     0x7ff816589fff  com.apple.CoreFoundation 6.9 (1866)                  <FDD28505-5456-3C40-A5BA-7890B064DB39>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7ff818b05000 -     0x7ff819994fff  com.apple.AppKit 6.9 (2113.65.150)                   <5DD484CF-ED6A-3633-B42E-6518AEECD5B9>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7ff81d65c000 -     0x7ff81d74ffff  com.apple.ViewBridge 640.1 (640.1)                   <CB565676-E886-3495-8E33-2479995DEFDD>  /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge
        0x7ff81ed89000 -     0x7ff81f07cfff  com.apple.HIToolbox 2.1.1 (1114.1)                   <913D3D2E-4E4C-3907-98FE-8F4ABD551297>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.240.18.709.2)                           <AAF3C70C-3331-335A-96FB-D338CFE178F0>  /System/Library/Kernels/kernel



Process:          myStuckApp5 [50218]
UUID:             34597DAE-0EBA-30C0-8998-7E7F6CF48F63
Path:             /Volumes/myStuckApp/myStuckApp/V5.0/myStuckApp.app/Contents/MacOS/myStuckApp5
Identifier:       com.myAppDomain.myStuckApp5
Version:          5.0.1 (1)
Team ID:          8WBEJXVX48
Shared Cache:     246818C3-4B9F-3462-BCAF-FDF71975E5FE slid base address 0x7ff815d1e000, slide 0x15d1e000
Architecture:     x86_64
Parent:           launchd [1]
UID:              501
Footprint:        56.50 MB
Time Since Fork:  6503s
Num samples:      999 (1-999)
Note:             1 idle work queue thread omitted

  Thread 0xd8524    DispatchQueue "com.apple.main-thread"(1)    999 samples (1-999)    priority 4 (base 4)
  999  start + 462 (dyld + 21806) [0x1104b452e]
    999  ??? (myStuckApp5 + 1847902) [0x109ce125e]
      999  static App.main() + 63 (SwiftUI + 6122591) [0x7ff921bb3c5f]
        999  runApp<a>(_:) + 164 (SwiftUI + 11396132) [0x7ff9220bb424]
          999  specialized runApp(_:) + 161 (SwiftUI + 508060) [0x7ff92165909c]
            999  NSApplicationMain + 817 (AppKit + 14234) [0x7ff818b0879a]
              999  -[NSApplication run] + 586 (AppKit + 194584) [0x7ff818b34818]
                999  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 (AppKit + 250214) [0x7ff818b42166]
                  999  _DPSNextEvent + 927 (AppKit + 256681) [0x7ff818b43aa9]
                    999  _BlockUntilNextEventMatchingListInModeWithFilter + 70 (HIToolbox + 188645) [0x7ff81edb70e5]
                      999  ReceiveNextEventCommon + 594 (HIToolbox + 189258) [0x7ff81edb734a]
                        999  RunCurrentEventLoopInMode + 292 (HIToolbox + 189926) [0x7ff81edb75e6]
                          999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
                            999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
                              999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
                                999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
                                 *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Thread 0xd8562    Thread name "com.apple.NSEventThread"    999 samples (1-999)    priority 4 (base 4)
  999  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff81603bf6b]
    999  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8160404e1]
      999  _NSEventThread + 132 (AppKit + 1754482) [0x7ff818cb1572]
        999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
          999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
            999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
              999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
               *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Binary Images:
           0x109b1e000 -        0x109d8cfff  com.myAppDomain.myStuckApp5 5.0.1 (1)        <34597DAE-0EBA-30C0-8998-7E7F6CF48F63>  /Volumes/myStuckApp/myStuckApp/V5.0/myStuckApp.app/Contents/MacOS/myStuckApp5
           0x1104af000 -        0x110532fff  dyld (960)                                 <EEA022BB-A6AB-3CD1-8AC1-54CE8CFD3333>  /usr/lib/dyld
        0x7ff816002000 -     0x7ff816039fff  libsystem_kernel.dylib (8020.240.18.709.2) <2FE67E94-4A5E-3506-9E02-502F7270F7EF>  /usr/lib/system/libsystem_kernel.dylib
        0x7ff81603a000 -     0x7ff816045fff  libsystem_pthread.dylib (486.100.11.701.1) <5A5F7316-85B7-315E-BAF3-76211EE65604>  /usr/lib/system/libsystem_pthread.dylib
        0x7ff816087000 -     0x7ff816589fff  com.apple.CoreFoundation 6.9 (1866)        <FDD28505-5456-3C40-A5BA-7890B064DB39>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7ff818b05000 -     0x7ff819994fff  com.apple.AppKit 6.9 (2113.65.150)         <5DD484CF-ED6A-3633-B42E-6518AEECD5B9>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7ff81ed89000 -     0x7ff81f07cfff  com.apple.HIToolbox 2.1.1 (1114.1)         <913D3D2E-4E4C-3907-98FE-8F4ABD551297>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
        0x7ff9215dd000 -     0x7ff92247cfff  com.apple.SwiftUI 3.5.2 (3.5.2)            <4270A4C3-E15F-3953-8F17-ABB3B351219F>  /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.240.18.709.2)                 <AAF3C70C-3331-335A-96FB-D338CFE178F0>  /System/Library/Kernels/kernel

Process:          MTLCompilerService [50223]
UUID:             B09DFFEE-8023-31AA-A5D7-91DDB0A1AB77
Path:             /System/Library/Frameworks/Metal.framework/Versions/A/XPCServices/MTLCompilerService.xpc/Contents/MacOS/MTLCompilerService
Identifier:       com.apple.MTLCompilerService
Version:          263.9 (263.9)
Build Version:    18
Project Name:     Metal
Source Version:   263009000000000
Shared Cache:     246818C3-4B9F-3462-BCAF-FDF71975E5FE slid base address 0x7ff815d1e000, slide 0x15d1e000
Architecture:     x86_64
Parent:           launchd [1]
Responsible:      myStuckApp5 [50218]
UID:              501
Sudden Term:      Tracked (allows idle exit)
Footprint:        7484 KB
Time Since Fork:  6484s
Num samples:      999 (1-999)
Note:             1 idle work queue thread omitted

  Thread 0xd85f8    999 samples (1-999)    priority 4 (base 4)
  999  _dispatch_sig_thread + 49 (libdispatch.dylib + 83959) [0x7ff815e997f7]
    999  __sigsuspend_nocancel + 10 (libsystem_kernel.dylib + 29074) [0x7ff816009192]
     *999  ??? (kernel + 6637776) [0xffffff80008648d0]

  Binary Images:
           0x107080000 -                ???  com.apple.MTLCompilerService 263.9 (263.9) <B09DFFEE-8023-31AA-A5D7-91DDB0A1AB77>  /System/Library/Frameworks/Metal.framework/Versions/A/XPCServices/MTLCompilerService.xpc/Contents/MacOS/MTLCompilerService
        0x7ff815e85000 -     0x7ff815ecbfff  libdispatch.dylib (1325.120.2)             <37860D89-D337-3140-8973-AC199ACBC361>  /usr/lib/system/libdispatch.dylib
        0x7ff816002000 -     0x7ff816039fff  libsystem_kernel.dylib (8020.240.18.709.2) <2FE67E94-4A5E-3506-9E02-502F7270F7EF>  /usr/lib/system/libsystem_kernel.dylib
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.240.18.709.2)                 <AAF3C70C-3331-335A-96FB-D338CFE178F0>  /System/Library/Kernels/kernel


Process:          MTLCompilerService [50254]
UUID:             B09DFFEE-8023-31AA-A5D7-91DDB0A1AB77
Path:             /System/Library/Frameworks/Metal.framework/Versions/A/XPCServices/MTLCompilerService.xpc/Contents/MacOS/MTLCompilerService
Identifier:       com.apple.MTLCompilerService
Version:          263.9 (263.9)
Build Version:    18
Project Name:     Metal
Source Version:   263009000000000
Shared Cache:     246818C3-4B9F-3462-BCAF-FDF71975E5FE slid base address 0x7ff815d1e000, slide 0x15d1e000
Architecture:     x86_64
Parent:           launchd [1]
Responsible:      myStuckApp5 [50218]
UID:              501
Sudden Term:      Tracked (allows idle exit)
Footprint:        9016 KB
Time Since Fork:  6068s
Num samples:      999 (1-999)
Note:             1 idle work queue thread omitted

  Thread 0xd8e4d    999 samples (1-999)    priority 4 (base 4)
  999  _dispatch_sig_thread + 49 (libdispatch.dylib + 83959) [0x7ff815e997f7]
    999  __sigsuspend_nocancel + 10 (libsystem_kernel.dylib + 29074) [0x7ff816009192]
     *999  ??? (kernel + 6637776) [0xffffff80008648d0]

  Binary Images:
           0x10be11000 -                ???  com.apple.MTLCompilerService 263.9 (263.9) <B09DFFEE-8023-31AA-A5D7-91DDB0A1AB77>  /System/Library/Frameworks/Metal.framework/Versions/A/XPCServices/MTLCompilerService.xpc/Contents/MacOS/MTLCompilerService
        0x7ff815e85000 -     0x7ff815ecbfff  libdispatch.dylib (1325.120.2)             <37860D89-D337-3140-8973-AC199ACBC361>  /usr/lib/system/libdispatch.dylib
        0x7ff816002000 -     0x7ff816039fff  libsystem_kernel.dylib (8020.240.18.709.2) <2FE67E94-4A5E-3506-9E02-502F7270F7EF>  /usr/lib/system/libsystem_kernel.dylib
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.240.18.709.2)                 <AAF3C70C-3331-335A-96FB-D338CFE178F0>  /System/Library/Kernels/kernel

Process:          QuickLookUIService [50253]
UUID:             46006C71-9894-3A96-B00B-1D015BB23C5F
Path:             /System/Library/Frameworks/QuickLookUI.framework/Versions/A/XPCServices/QuickLookUIService.xpc/Contents/MacOS/QuickLookUIService
Identifier:       com.apple.quicklook.QuickLookUIService
Version:          1.0 (1)
Build Version:    607
Project Name:     QuickLook_executables
Source Version:   950002000000000
Shared Cache:     246818C3-4B9F-3462-BCAF-FDF71975E5FE slid base address 0x7ff815d1e000, slide 0x15d1e000
Architecture:     x86_64
Parent:           launchd [1]
Responsible:      myStuckApp5 [50218]
UID:              501
Sudden Term:      Tracked (allows idle exit)
Footprint:        2912 KB
Time Since Fork:  6069s
Num samples:      999 (1-999)
Note:             1 idle work queue thread omitted

  Thread 0xd8e25    DispatchQueue "com.apple.main-thread"(1)    999 samples (1-999)    priority 4 (base 4)
  999  start + 462 (dyld + 21806) [0x10464652e]
    999  main + 40 (QuickLookUIService + 9749) [0x101c6e615]
      999  NSViewServiceApplicationMain + 1326 (ViewBridge + 55270) [0x7ff81d6697e6]
        999  -[NSXPCSharedListener resume] + 16 (ViewBridge + 46086) [0x7ff81d667406]
          999  xpc_main + 99 (libxpc.dylib + 86441) [0x7ff815d871a9]
            999  _xpc_objc_main + 867 (libxpc.dylib + 88036) [0x7ff815d877e4]
              999  NSApplicationMain + 817 (AppKit + 14234) [0x7ff818b0879a]
                999  -[NSApplication run] + 586 (AppKit + 194584) [0x7ff818b34818]
                  999  -[NSViewServiceApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 151 (ViewBridge + 72691) [0x7ff81d66dbf3]
                    999  -[NSViewServiceApplication _withToxicEventMonitorPerform:] + 114 (ViewBridge + 147459) [0x7ff81d680003]
                      999  __75-[NSViewServiceApplication nextEventMatchingMask:untilDate:inMode:dequeue:]_block_invoke + 111 (ViewBridge + 147906) [0x7ff81d6801c2]
                        999  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 (AppKit + 250214) [0x7ff818b42166]
                          999  _DPSNextEvent + 927 (AppKit + 256681) [0x7ff818b43aa9]
                            999  _BlockUntilNextEventMatchingListInModeWithFilter + 70 (HIToolbox + 188645) [0x7ff81edb70e5]
                              999  ReceiveNextEventCommon + 594 (HIToolbox + 189258) [0x7ff81edb734a]
                                999  RunCurrentEventLoopInMode + 292 (HIToolbox + 189926) [0x7ff81edb75e6]
                                  999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
                                    999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
                                      999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
                                        999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
                                         *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Thread 0xd8e2f    Thread name "com.apple.NSEventThread"    999 samples (1-999)    priority 4 (base 4)
  999  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff81603bf6b]
    999  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8160404e1]
      999  _NSEventThread + 132 (AppKit + 1754482) [0x7ff818cb1572]
        999  CFRunLoopRunSpecific + 562 (CoreFoundation + 515436) [0x7ff816104d6c]
          999  __CFRunLoopRun + 1276 (CoreFoundation + 518440) [0x7ff816105928]
            999  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 524957) [0x7ff81610729d]
              999  mach_msg_trap + 10 (libsystem_kernel.dylib + 6458) [0x7ff81600393a]
               *999  ipc_mqueue_receive_continue + 0 (kernel + 301584) [0xffffff8000259a10]

  Binary Images:
           0x101c6c000 -        0x101c7ffff  com.apple.quicklook.QuickLookUIService 1.0 (1) <46006C71-9894-3A96-B00B-1D015BB23C5F>  /System/Library/Frameworks/QuickLookUI.framework/Versions/A/XPCServices/QuickLookUIService.xpc/Contents/MacOS/QuickLookUIService
           0x104641000 -        0x1046c4fff  dyld (960)                                     <EEA022BB-A6AB-3CD1-8AC1-54CE8CFD3333>  /usr/lib/dyld
        0x7ff815d72000 -     0x7ff815dadfff  libxpc.dylib (2236.140.2.705.3)                <488BD58D-65C0-3341-B0CF-BE85D2257A91>  /usr/lib/system/libxpc.dylib
        0x7ff816002000 -     0x7ff816039fff  libsystem_kernel.dylib (8020.240.18.709.2)     <2FE67E94-4A5E-3506-9E02-502F7270F7EF>  /usr/lib/system/libsystem_kernel.dylib
        0x7ff81603a000 -     0x7ff816045fff  libsystem_pthread.dylib (486.100.11.701.1)     <5A5F7316-85B7-315E-BAF3-76211EE65604>  /usr/lib/system/libsystem_pthread.dylib
        0x7ff816087000 -     0x7ff816589fff  com.apple.CoreFoundation 6.9 (1866)            <FDD28505-5456-3C40-A5BA-7890B064DB39>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7ff818b05000 -     0x7ff819994fff  com.apple.AppKit 6.9 (2113.65.150)             <5DD484CF-ED6A-3633-B42E-6518AEECD5B9>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7ff81d65c000 -     0x7ff81d74ffff  com.apple.ViewBridge 640.1 (640.1)             <CB565676-E886-3495-8E33-2479995DEFDD>  /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge
        0x7ff81ed89000 -     0x7ff81f07cfff  com.apple.HIToolbox 2.1.1 (1114.1)             <913D3D2E-4E4C-3907-98FE-8F4ABD551297>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.240.18.709.2)                     <AAF3C70C-3331-335A-96FB-D338CFE178F0>  /System/Library/Kernels/kernel
</a>
My MacOS swift app refuses to close (When running on Monterrey, The app becomes unresponsive after it finishes all its work, and needs to be forcefully closed)
 
 
Q