Trying to update to Kotlin 2.0.0 and when I build ...
# multiplatform
t
Trying to update to Kotlin 2.0.0 and when I build my iOS app, getting this odd error:
Copy code
Showing Recent Issues
/Users/tylerwilson/.gradle/caches/modules-2/files-2.1/com.rickclephas.kmp/kmp-nativecoroutines-core-iosarm64/1.0.0-ALPHA-31/6f28f81ff9d3bd7604cf5c7829a5a60d7a3297a4/kmp-nativecoroutines-core is cached (in /Users/tylerwilson/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.0/klib/cache/ios_arm64-gSTATIC-pl/com.rickclephas.kmp:kmp-nativecoroutines-core/unspecified/2vfuliorv8tea.186a5xe3rdec2/com.rickclephas.kmp:kmp-nativecoroutines-core-cache/bin/libcom.rickclephas.kmp:kmp-nativecoroutines-core-cache.a), but its dependency isn't: /Users/tylerwilson/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.0/klib/common/stdlib
Has anybody seen something like this before? If so, any solutions? I am using the standard ./gradlew :embedAndSignAppleFrameworkForXcode Run Script. Thank you!
I did try deleting my ~/.gradle/caches dir, but still have the same issue.
So I found the issue I was having. It is caused by my setting the memory allocator to the mimalloc version, like so:
Copy code
// see if this helps with the gc/mem issues
        this.compilations.configureEach {
            compilerOptions.configure {
                freeCompilerArgs.add("-Xallocator=mimalloc")
            }
        }
this was needed for us in 1.9.x due to the GC algorithm killing our apps performance. Hopefully 2.0.0 is better behaved in this regard. But not that I can build again, I will be testing it.
o
Hello Tyler, I also had the same issue and when I add "-opt" to the freeArgs it compiles without error for me
👍 1
Untitled
also compilerOptions are deprecated in 2.0.0 so I've changed code to this version to avoid warnings
142 Views