Ahmed Riyadh
01/07/2024, 11:17 AMCalculating task graph as no configuration cache is available for tasks: sharedembedAndSignAppleFrameworkForXcode
Type-safe project accessors is an incubating feature.
13 problems were found storing the configuration cache, 5 of which seem unique.
- Taskof type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: cannot serialize object of type 'org.gradle.api.DefaultTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.:shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:task_access
- Taskof type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: cannot serialize object of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfiguration', a subtype of 'org.gradle.api.artifacts.Configuration', as these are not supported with the configuration cache.:shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Taskof type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: cannot serialize object of type 'org.gradle.api.internal.file.DefaultSourceDirectorySet', a subtype of 'org.gradle.api.file.SourceDirectorySet', as these are not supported with the configuration cache.:shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Taskof type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.:shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Taskof type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: cannot serialize object of type 'org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.:shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:task_access
See the complete report at file:///Users/ellet/AndroidStudioProjects/KMPBasics/build/reports/configuration-cache/7daeenlf1vm9ffwt2vs2m657i/2d1ajit7k8j7851zkompucq7y/configuration-cache-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache state could not be cached: fieldofapiConfiguration
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.DefaultKotlinCompilationConfigurationsContainer
ofdependencyConfigurations
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl$Params
ofparams
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl
of$$delegate_0
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.KotlinCommonCompilation
ofunderlying
bean found in fieldorg.jetbrains.kotlin.gradle.utils.MutableObservableSetImpl
ofcompilations
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet
ofvalue
bean found in fieldorg.jetbrains.kotlin.tooling.core.Extras$Entry
ofextras
bean found in fieldorg.jetbrains.kotlin.tooling.core.MutableExtrasImpl
ofextras
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.KotlinCompilationImpl
of$$delegate_0
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.KotlinSharedNativeCompilation
ofmap
bean found in fieldorg.gradle.api.internal.DefaultNamedDomainObjectCollection$UnfilteredIndex
ofindex
bean found in fieldorg.gradle.api.internal.FactoryNamedDomainObjectContainer
ofcompilations
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.KotlinMetadataTarget
ofmetadataTarget
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.KotlinVariantWithMetadataVariant
ofelement
bean found in fieldjava.util.Collections$SingletonSet
ofvalue
bean found in fieldkotlin.InitializedLazyImpl
ofkotlinComponents$delegate
bean found in fieldorg.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithSimulatorTests
oftarget
bean found in fieldco.touchlab.skie.plugin.util.SkieTarget$TargetBinary
of task__target__
of type `co.touchlab.skie.plugin.coroutines.ConfigureMinOsVersionTask`: error writing value of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfiguration':shared:skieConfigureMinOsVersionDebugFrameworkIosSimulatorArm64
> Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false'.
Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'metadataCompilationApi' should be resolved.Hi, have any of you face such issue when building the iOS app in KMP
Filip DolnĂk
01/07/2024, 11:19 AMAhmed Riyadh
01/07/2024, 11:20 AMAhmed Riyadh
01/07/2024, 11:21 AMAhmed Riyadh
01/07/2024, 11:21 AMorg.gradle.caching=true
org.gradle.configuration-cache=true
Does disabling it make the build much slower?Filip DolnĂk
01/07/2024, 11:30 AMFilip DolnĂk
01/07/2024, 11:30 AMorg.gradle.configuration-cache=true
(the other caching should work fine)Ahmed Riyadh
01/07/2024, 11:30 AMFilip DolnĂk
01/07/2024, 11:31 AMAhmed Riyadh
01/07/2024, 11:31 AMFilip DolnĂk
01/07/2024, 11:32 AMAhmed Riyadh
01/07/2024, 11:32 AM