Alen Kirm
02/03/2022, 4:43 PMshared
kotlin module, which generates umbrella framework for iOS with all common Kotlin modules. For this example lets say moduleA
.
Inside shared
build.gradle.kts script, I export it as XCFramework with export(project(":moduleA"))
and transitiveExport = true
. I also add this as dependency into commonMain source set as api(project(":moduleA"))
.
The issue is, once I set transitiveExport
to true
, I get an error when trying to create a XCFramework by ./gradlew shared:assembleXCFramework
.
Error:
Task :shared:linkDebugFrameworkIosArm64 FAILED
w: Interop library <path>./gradle/caches/modules-2/files-2.1/io.ktor/ktor-network-iosarm64/1.6.7/197cf3638f7acda0b6329e0d52520e98a0eddd3f/ktor-network-cinterop-network can't be exported with -Xexport-library
w: Interop library <path>./gradle/caches/modules-2/files-2.1/io.ktor/ktor-utils-iosarm64/1.6.7/2549a644d080844b6710c9c788b44c47080758bc/ktor-utils-cinterop-utils can't be exported with -Xexport-library
w: Interop library <path>./gradle/caches/modules-2/files-2.1/io.ktor/ktor-io-iosarm64/1.6.7/b0235dcd06c1325d526719b1542fa47de34e8c16/ktor-io-cinterop-bits can't be exported with -Xexport-library
w: Interop library <path>./gradle/caches/modules-2/files-2.1/io.ktor/ktor-io-iosarm64/1.6.7/8f8184f949f45e78c999489d5ba3cf2080364130/ktor-io-cinterop-sockets can't be exported with -Xexport-library
w: Interop library <path>./gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iosarm64/0.17.0/93ba3f6a1f91ec9d7caf7b046a4fbfbdce88bb5c/atomicfu-cinterop-interop can't be exported with -Xexport-library
e: Compilation failed: IrClassPublicSymbolImpl for io.ktor.network.sockets/SocketTimeoutException|null[0] is already bound: CLASS CLASS name:SocketTimeoutException modality:FINAL visibility:public superTypes:[io.ktor.utils.io.errors.IOException]
* Source files:
* Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10
* Output kind: FRAMEWORK
Any idea? 😞