Error while pulling in the native driver dependency for ios
See original GitHub issueThe import for NativeSqliteDriver
fails for me, more explicitly the whole com.squareup.sqldelight.drivers
package seems not visible in iosMain
. (It’s strange, other ios specific dependencies work well, also I can see that there is the native-driver.klib
pulled in which contains the NativeSqliteDriver
)
I’m using Kotlin 1.4.0
with SqlDelight 1.4.3
.
HMPP enabled:
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
iOS dependencies:
val iosMain by getting {
dependencies {
implementation(Versions.iOS.KTOR_CLIENT)
implementation(Versions.iOS.SQLITE_DRIVER)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
version {
strictly(Versions.COROUTINES_VERSION)
}
}
}
}
UPDATE: the issue seems to be with the way the iOS targets are configured
Using ios()
doesn’t work, while
if (System.getenv("SDK_NAME").orEmpty().startsWith("iphoneos")) {
iosArm64("ios")
} else {
iosX64("ios")
}
seems to work as expected
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error: Failed to install CocoaPods dependencies for iOS ...
I am getting this when trying to install React Native for MacOS. ... Error: Failed to install CocoaPods dependencies for iOS project, ...
Read more >Xcode 13 "Missing package product"… - Apple Developer
In my case on Xcode 13.1 , this issue get fixed after applying File -> Packages -> Reset Package Caches enjoy! Posted 1...
Read more >SPM unknown error reference not found when changing branch
In AppCode, click Tools -> Swift Package Manager -> Resolve Dependencies. Close and Re-open XCode. That's all it takes - at least for...
Read more >libimobiledevice · A cross-platform FOSS library written in C to ...
The library implements the native protocols needed to communicate with services running on iOS devices. Due to the reimplemention it does not depend...
Read more >Desired Capabilities - Appium
This set of Desired Capabilities expresses the desire for Appium to begin an automation session on an iPhone 7 simulator with iOS 11,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@martinbonnin: The compatibility metadata variant flag should be enabled to not break consumers who aren’t using HMPP. I’m not sure if the enableDependencyPropagation flag is needed though – it doesn’t seem to be used in any of the JB libraries and I know I had issues in my own library previously when I tried turning it on.
Tracking here: https://github.com/cashapp/sqldelight/issues/2044