Same issue for me last 2 weeks. Worked with apple help a few times, no solution. I even reinstalled XCode and tried manual provisioning etc.
What solved it for me was bizarre. I created a new developer account for the team, then added it to XCode, then it worked. Then my original account started working again!!!