Hello everyone!! I have a question about Swift Exp...
# swift-export
s
Hello everyone!! I have a question about Swift Export. To support multiple frameworks on iOS, will we still need to define an "_umbrella framework_"?
a
Hello there! I'm not sure what are you asking. If you are asking about multiple frameworks(as per your question) - that feature does not relate to swift export. It has many pitfalls, that were nicely compiled into an article by Touchlab - https://touchlab.co/multiple-kotlin-frameworks-in-application/#results. To be honest - this feature with swift export was never tested. If you really need this feature alongside swift export and it doesn't work out of the box - please file a ticket with description of your case and ideally a compact reproducer. If you are asking about multiple modules - yes, one exported framework does contain multiple swift modules. One can export a framework by calling a task called
embedSwiftExportForXcode
on a particular project. Basically mental model here is the same as it is with Objective-C export, but every kotlin klib will be exported as a swift module.
s
Thanks @Artem Olkov for your answer, that's exactly what I was getting at.
kodee pleased 1