3

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?

  • Does this answer your question? [iOS merge several framework into one](https://stackoverflow.com/questions/38843617/ios-merge-several-framework-into-one) – Protocol Nov 19 '21 at 13:37

1 Answers1

1

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

Alexander Ushakov
  • 5,139
  • 3
  • 27
  • 50