For us we were running a CI job on a self-hosted github runner and encountered this error, signing in to xcode on the runner resolved this issue for us.
Interestingly it wasn't necessary for macOS builds, only iOS.
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: