-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Feature Request] No HelperCoder generated when check compilation condition #82
Comments
@mo5tone build tool plugins don't have access to build settings, hence you are seeing no |
I am building a private swift package to deliver some common functionalities across projects. So I want to use compilation condition to skip usage of macro and plugin on compile time when my package is converted by tuist and does not affect other projects that use swift package manager. |
There is a new module for swift-syntax and it seems that with it it would be possible to respect compilation conditions swiftlang/swift-syntax#1816 |
I found that tuist can work well with another macro package but not MetaCodable. I have raised tuist/tuist#6579. |
@Gray-Wind this feature seems to be under active development and hasn't been released yet, will have a look on how this could possibly solve this issue once it is released. |
@mo5tone Can you try just including |
Describe the bug
Below code works well.
working code
But the
ResponseAttributesCoder
will be missing if add#if SOME_SWIFT_ACTIVE_COMPILATION_CONDITION
.Xcode say 'Cannot find 'AnonymousAttestationResponseAttributesCoder' in scope'.
failed to work
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Compilation condition check shouldn't fail plugin or macro.
Environment (please complete the following information, remove ones not applicable):
The text was updated successfully, but these errors were encountered: