I've had related problems to this, in my case it was because I was using an old version of macOS and Xcode, that didn't have the newer Apple Worldwide Developer Relations certificate installed.
You can install it yourself by downloading it from https://www.apple.com/certificateauthority/.
Topic:
Developer Tools & Services
SubTopic:
General
Tags: