Cannot see my widget in Widget Gallery (macOS)

I used a package which contains a XCFramework inside it in my widget target. It’s working fine on iOS, and macOS Widget Simulator.

But when I open widget gallery on macOS, I can’t find my widget.

I tried to run my widget directly inside /Contents/PlugIns/WidgetTestExtension.appex/Contents/MacOS/WidgetTestExtension, it prints out the error: dyld[4767]: Library not loaded: @rpath/myframework.framework/Versions/A/myframework

Cannot see my widget in Widget Gallery (macOS)
 
 
Q