hello, Has anyone experienced a similar situation?...
# compose-ios
h
hello, Has anyone experienced a similar situation? I was using kotlin "2.0.21" and composemultiplatform "1.7.1", then I upgraded to kotlin "2.1.10" cmp "1.7.3" and there is no problem on android side, i have a problem on ios side there is no problem on debug build, but I can't build release. +) I upgraded xcode to the latest version.
l
Maybe it is this? https://youtrack.jetbrains.com/issue/KT-70202/Xcode-16-Linker-fails-with-SIGBUS Anyway it's better if you would post your specific error message from XCode build log.
h
@Lukáš Kúšik thankyou error message is -> error: Compilation failed: Java heap space * Source files: * Compiler version: 2.1.10 * Output kind: FRAMEWORK error: java.lang.OutOfMemoryError: Java heap space > Task featuremain:linkReleaseFrameworkIosArm64 FAILED error: Compilation finished with errors error: Compilation finished with errors
i googled and i change vmargs=-Xmx2048M to vmargs=-Xmx4096M in gradle.properties -> now I don't get any error messages, but the build doesn't finish and keeps getting stuck.
I tried to release build a new project (kotlin 2.1.0, cmp 1.7.0) with kmp wizard and it worked fine. I don't think it's a problem with xcode, it's a problem with kotlin or cmp version or my project has a different problem. I'll check it out right away.
I uploaded the version kmp wizard project (Kotlin 2.1.10 / cmp 1.7.3) is running fine in release build, so I think there is something else wrong with my project.
I don't know why debug builds work fine but still the problem only appears in release builds
스크린샷 2025-02-20 오후 7.26.29.png
l
is there another error somewhere else in the log?
h
@Lukáš Kúšik When I was about to give up, I raised my memory to 4096 and waited for a long time, and the release build was successful. There are about 20 modules, but I didn‘t know that the ios release build would take longer I added just one more feature module. I'm embarrassed because this is the first time. I think it's because I added the iosmain logic web view. Anyway, the problem has been solved. The error log was accurate. Thank you!
🎉 1