yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting a default device target

bcardarella opened this issue · comments

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?

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