Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Mint Support #3

Open
Lutzifer opened this issue Jan 12, 2024 · 0 comments
Open

Prepare Mint Support #3

Lutzifer opened this issue Jan 12, 2024 · 0 comments
Assignees

Comments

@Lutzifer
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants