I had the same issue and solved it as follows:
Logged in to my dev account and agreed to the new license terms.
Started XCode once and closed it.
Topic:
Code Signing
SubTopic:
Notarization
Tags: