When I build Swift Export with Kotlin 2.5.0-Beta1 ...
# swift-export
d
When I build Swift Export with Kotlin 2.5.0-Beta1 I get Out of memory error Execution failed for task '✏️iosSimulatorArm64DebugSwiftExport'. > A failure occurred while executing org.jetbrains.kotlin.gradle.plugin.mpp.apple.swiftexport.internal.SwiftExportAction > Java heap space I tried to set the worker's heap to 4GB via reflection hack and the error has gone. After I set it back to 512MB the error back
a
Hello there! Thanks for the report, and for all the tickets you have filed recently. Do you have any more information on your project? Like, how many modules do you have, how many dependencies? The amount of api surface in those?
We have upped the memory limit to a 1GB and provided an arg to configure that field without usage of reflection -
kotlin.swift-export.jvmArgs
(name is not stable, please check the docs about the final name in the release) . If 1GB is not enough - please report 🙂
d
Thank you. Let me re-check on my project 🙂