# How to create an XCFramework with multiple framworks

**URL:** <https://forums.swift.org/t/how-to-create-an-xcframework-with-multiple-framworks/59087>\
**Category:** Package Manager\
**Tags:** xcode, packagemanager, xcodebuild, xcframework, ios\
**Created:** [July 20, 2022, 8:23am UTC](https://forums.swift.org/t/how-to-create-an-xcframework-with-multiple-framworks/59087 "2022-07-20T08:23:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pddkhoa-itus](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pddkhoa-itus/32/24417_2.png) [@pddkhoa-itus](https://forums.swift.org/u/pddkhoa-itus)\
**Post date:** [July 20, 2022, 8:23am UTC](https://forums.swift.org/t/how-to-create-an-xcframework-with-multiple-framworks/59087/1 "2022-07-20T08:23:19Z")

</div>

I am first time trying to create a XCFramework with below command.

```swift
xcodebuild -create-xcframework \
-framework ./Logger-iOS.xcarchive/Products/Library/Frameworks/Logger.framework \
-framework ./Logger-Sim.xcarchive/Products/Library/Frameworks/Logger.framework \
-output ./Logger.xcframework

```

This command is able to generate a XCFramework. But my question here is, in the Logger-IOS.xcarchive and Logger-Sim.xcarchive contains multiple frameworks(please refer to below images). So, how should I include all the frameworks in to the XCframework? Or should I generate seperate XCframeworks for each .framework? as per the above command, I can specify only one framework.

Contents of Logger-iOS.xcarchive  
 ![image](https://global.discourse-cdn.com/swift/original/3X/7/2/722c65979f02b50ea8e446798e07a208f589c0c1.png)

---

<div class="post-metadata">

**Author:** ![pddkhoa-itus](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pddkhoa-itus/32/24417_2.png) [@pddkhoa-itus](https://forums.swift.org/u/pddkhoa-itus)\
**Post date:** [July 20, 2022, 8:24am UTC](https://forums.swift.org/t/how-to-create-an-xcframework-with-multiple-framworks/59087/2 "2022-07-20T08:24:10Z")

</div>

![image](https://global.discourse-cdn.com/swift/original/3X/7/d/7db07b33dbbd29cc3a9cfea19df8215119a2442f.png)
