# How to create a xcframework with macros inside?

**URL:** <https://forums.swift.org/t/how-to-create-a-xcframework-with-macros-inside/74989>\
**Category:** Macros\
**Tags:** xcframework, macros\
**Created:** [September 27, 2024, 2:48pm UTC](https://forums.swift.org/t/how-to-create-a-xcframework-with-macros-inside/74989 "2024-09-27T14:48:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timoninas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/timoninas/32/33924_2.png) [@timoninas](https://forums.swift.org/u/timoninas)\
**Post date:** [September 27, 2024, 2:48pm UTC](https://forums.swift.org/t/how-to-create-a-xcframework-with-macros-inside/74989/1 "2024-09-27T14:48:33Z")

</div>

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

How can I do this?

---

<div class="post-metadata">

**Author:** ![JoanneHolden](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@JoanneHolden](https://forums.swift.org/u/JoanneHolden)\
**Post date:** [November 28, 2024, 2:37pm UTC](https://forums.swift.org/t/how-to-create-a-xcframework-with-macros-inside/74989/2 "2024-11-28T14:37:01Z")

</div>

Looks like I'm having the same problem as you.
