Nacho Ruiz Martin
11/08/2023, 9:12 AMa-dd
11/08/2023, 11:13 AMnoPodspec()
option: https://kotlinlang.org/docs/native-cocoapods-dsl-reference.html#cocoapods-blockNacho Ruiz Martin
11/08/2023, 11:36 AMJeff Lockhart
11/08/2023, 5:48 PMorg.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':lib:podGenIos' (type 'PodGenTask').
- In plugin 'org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin' type 'org.jetbrains.kotlin.gradle.targets.native.tasks.PodGenTask' property 'podspec$kotlin_gradle_plugin_common' specifies file '.../project/lib/lib.podspec' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the file exists before the task is called.
2. Make sure that the task which produces the file is declared as an input.
So I've opted to just add the .podspec files to .gitignore and let them be generated even though I don't need them (my project is a KMP library, not directly consumed by an iOS app).
I have a couple modules that generate Kotlin-Objective-C interop and others that use linkOnly
to only link the binary and the error occurs for both. What are the requirements for when the .podspec is needed and when can noPodspec()
be safely used?Nacho Ruiz Martin
11/08/2023, 5:55 PMa-dd
11/08/2023, 7:21 PMJeff Lockhart
11/08/2023, 7:42 PM