Is it possible to combine multiple .xcframework files into single .xcframeowork file?

Viewed 403

I have 20-30 .xcframework files which I need to combine into single .xcframework to be delivered to client.

Out of them only 1 framework is static framework, all the rest are dynamic framework.

I have tried 'lipo' tool to combine frameworks, but it failed with errors.

Does anyone have any experience in this?

1 Answers

No, xcframework can contain only variants of one framework inside it. As it was said at WWDC19: "XCFrameworks — for distributing multiple framework variants"

For distributing several xcframeworks you can create Swift package with several .binaryTarget items in targets section

Related