I don’t think that it’s the same problem, because my preview diagnostics output is different (and even less helpful):
RemoteHumanReadableError: Failed to update preview.
The preview process appears to have crashed.
Error encountered when sending 'previewInstances' message to agent.
==================================
| RemoteHumanReadableError: The operation couldn't be completed. (BSServiceConnectionErrorDomain error 3.)
|
| BSServiceConnectionErrorDomain (3):
| ==BSErrorCodeDescription: OperationFailed
Nevertheless, I tried one of the suggested solutions, which was using the following settings in my “shared” gradle file:
kotlin {
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
binaries.withType<org.jetbrains.kotlin.gradle.plugin.mpp.Framework> {
isStatic = false
}
}
}
However, I did not get this to compile with this setting enabled, Xcode could not find the shared library at all anymore. I tried setting the framework search paths to $(inherited), but no luck. 😕