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
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.