This always work for me:
Change the bundle identifier in Sigining&Capabilities tab to a invalid name (add a _ at the end e.g.), then press enter to make the siginature availabe.
And then restore the right bundle identifier.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: