You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bundleSearcher cinterop klib "can't be exported with -Xexport-library" warning when exporting resources from an iOS framework #900
Linking an iOS framework that exports moko-resources prints a warning for its bundleSearchercinterop klib:
warning: Interop library ~/.gradle/caches/modules-2/files-2.1/dev.icerock.moko/resources-iossimulatorarm64/0.27.1/.../resources-iosSimulatorArm64Cinterop-bundleSearcherMain-0.27.1.klib can't be exported with -Xexport-library
It appears on every framework link (linkDebugFrameworkIosSimulatorArm64, linkReleaseFrameworkIosArm64, ...). The build and the app work; the warning is just noise.
The export is needed so Swift can use moko's resource types (StringResource, ImageResource, desc(), etc.). Exporting the library also exports its cinterop klib, which Kotlin/Native can't re-export.
#414 reported the same warning for an earlier cinterop library (pluralizedString), which went away when 0.21.0 removed that cinterop. bundleSearcher seems to have brought it back.
Could the bundleSearcher interop be kept out of what export() picks up (or folded into the main klib), so exporting moko-resources doesn't warn?
Activity