Had the same issue, in my case the distribution certificate was expired. You can let Xcode create one by choosing to manually manage signing, select distribution certificate and + or you can add it using developer.apple.com dashboard. Hope this helps.