yonaskolb / yonaskolb/XcodeGen
BUILT_PRODUCTS_DIR doesn't work in sources section
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
I'm trying to add copyFiles build phase but it returns spec validation error:
Spec validation error: Target "*target*" has a missing source directory "/Users/*user*/Documents/Projects/*folder*/*folder*/*folder*/*folder*/BUILT_PRODUCTS_DIR/AutoStart"
sources:
- path: $(BUILT_PRODUCTS_DIR)/AutoStart
buildPhase:
copyFiles:
destination: wrapper
subpath: Contents/Library/LoginItems
Am I doing something wrong?
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 by reproducing the issue with the shown sources configuration and the $(BUILT_PRODUCTS_DIR)/AutoStart path. Trace the source validation entry point that reports the missing directory and determine how build-setting references are handled there. Done means the configuration validates and the copyFiles phase can use the referenced product directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100