Alternatively
If you're doing this operation often, or if you wanted to automate (CI/CD) this process you can also use the CLI tool Surmagic https://github.com/gurhub/surmagic.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: