Marko Novaković
08/04/2023, 9:40 AMCould not determine the dependencies of task ':shared:cinteropRevenueCatIosArm64'.
> Could not resolve all dependencies for configuration ':shared:iosArm64CInterop'.
> Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration ':shared:podDebugFrameworkIosFat' and [configuration ':shared:debugFrameworkIosFat'] contain identical attribute sets. Consider adding an additional attribute to one of the configurations to disambiguate them. Run the 'outgoingVariants' task for more details. For more information, please refer to <https://docs.gradle.org/8.2.1/userguide/upgrading_version_7.html#unique_attribute_sets> in the Gradle documentation.
and when I try to set some unique attributes, as per https://youtrack.jetbrains.com/issue/KT-55751, I get:
Configuration with name 'podDebugFrameworkIosFat' not found.
last comment on the linked issue is supposed to solve the problem but it doesn’t.
any help?mbonnin
08/04/2023, 9:42 AMMarko Novaković
08/04/2023, 9:42 AMkotlin {
androidTarget()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach { iosTarget ->
iosTarget.binaries {
framework {
baseName = "shared"
}
}
}
cocoapods {
version = "1.0.0"
summary = "Compose application framework"
homepage = "empty"
ios.deploymentTarget = "11.0"
podfile = project.file("../iosApp/Podfile")
pod("RevenueCat")
pod("Sentry", "~> 8.4.0")
}
...
}
Marko Novaković
08/04/2023, 9:43 AMmbonnin
08/04/2023, 9:45 AMMarko Novaković
08/04/2023, 9:45 AMmbonnin
08/04/2023, 9:47 AMwhen I try to set some unique attributes
There's always the trick of slapping everything in someCopy codeConfiguration with name 'podDebugFrameworkIosFat' not found.
afterEvaluate {}
blockmbonnin
08/04/2023, 9:47 AMMarko Novaković
08/04/2023, 9:48 AMmbonnin
08/04/2023, 9:49 AMafterEvaluate {
configurations.named("podDebugFrameworkIosFat").configure {
attributes {
// put a unique attribute
attribute(myAttribute, "pod-debug")
}
}
...
}
mbonnin
08/04/2023, 9:49 AMconfigurations.all {
if (name == "podDebugFrameworkIosFat") {
attributes {
// put a unique attribute
attribute(myAttribute, "pod-debug")
}
}
}
Marko Novaković
08/04/2023, 9:49 AMMarko Novaković
08/04/2023, 9:51 AMCould not determine the dependencies of task
errormbonnin
08/04/2023, 9:52 AMMarko Novaković
08/04/2023, 9:52 AMMarko Novaković
08/04/2023, 9:53 AMMarko Novaković
08/04/2023, 9:53 AMMarko Novaković
08/04/2023, 10:03 AMmbonnin
08/04/2023, 10:07 AMMarko Novaković
08/04/2023, 10:08 AMMarko Novaković
08/04/2023, 10:08 AMMarko Novaković
08/04/2023, 10:21 AMMarko Novaković
08/04/2023, 10:25 AMmbonnin
08/04/2023, 10:30 AM