This is what you need to do:
- Go to
~/Library/MobileDevice/Provisioning\ Profiles/and delete all the provisioning profiles from there. - Go to Xcode > Preferences > Accounts and select the Apple ID.
- Click
Download Manual ProfilesorDownload All Profiles. And it will download all the provisioning profiles again.
