yonaskolb / yonaskolb/XcodeGen

Enhancement: copyFiles buildPhase using Products

Open
#985 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

First thing first, let me show you concept:

Note that this is just a concept and is not a valid syntax

targets:
    Sample Application:
        type: application
        platform: macOS
        sources:
              target: Helper
              optional: true
              buildPhase:
                  copyFiles:
                      destination: wrapper
                      subpath: $(CONTENTS_FOLDER_PATH)/Library/LoginItems
    Helper:
        type: application
        platform: macOS

Back to xcodegen, if I'm correct, this is not possible as of v2.18.0 (Please correct me if I'm missing something).
The above is just an example to explain the usefulness if it's possible. And this is not specific to the LoginItem thing, there may be other cases that can use this approach, I guess.
Thus, "copyFiles buildPhase using Products". (I'm not sure if sources is the suitable location to put them, this is just a concept)

What do you think?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing how XcodeGen v2.18.0 represents sources, Products, and copyFiles build phases, then compare that model with the YAML concept and define coverage for copying a Helper product into the specified wrapper subpath. Done means the supported syntax and its generated Xcode project behavior are documented and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.