You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been enhancing our Swift project with Tuist Cloud and applying a Package.swift, defining the path to the local Swift Macro created through Xcode. I want to cache it and from feedback with Marek suggested our configuration is incorrect, but the error messaging could be improved to be more specific.
I can get around this error and successfully generate by using .external(name: "MyMacro", condition: .when([.ios])) but there are no references to MyMacro in the project as a result.
Target RecordModelMacro has platforms 'macOS' and product 'Swift Macro' and depends on target RecordModelMacros of type 'Swift Macro' and platforms 'macOS' which is an invalid or not yet supported combination.
Fatal linting issues found
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose
macOS version
14.4
Tuist version
4.8.1
Xcode version
15.3
The text was updated successfully, but these errors were encountered:
Quick question @kelvinharron. Do you plan to share the Swift Macro across projects that live in different repositories? Because if you don't, what we can do is to expose the Swift Macros API in ProjectDescription, and let you define Swift Macros with standard targets, instead of using Swift Packages for that. The business logic is there, just the documentation and the APIs are missing.
Hey @pepicrft, we keep all our work in one repository, so exposing the Swift Macros API would be a big win for us.
Do you mean we could define a target through Tuist as product: .macro? I would love to be able to do this as it was my expectation we would be able to, and would be very happy to use my problem as a means to implement and document it.
What happened?
I've been enhancing our Swift project with Tuist Cloud and applying a
Package.swift
, defining the path to the local Swift Macro created through Xcode. I want to cache it and from feedback with Marek suggested our configuration is incorrect, but the error messaging could be improved to be more specific.I can get around this error and successfully generate by using
.external(name: "MyMacro", condition: .when([.ios]))
but there are no references to MyMacro in the project as a result.I have recreated the issue with the attached project. TuistMacroIssue.zip
How do we reproduce it?
tuist install
tuist generate
Error log
macOS version
14.4
Tuist version
4.8.1
Xcode version
15.3
The text was updated successfully, but these errors were encountered: