yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.08k stars 820 forks source link

Swift Macros support #1428

Open krishsatya opened 11 months ago

krishsatya commented 11 months ago

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 commented 9 months ago

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 commented 2 months ago

Help please with this problem How do you describe macros importing locally and remotely? https://github.com/yonaskolb/XcodeGen/issues/1501