I had the same issue because I am using Xcode-beta so I ran this command on my terminal sudo xcode-select -s /Applications/Xcode-beta.app and it worked
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags: