Hello there everyone.
Im quite new to KMM and I have a issue was wondering if I can get your help.
I have some native code on Kotlin and I wanted to create a Static Library from it, an objective-C static library. I maybe wrong but it seems the Static Library created by KMM is a C++.
Wonder if I can create a Objective-C static library with the .swiftmodules?
z
Zode
01/24/2022, 10:22 AM
Well, according to official documentation, pure Swift modules are not yet supported, but you can use framework instead.
g
Gonçalo Frade
01/24/2022, 11:58 AM
Well I want an Objective-C static library with .swiftmodules (this are files that basically represent headers) and are commonly build with by XCode/xcodebuild so its not pure swift.
Also a framework is not a good option here since I want to distribute a binary framework with dependency to this KMM code and frameworks cannot have embeded frameworks inside. And yes I could just declare this dependency in Cocapods and other dependency managers but this would not be ideal.
z
Zode
01/24/2022, 12:29 PM
Sorry, but Kotlin doesn’t seem to document how to generate static library for OC (guess not yet supported).