Mac code signature invalid

I have an Mac app which I have been running on a few different Macs. I added a Mac today to my devices. I archive the app and copy it to this new Mac just the same as I do on the other machines, but it crashes on launch with the 'code signatur invalid' error. Do I need to somehow add this device to this app id?

Replies

I can't believe I have received no suggestions for this issue. In addition, I just bought a new 2017 iMac and I have the same problem. Code signing error. I have added both devices to my devices list.