yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
6.88k stars 809 forks source link

Setting a default device target #1467

Open bcardarella opened 2 months ago

bcardarella commented 2 months ago

When I use xcodegen and have a multi-platform spec and open the project MacOS is selected by default. Is there a way to set the default target device to iPhone 15 or another device of my choosing?

bcardarella commented 2 months ago

Following up on this. When we generate a project that is multi-platform that includes WatchOS it seems to default to WatchOS frequently which is not what we want. We want to find a way to enforce the default Target as well as the default build device for when the project is opened the first time after being generated.

Looking at the Spec I would have thought Platform would be the value to set but it seems this is overriden as auto when using the list of supportedDestinations