Skip to content

Building only xcframework without swifttools #30

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

Open
vdelricco opened this issue Mar 17, 2021 · 0 comments
Open

Building only xcframework without swifttools #30

vdelricco opened this issue Mar 17, 2021 · 0 comments

Comments

@vdelricco
Copy link

Hi there! Great library, thank you for taking the time to start it.

For my use case, I'm only interested in generating xcframeworks.

This means that when setting up the plugin, I'm required to include configuration for swift packages, even though I don't build them.

In other words, in my Gradle file, I need to include the following lines:

multiplatformSwiftPackage {
   . . .
    swiftToolsVersion("5.3")
    targetPlatforms {
        iOS { v("13") }
    }
}

But really, I'm only interested in the createXCFramework / createZipFile tasks.

If I remove these lines and run the createXCFramework task, I receive the following error:

> Could not create task ':lib:createXCFramework'.
   > * Swift tools version is missing.
       Declare it by adding your Swift version to the plugin configuration block.

     * Target platforms are missing.
       Declare at least one platform by adding it to the plugin configuration block.

In theory, could these tasks exist without defining those configuration lines?
If so, I would be willing to take a stab at implementing that change 😄

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