yonaskolb / yonaskolb/XcodeGen
Local package tests in test scheme
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Is there an option to add a local package tests target to the project scheme? I'm trying to achieve this:

My code:
packages:
SPMLocal:
url: https://it.can/be/anything
from: 2.0.0
localPackages:
- ../SPMLocal
schemes:
ProjectUnitTests:
build:
targets:
SPMLocal/SPMLocalTests: [test]
I'm getting an error because SPMLocal is not found as a projectReference. When I'm adding SPMLocal as a projectReference I'm getting an error that .pbxproj can't be found.
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
The issue does not name source files or tests. Start by tracing how schemes, localPackages, and projectReference entries are processed, then reproduce the reported configuration and determine how a local package test target should be represented without requiring a .pbxproj file. Done means the scheme can include the local package test target and generation succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100