1 year ago

#385229

test-img

smartsanja

Create XCFramework with multiple framworks

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

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.

enter image description here

Contents of Logger-iOS.xcarchive

enter image description here

ios

swift

xcode

swift-package-manager

xcframework

0 Answers

Your Answer

Accepted video resources