I had this exact issue, solved it by making sure when I was under "Signing and Capabillities" tab that I was selecting the team within the "All" nested tab, and not just "Debug" or "Release"
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: