Mac Widgets are not working when app sandbox capability is removed for widget extension

Trying to build an inhouse app where the app doesn't need app sandoxing so removed app sandbox capability for parent app and also for widget extension,the app working seemlessly but widget is not showing on widget gallery and also in Widget simulator in mac.

Following error is getting thrown on command Line in xcode. WidgetKit Simulator[20293:4459306] [simulator] Failed to get extension to fetch descriptor <bundle_identifier> 2021-07-16 12:20:01.584636+0530 WidgetKit Simulator[20293:4459306] +[NSSavePanel _warmUp] attempted warmup

Following error thrown on xcode widget simulator

It is resproducible with the templete code generated through xcode. The only change is remove app sanbox capability

Mac Widgets are not working when app sandbox capability is removed for widget extension
 
 
Q