I am an self-employed iOS developer and so have my own iOS distribution membership.
For a few days, I am working as a developer in a team. My apple account has been a
For this you have to do following things:
Xcode -> Preferences -> Accounts -> Add the account by clicking on 'Plus' (+) button on the left botttom section
If this is done and still have a issue then regenerate the provisioning profile, install and use it.