yonaskolb / yonaskolb/XcodeGen

Reference Local SPM Targets from XcodeGen

Open
#1,160 0 comments 8 reactions 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

My question is basically #1050, but about regular targets rather than test targets. I have:

  • MyProject.xcodeproj, which is generated by XcodeGen
    • MyApp app target, which depends on MyPackageTarget
    • MyPackage local SPM package
      • MyPackageTarget target
      • MyPackageTests test target

The above issue #1050, as I understand it, has a PR #1074 that will allow me to add a MyPackageTests test target to MyProject.xcodeproj. I am wondering if there is already a way to have a scheme to build MyPackageTarget as well that I'm missing.

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

Start by reading issue #1050 and PR #1074 to understand the existing support for local package test targets. Then determine how regular local package targets could be represented in XcodeGen's generated scheme; done means a generated project can build MyPackageTarget through a 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
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.