You need to sign the app with an Apple developer account (which costs a $100/year) for it to run on other peoples devices. You know, just the apple way of doing things.
There is a workaround tough, open the terminal and type xattr -cr {path to the app}
, and it will bypass the “protection”. The next time you try to open the app it should work.