Stanislav Radchenko
05/21/2025, 4:02 PM:composeApp:compileKotlinIosSimulatorArm64.
Instead of generating a .klib file at:
compose App/build/classes/kotlin/ios Simulator Arm64/main/lib/compose App
the build consistently creates a directory named composeApp/ (inside it there’s a default/ folder and other files). As a result, the build fails with:
java.io.FileNotFoundException: ...compose App (Is a directory)
- kotlin: 2.1.21, cmp: 1.7.3
Has anyone seen this behavior where a .klib is expected but a directory is created instead? Any ideas what might be causing this or how to debug it further?
Appreciate any pointers 🙏tapchicoma
05/21/2025, 4:05 PMStanislav Radchenko
05/21/2025, 4:07 PM❌ /.../composeApp/build/classes/kotlin/iosSimulatorArm64/main/klib/composeApp (Is a directory)
❌ /.../composeApp/build/classes/kotlin/iosSimulatorArm64/main/klib/composeApp (Is a directory)
[Incubating] Problems report is available at: file:///.../build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':composeApp:compileKotlinIosSimulatorArm64'.
> java.io.FileNotFoundException: /.../composeApp/build/classes/kotlin/iosSimulatorArm64/main/klib/composeApp (Is a directory)
tapchicoma
05/21/2025, 4:10 PMStanislav Radchenko
05/21/2025, 4:12 PMtapchicoma
05/21/2025, 4:24 PM--stacktrace
to Gradle invocation and share the produced stacktrace?tapchicoma
05/21/2025, 6:23 PMorg.gradle.logging.stacktrace=always
Stanislav Radchenko
05/22/2025, 7:13 AMtapchicoma
05/22/2025, 7:34 AMCaused by: java.io.FileNotFoundException: /Users/radchenko/AndroidStudioProjects/Effective-Office/composeApp/build/classes/kotlin/iosSimulatorArm64/main/klib/composeApp (Is a directory)
at dev.icerock.gradle.utils.ZipUtilsKt.unzipTo(ZipUtils.kt:14)
at dev.icerock.gradle.actions.apple.PackAppleResourcesToKLibAction.execute(PackAppleResourcesToKLibAction.kt:50)
at dev.icerock.gradle.actions.apple.PackAppleResourcesToKLibAction.execute(PackAppleResourcesToKLibAction.kt:19)
tapchicoma
05/22/2025, 7:35 AMmoko-resources
to 0.24.5
release: https://github.com/icerockdev/moko-resources/releases/tag/release%2F0.24.5Stanislav Radchenko
05/22/2025, 8:34 AM