yonaskolb / yonaskolb/XcodeGen

Support for SPM artifact bundles

Open
#1,383 0 comments 0 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

Hello! Thank you for this project.

Sort description of feature request

I would like to use XcodeGen from a swift plugin. To be able to use in a swift plugin it is needed that that the published artifact is a artifact bundle. When XcodeGen is published as a artifact bundle you can reference XcodeGen the following way in your Package.swift file:

.binaryTarget(
   name: "XcodeGen",
   url: "https://github.com/yonaskolb/XcodeGen/releases/download/2.35.0/xcodegen.artifactbundle.zip",
   checksum: "<checksum>"
)

From there you are able to reference it from a swift package plugin and automate generating a Xcode project.

How to implement it

You can find in the following blog post how to support implement the artifact bundle.

Other swift tools already do support this. A couple of example pr's:

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 with the Package.swift binaryTarget example and review the linked artifact-bundle guidance plus the SwiftLint and SwiftGen example PRs. Done means XcodeGen is published as an artifact bundle that can be referenced from a Swift package plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.