XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Support for SPM artifact bundles

Open mat1th opened this issue 2 years ago • 0 comments

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:

mat1th avatar Aug 11 '23 12:08 mat1th