Skip to content

Prepare Mint Support #3

Description

@Lutzifer

To use a macro as binary, I followed a lot of the research at https://www.polpiella.dev/binary-swift-macros

The important parts are:

  • in this repo: making the plugin an target executable (I have not yet tested this with mint):
Screenshot 2024-01-12 at 11 24 39
  • in the consuming repo: Including the mapping of macro binary to macro (via the project.yml and xcodegen) for all targets
Screenshot 2024-01-12 at 11 27 40

(for us, the binary will be in the bin subfolder of iOS)

  • in the consuming repo: removing the original macro from spm and removing all imports

  • in the consuming repo: Including the macro definition(s) in a file (e.g. Sources/MacroDefinitions.swift) that is then directly imported to the project using the sources config of xcodegen. the definitions must be private.

Screenshot 2024-01-12 at 11 29 01

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions