Ryan Scott
01/06/2025, 8:22 PM/Users/ryan/.gradle/caches/modules-2/files-2.1/com.fsryan.foundation.data/foundation-data-cache-iossimulatorarm64/0.0.5/c60e36c7f98128055755c2a8cc08b706d01c396a/foundation-data-cache-iosSimulatorArm64Main-0.0.5 is cached (in /Users/ryan/.konan/kotlin-native-prebuilt-macos-aarch64-2.1.0/klib/cache/ios_simulator_arm64-gSTATIC-pl/com.fsryan.foundation.data:foundation-data-cache/wai8gb5v4e4c.15co47180oxmi/com.fsryan.foundation.data:foundation-data-cache-cache/bin/libcom.fsryan.foundation.data:foundation-data-cache-cache.a), but its dependency isn't: /Users/ryan/.gradle/caches/modules-2/files-2.1/com.fsryan.foundation.data/foundation-data-iossimulatorarm64/0.0.5/b31c720316d75262194102b48c9e82e1184d8054/foundation-data-iosSimulatorArm64Main-0.0.5
I've tried reading through https://slack-chats.kotlinlang.org/t/18860817/trying-to-update-to-kotlin-2-0-0-and-when-i-build-my-ios-app and https://youtrack.jetbrains.com/issue/KT-64086/kotlin-1.9.21-error-klib-is-cached-but-its-dependency-isnt, but I don't really understand the proposed changes.
I've deleted my gradle cache (~/.gradle/caches
) and rebuilt them. I've tried setting kotlin.native.cacheKind=none
in gradle.properties. I've tried preventing gradle from using the cache, but no matter what I do, I cannot seem to fix this issue. Can someone point me to some guidance on this?Ryan Scott
01/07/2025, 5:02 AMRyan Scott
01/07/2025, 5:28 AMRyan Scott
01/07/2025, 5:28 AMRyan Scott
01/07/2025, 5:29 AMlistOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "MyLibraryName"
isStatic = true
}
iosTarget.compilerOptions {
freeCompilerArgs.add("-Xbinary=bundleId=my.library.bundle.id")
freeCompilerArgs.add("-opt")
}
}
Ryan Scott
01/07/2025, 5:30 AMRyan Scott
01/07/2025, 5:31 AM