yonaskolb / yonaskolb/XcodeGen
Specify additional build/run targets for target-scheme
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Similarly to testTargets, it would be useful to be able to define additional targets within target-scheme.
For example, Widgets target scheme should have AppTarget added as build target, but currently it doesn't seem possible.
targets:
AppTarget:
...
Widgets:
type: app-extension
subtype: widgetkit-extension
platform: iOS
deploymentTarget: 15.0
configFiles:
DEV Debug: some-dev.xcconfig
DEV Release: some-dev.xcconfig
PROD Debug: some-prod.xcconfig
PROD Release: some-prod.xcconfig
scheme:
configVariants:
- DEV
- PROD
It is possible to do using top level scheme, but since we have 3+ configVariants in 3+ app "flavours" (whitelabel app), we'd like to rely on using configVariants and avoid manually specifying scheme for each target/config/flavour combination
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Docs/ProjectSpec.md, comparing the target-scheme section and its testTargets option with the top-level scheme build configuration. Trace how configVariants are represented for target schemes, then define completion as allowing additional build/run targets for each generated variant, including the AppTarget example, without manually specifying every scheme.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100