How to create a xcframework with macros inside?

I need to distribute my code with xcframeworks. There is should be distributed macros

How can I do this?