I recently updated to Xcode 8 and as I click on \"download\" option next to provisioning profile in Xcode/Preferences/Accounts/View Details menu it changes to gray and does not
I've had this issue too, and have had some success with renaming the profile. For example, it used to be named "[App Name] Dev", and no matter what I did, renewing, deleting and recreating with the same name, manually installing it, it just would not work at all. Until I renamed the profile to "[App Name] Development".
In mu case the issue started appearing after I added Push capability(I checked the push notification toggle button in target->capabilities) If I go and uncheck that then I can build and upload to app store.