For me worked this procedure:
Go to Signing & Capabilities
Add a random Keychain Sharing
Remove the Keychain Sharing
Clean Project
Build
Hope it helps
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: