Hello, my iOS team at work plans to switch to Swif...
# kotlin-native
g
Hello, my iOS team at work plans to switch to Swift Package Manager, is K/N compatible with this? We built a Kotlin multiplatform project that outputs an obj-C . Framework so I don't know if Swift Package Manager is only for Swift code or also Obj-C. Does someone know or have experience with Swift Package Manager?
b
SwiftPM doesn't support vendored frameworks yet, so you can't setup a package.swift that points at a binary framework
That's really what you'd need. Also a pretty good reason not to switch yet, since it's hard to say you won't ever need that (i.e. won't ever need to integrate a closed source framework until next wwdc or whenever apple decides to add it)
From the CocoaPods slack:
Just spoke with one of the swiftPM engineers … I was asking for support for vendored frameworks in swift PM and they don’t have that yet. I also asked if they thought about 3rd level dependency resolution for a project using cocoapods and swift pm, say for 2 libraries that depend on Alamo fire that could be compatible but because of the 2 different dep resolution landing in incompatibily, he made a note but essentially it’d be manual resolution if we ever fall into that case
Basically, still too many gaps imo, unless you have a really green project
s
I thought I remembered hearing them announce that at WWDC this year but I can't find anything about it in the slides. Do you know if it is something that will be released before the summer beta cycle ends?
b
They improved it a lot, and now it has real Xcode integration. I believe it still only supports source packages though
g
Amazing info thank you Ben