darkmoon_uk
06/19/2024, 11:50 AMsharedLib
and klib
publishing (which works ✅*)*
It it still unsupported to build a sharedLib
binary for iOS to provide public @Composable
functions? 🤔
This would mean we can't have K Compose/iOS Component libraries - pretty vanilla requirement don't you think? 🤯
Whenever I try I get the dreaded No file for
error (as discussed here two years ago), e.g:
Compilation failed: No file for org.chrishatton.timeline.presentation.view/TimelineView|TimelineView(){}[0]
...I'm using Kotlin 2.0.0
with Compose Multiplatform 1.6.10
.
Tried a number of things including disabling cache, but no dice 🤷Ivan Matkov
06/19/2024, 11:57 AMdarkmoon_uk
06/19/2024, 12:02 PMsharedLib
binary definition with being able to publish klib
Maven artifact.darkmoon_uk
06/19/2024, 12:03 PMdylib
output I now realise; binaries { sharedLib {} }
can be removed and I can still build & publish iOS Maven Artifacts.Oleksandr Karpovich [JB]
06/19/2024, 12:04 PMdarkmoon_uk
06/19/2024, 12:05 PM@Composable fun TimelineView(): Unit {}
but still got the error with binaries { sharedLib {} }
present.darkmoon_uk
06/19/2024, 12:06 PMNo File
error still strikes me as a rough edge; a nice warning like "Publishing public @Composable functions is unsupported for iOS native .dylib or .framework binaries" would be less confusing, if possible 🙂