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

Swift Macros support #1428

Open
krishsatya opened this issue Dec 20, 2023 · 2 comments
Open

Swift Macros support #1428

krishsatya opened this issue Dec 20, 2023 · 2 comments

Comments

@krishsatya
Copy link

krishsatya commented Dec 20, 2023

I haven't seen any discussion related to Swift Macros support in XcodeGen. Since macros are meant to be distributed as Swift packages, I assumed that I could import a local package containing my macro and that this would just work. However, XcodeGen seems to treat local and remote packages differently (i.e. local packages are not part of the "Package Dependencies" section in the Project navigator), which is causing the compiler to not find my macro when building. If instead I use "Add Package Dependency..." in Xcode and add my local package there manually, the compiler is able to see the macro and everything works fine.

Curious if anyone else has encountered this issue when working with swift macros.

@yonaskolb
Copy link
Owner

I've been using macros in packages both remote and local, and has been working 🤷
Local dependencies are in the file navigator instead of the Package Dependencies section in Xcode

@timoninas
Copy link

Help please with this problem
How do you describe macros importing locally and remotely?
#1501

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

3 participants