yonaskolb / XcodeGen

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

Swift Macros support #1428

Open krishsatya opened 6 months ago

krishsatya commented 6 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 4 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