Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift code does not generating when calling kSwift{moduleName}Podspec task #91

Open
Pschsch opened this issue Sep 1, 2023 · 0 comments

Comments

@Pschsch
Copy link

Pschsch commented Sep 1, 2023

According to plugin code, it adds action to the link task responsible for swift code generation

linkTask.doLast(PostProcessLinkTask(framework, processor, kSwiftExtension))

Then, registering a task, which is responsible for podspec generation and also depend on link task

project.tasks.create(podspecTaskName, KSwiftPodspecTask::class) {
            it.linkTask = linkTask
            it.kSwiftExtension = kSwiftExtension
            it.dependsOn(linkTask)
        }

But if I call kSwift{moduleName}Podspec task directly on macOS system, there are no generated swift files. To generate it, i should manually call syncFramework task with the declared parameters like in the shared module podspec's buildscript. Is that expected behavior or maybe am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant