Hi everyone, I was trying to build a KMP library (...
# multiplatform
r
Hi everyone, I was trying to build a KMP library (not using compose) and wanted to use some resources in my
nativeMain
code. However, the files in the resources directory do not get exported with the iOS framework using
./gradlew iosX64Binaries
or cocoapods. I tried adding
sourceSets["commonMain"].resources.srcDir(".../commonMain/resources")
and
sourceSets["iosMain"].resources.srcDir(".../commonMain/resources")
in the kotlin block of
build.gradle.kts
file, but this didn't work either. Do we have any official way of handling resources in KMP for iOS, or is copying the resources the only workaround possible at the moment?