I have doubt on SPM support for IOS in KMP, I know...
# multiplatform
k
I have doubt on SPM support for IOS in KMP, I know how to setup the Kotlin/Native output for an Apple target and consume as a Swift package manager (SPM) dependency but is there any support or way to add SPM dependencies in my KMP project similar to what KMP cocoapods plugin does by generating cinterop, I have found spm4Kmp plugin but wanted to know is there any internal support for the same.
p
It says in YT that this ticket is not planned. Is it not? It's rather important.
t
it is in
Open
state, so we may work on it at some point. But can't provide an exact dates 🙂
p
Thank you, we are starting to use KMP at a rather large scale at our company and we need to use consume an XCFramework from iosMain. The iOS devs want us to use SPM and it seems to be the best option but there's no official solution for this. What is the recommended approach to consume an XCFramework (it's objective-c) from Kotlin/Native on ios until there's official SPM support? Is it this one or using manual c-interop? We really don't want to include raw files in our project - we'd like to consume a github repo. Thanks again :)
t
@Timofey Solonin could answer to the question above? thank you color
t
Is it this one or using manual c-interop?
That's correct
p
Thank you 🙏