self created Macos app cannot open

I created a macos app, and it is running fine when build through xcode. It is broken when i export as .pkg I can export as .app and it only woks on my machine. If i try to open .app on other device, it also shows :"app cannot open".

does anyone can help me with it?

self created Macos app cannot open
 
 
Q