# Embed static xcframework to dynamic framework

**URL:** <https://forums.swift.org/t/embed-static-xcframework-to-dynamic-framework/52839>\
**Category:** Using Swift\
**Tags:** swift5\
**Created:** [October 15, 2021, 5:56am UTC](https://forums.swift.org/t/embed-static-xcframework-to-dynamic-framework/52839 "2021-10-15T05:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srisai678](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Srisai678](https://forums.swift.org/u/Srisai678)\
**Post date:** [October 15, 2021, 5:56am UTC](https://forums.swift.org/t/embed-static-xcframework-to-dynamic-framework/52839/1 "2021-10-15T05:56:46Z")

</div>

I have an static xcframework(staticframeworkA) that I would like to embed into a dynamic framework(DynamicframeworkB). Now I have to embed this dynamic framework to my main project. In main project it’s complaining about modules missing. The main app doesn’t able to get the reference of static framework. Spent almost 2 days on this. Any suggestions on how to fix this.

---

<div class="post-metadata">

**Author:** ![tonyarnold](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tonyarnold/32/30924_2.png) [@tonyarnold](https://forums.swift.org/u/tonyarnold)\
**Post date:** [October 15, 2021, 6:44am UTC](https://forums.swift.org/t/embed-static-xcframework-to-dynamic-framework/52839/2 "2021-10-15T06:44:17Z")

</div>

Why do you want to embed it? Once the static library is linked into the dynamic library in the framework, it’s symbols will be part of that dynamic library.
