Closed Dardev12 closed 9 months ago
I have a similar issue, not the same "can not find" but downgrading to 2.0.0 fixes for me. Lemme post stack in a bit
If somebody can produce a repro sample project (or have something open source), that'll help considerably. I am using this version without issue on some of our projects, so finding a repro might take a fair bit of time.
I have a similar issue, not the same "can not find" but downgrading to 2.0.0 fixes for me. Lemme post stack in a bit
@chrisjenx I have try to downgrading to 2.0.0 but i got the same error : e: Could not find "/Users/darren/.gradle/caches/modules-2/files-2.1/app.cash.sqldelight/runtime-iosarm64/2.0.1/4bc07c023bb5d5d5111ed22c264fd77912fdd9b3/runtime.klib" in [/Users/darren/Documents/GitHub/LAND-APP-MOBILE/Land/iosLandApp/Pods, /Users/darren/.konan/klib, /Users/darren/.konan/kotlin-native-prebuilt-macos-aarch64-1.8.10/klib/common, /Users/darren/.konan/kotlin-native-prebuilt-macos-aarch64-1.8.10/klib/platform/ios_arm64]
From the error:
...files-2.1/app.cash.sqldelight/runtime-iosarm64/2.0.1/...
That says 2.0.1
, so either you didn't "downgrade", or a different dependency is pulling in 2.0.1
.
Also note:
/Users/darren/.konan/kotlin-native-prebuilt-macos-aarch64-1.8.10/klib/platform/ios_arm64
kotlin-native-prebuilt-macos-aarch64-1.8.10
suggests you're using Kotlin 1.8.10
, although it says above 1.9.21
.
Again, if you can make an accessible project that reproduces your issue, it'll be much easier to comment on further.
srcDirs.setFrom("src/commonMain/sqldelight")
Good i have create a repo for my setup with sqldelight the link : https://github.com/LAND-Projet/LandSqlDelight @kpgalligan
@Dardev12 I tried your project and it seems to work fine. Added sqldelight to the version catalog, and added some code to hit the db from iOS. Otherwise, I didn't change anything with the config that would cause or fix the original issue you reported.
> Task :shared:database:compileKotlinIosSimulatorArm64
> Task :application:shared:compileKotlinIosSimulatorArm64 FAILED
error: Could not find "co.touchlab:stately-common" in [/Users/chrisjenkins/git/kmm/application/iosApp/Pods, /Users/chrisjenkins/.konan/klib, /Users/chrisjenkins/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/chrisjenkins/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_simulator_arm64]
error: Compilation finished with errors
Might be related or not, can create a new ticket, looks like a pod isn't getting propagated correctly? Works if I downgrade.
Oh mine was a simple fix:
iosMain {
dependencies {
implementation("co.touchlab:stately-common:2.0.6")
implementation("app.cash.sqldelight:native-driver:$sqldelightVersion")
}
}
My SQLDelight Impl is in side a library kmm module, wondering if the transistive dependency isn't being pulled down. Hopefully someone else has an issue they will see this comment for fix
@chrisjenx https://github.com/cashapp/sqldelight/issues/4357
It's likely something else is expecting the older Stately. Koin being the obvious one. Your change is the workaround needed.
@Dardev12 I tried your project and it seems to work fine. Added sqldelight to the version catalog, and added some code to hit the db from iOS. Otherwise, I didn't change anything with the config that would cause or fix the original issue you reported.
Weird because for me when i run it and i get an error again.
Can you share me the version you use for gradle,kotlin and your kdoctor setup ?
Gradle and Kotlin are in the repo:
Kdoctor output
Environment diagnose (to see all details, use -v option):
[✓] Operation System
[✓] Java
[✓] Android Studio
[✓] Xcode
[✓] CocoaPods
Conclusion:
✓ Your operation system is ready for Kotlin Multiplatform Mobile Development!
Good Everything work for me now. My setup is clean ✅ Thank you for the support 😃 I will close this ticket
SQLDelight Version
2.0.1
Operating System
MacOs
Gradle Version
8.2.0
Kotlin Version
1.9.21
Dialect
?
AGP Version
No response
Describe the Bug
In my KMM project this error appear in the 2.0.1 version when i try to launch my IOS app :
I have try the solution provide in this issue but it doesn't work for me : https://github.com/cashapp/sqldelight/issues/1619
The Log:
Stacktrace
No response
Gradle Build Script