question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while pulling in the native driver dependency for ios

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
erikc5000commented, Oct 5, 2020

@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.

1reaction
AlecStrongcommented, Apr 23, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found