"Library not loaded: @rpath\/FlutterMacOS.framework\/Versions\/A\/FlutterMacOS"

I am getting this error after packaging the xyz.app however the xyzzy.app runs well and good in my Mac - MINI whenever I try to package and install I am getting this error. in the package contents of the application I am able to see FlutterMacOS.framework Can you help me with it

Is it because of pkg build can I switch it to product build.Does this work

"Library not loaded: @rpath\/FlutterMacOS.framework\/Versions\/A\/FlutterMacOS"
 
 
Q