While I try to publish my KMP project, I got "Compilation failed: Java heap space" error on Archive task in Xcode.
> Task :composeApp:linkReleaseFrameworkIosArm64 FAILED
error: Compilation failed: Java heap space
* Source files:
* Compiler version: 1.9.22
* Output kind: FRAMEWORK
error: java.lang.OutOfMemoryError: Java heap space
> Task :composeApp:linkReleaseFrameworkIosArm64 FAILED
error: Compilation finished with errors
I can publish app on Android side but not on Apple side.
With changing heapsize as org.gradle.jvmargs=-Xmx8192M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx8192M" on gradle.properties solved the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With