Are there no solution to Swift UI preview failures...
# multiplatform
s
Are there no solution to Swift UI preview failures with KMM ? 😞 I am exporting iOS framework from KMM library using (SPM via KMMBridge) that is using
Ktor
and
sqldelight
On storyboard it works as expected, Swift UI preview remains broken. I have gone through all the related reported issues, all of them require to make the framework
dynamic
and i have done so by adding all of the possible things
Copy code
cocoapods {
        summary = "Some description for the Shared Module"
        homepage = "Link to the Shared Module homepage"
        version = "1.0"
        ios.deploymentTarget = "14.1"
        framework {
            baseName = "shared"
            isStatic = false
        }
    }

 targets.filterIsInstance<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>()
            .forEach {
                it.binaries.filterIsInstance<org.jetbrains.kotlin.gradle.plugin.mpp.Framework>()
                    .forEach { lib ->
                        lib.isStatic = false
                        lib.linkerOpts.add("-lsqlite3")
                    }
            }
Yet my swift-UI preview fails
Copy code
HumanReadableSwiftError
    
    SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x00006000005a18c0):'shared'>)