i tested myapp.app file with the "spctl -a -v myapp.app" option.
and this is result
myapp.app :accepted
source=Notarized Developer ID
But when i distribute it as a dmg file myapp.app to myapp.dmg, myapp.app is damaged and it doesn`t work.
i tested myapp.dmg file with the "spctl -a -vvv myapp.dmg" option
myapp.dmg: rejected
source=Unnotarized Developer ID
origin=Developer ID Application: mycompany (myteam ID)
what should i fix before distribute my app?