Uli Niggemann
05/12/2023, 12:18 PMpod("AFNetworking") {
version = "~> 4.0.1"
}
pod("CouchbaseLite-Enterprise") {
version = "~> 3.1.0"
}
Couchbase, on the other hand, is not found.
We have already tried everything like xcFramework-linking, interopt-compiler-arguments,... but slowly we run out of ideas.
And I have the feeling that we are missing something - do any of you have any ideas? (i evaluated the whole thing once in a test project, which can be found here: https://github.com/niggeulimann/kmp_podDependency/tree/develop)
Thanks for ideas and suggestions!a-dd
05/12/2023, 12:28 PMmoduleName = "CouchbaseLite"?
https://kotlinlang.org/docs/native-cocoapods.html#module-not-foundUli Niggemann
05/12/2023, 12:29 PMa-dd
05/12/2023, 12:30 PMUli Niggemann
05/12/2023, 12:32 PMw: Kotlin Multiplatform <-> Android Gradle Plugin compatibility issue: The applied Android Gradle Plugin version (8.0.1) is higher than the maximum known to the Kotlin Gradle Plugin. Tooling stability in such configuration isn't tested, please report encountered issues to kotl.in/issue
Minimum supported Android Gradle Plugin version: 4.1
Maximum tested Android Gradle Plugin version: 7.4
To suppress this message add kotlin.mpp.androidGradlePluginCompatibility.nowarn=true to your gradle.properties
But I already tried to downgrade successUli Niggemann
05/12/2023, 12:34 PM> Task :shared:generateDefAFNetworking
> Task :shared:generateDummyFramework
> Task :shared:podspec UP-TO-DATE
> Task :shared:podGenIOS
> Task :shared:podSetupBuildAFNetworkingIphonesimulator
> Task :shared:podBuildAFNetworkingIphonesimulator
> Task :shared:cinteropAFNetworkingIosSimulatorArm64
> Task :shared:generateDefCouchbaseLite
> Task :shared:podSetupBuildCouchbaseLite-EnterpriseIphonesimulator
> Task :shared:podBuildCouchbaseLite-EnterpriseIphonesimulator
> Task :shared:cinteropCouchbaseLiteIosSimulatorArm64 UP-TO-DATEUli Niggemann
05/12/2023, 12:35 PMUli Niggemann
05/12/2023, 12:40 PMribesg
05/12/2023, 1:06 PMribesg
05/12/2023, 1:08 PMa-dd
05/12/2023, 1:11 PMeverything else seems to work
Task sharedcinteropCouchbaseLiteIosSimulatorArm64 UP-TO-DATECan you please run
./gradlew :shared:cinteropCouchbaseLiteIosSimulatorArm64 --rerun-tasks? UP-TO-DATE status may hide some useful infoUli Niggemann
05/12/2023, 1:12 PM> Task :shared:cinteropCouchbaseLiteIosSimulatorArm64
Exception in thread "main" java.lang.IllegalArgumentException: 'CBLQueryMeta' is going to be declared twice
at org.jetbrains.kotlin.native.interop.gen.KotlinFile.<init>(KotlinCodeModel.kt:257)
at org.jetbrains.kotlin.native.interop.gen.StubIrBridgeBuilder$kotlinFile$1.<init>(StubIrBridgeBuilder.kt:44)
at org.jetbrains.kotlin.native.interop.gen.StubIrBridgeBuilder.<init>(StubIrBridgeBuilder.kt:44)
at org.jetbrains.kotlin.native.interop.gen.StubIrDriver.run(StubIrDriver.kt:128)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:342)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:219)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:80)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:40)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:62)
> Task :shared:cinteropCouchbaseLiteIosSimulatorArm64 FAILEDUli Niggemann
05/12/2023, 1:16 PMUli Niggemann
05/12/2023, 1:16 PMribesg
05/12/2023, 1:16 PMUli Niggemann
05/12/2023, 1:20 PMkotlin {
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>().all {
compilations["main"].cinterops["CouchbaseLite"].extraOpts("-compiler-option", "-DCBLQueryMeta=CBLQueryMetaUnavailable")
}
}
I got a successful build with ./gradlew :shared:cinteropCouchbaseLiteIosSimulatorArm64 --rerun-tasksUli Niggemann
05/12/2023, 1:21 PM> Task :shared:compileKotlinIosSimulatorArm64 FAILED
e: file:///Users/niggeulimann/work/customers/getslash/KotlinPlayground/PodTestApp/shared/src/iosMain/kotlin/de/getslash/pos_mobile/podtestapp/Platform.kt:5:18 Unresolved reference: CouchbaseLite
FAILURE: Build failed with an exception.a-dd
05/12/2023, 1:25 PMCouchbaseLite_Enterprise, same as pod namea-dd
05/12/2023, 1:27 PMpackageName = "cocoapods.CouchbaseLite" to pod declaration to make original package workUli Niggemann
05/12/2023, 1:31 PMpod("CouchbaseLite-Enterprise") {
moduleName = "CouchbaseLite"
packageName = "cocoapods.CouchbaseLite"
version = "~> 3.1.0"
}a-dd
05/12/2023, 1:31 PMUli Niggemann
05/12/2023, 1:33 PMUli Niggemann
05/12/2023, 1:34 PMa-dd
05/12/2023, 1:56 PMUli Niggemann
05/12/2023, 2:00 PMTask :shared:cinteropCouchbaseLiteIosSimulatorArm64 UP-TO-DATE
is kind of misleading in that case
Task :shared:cinteropCouchbaseLiteIosSimulatorArm64 STILL_BROKEN
would be nice 😉Uli Niggemann
05/12/2023, 2:02 PMa-dd
05/12/2023, 2:06 PMUli Niggemann
05/12/2023, 2:08 PMJeff Lockhart
05/24/2023, 8:03 PMClassNameMeta class for every class, it causes conflicts if there's already a class named both Foo and FooMeta. While the workaround in the YouTrack issue works, the only drawback is the class isn't usable from Kotlin.