Can anyone help with below error while generating ...
# multiplatform
r
Can anyone help with below error while generating swift package using KMP for xcode project.
Copy code
praful@Prafuls-MacBook-Pro FirstSDK % ./gradlew createSwiftPackage
Calculating task graph as no configuration cache is available for tasks: createSwiftPackage
Type-safe project accessors is an incubating feature.

> Task :shared:createXCFramework
xcframework successfully written out to: /Users/praful/Desktop/tutorial/FirstSDK/shared/swiftpackage/shared.xcframework

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

7 problems were found storing the configuration cache, 4 of which seem unique.
- Task `:shared:createSwiftPackage` of type `org.gradle.api.DefaultTask`: 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.
  See <https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types>
- Task `:shared:createSwiftPackage` of type `org.gradle.api.DefaultTask`: invocation of 'Task.project' at execution time is unsupported.
  See <https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution>
- Task `:shared:linkReleaseFrameworkIosArm64` of type `org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink`: invocation of 'Task.project' at execution time is unsupported.
  See <https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution>
- Task `:shared:linkReleaseFrameworkIosX64` of type `org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink`: invocation of 'Task.project' at execution time is unsupported.
  See <https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution>

See the complete report at file:///Users/praful/Desktop/tutorial/FirstSDK/build/reports/configuration-cache/1wgovadyr3o62bp2v0fjuij39/6u9rgu2j764nm83vv1uxqn7nm/configuration-cache-report.html
> Invocation of 'Task.project' by task ':shared:linkReleaseFrameworkIosArm64' at execution time is unsupported.
> Invocation of 'Task.project' by task ':shared:linkReleaseFrameworkIosX64' at execution time is unsupported.
> Invocation of 'Task.project' by task ':shared:createSwiftPackage' at execution time is unsupported.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

BUILD FAILED in 6s
j
I'd try to clean & build again; if it does not help, then disable the configuration cache (see the links that that are listed in your failure log how to do that).
a
Actually I was just gonna ask about SPM status 😄 from this article it mentions that this plugin is no longer maintained workaround fork https://github.com/ge-org/multiplatform-swiftpackage/pull/41#issuecomment-1170081817 might be not related to your issue , but worth pointing