Try use productid instead of com.yourcompanyname.yourappname.productid
Post
Replies
Boosts
Views
Activity
Restart your mac worked for me
Restarting my iPhone fixed this right away for me.
IOS 15.1
You must ensure all signing identifier are same.
Remove all accounts from Xcode settings, then add your admin account that is a developer account you have been using. The error will disappear.