2021, faced this problem. Open KeyChain (Applications - utilities). Left side menu, select System and remove "Apple Worldwide Developer Relations Certification Authority" and inside login, also, remove the iPhone Development certificarte. Download the v3 of the certificate from Apple (https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer). Inside KeyChain, File - Import this this new certificate. Inside Xcode preferences, remove your account and add again will make it create new profiles.