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

Several Errors related to macos version #8134

Open
cerupcat opened this issue Nov 20, 2024 · 1 comment
Open

Several Errors related to macos version #8134

cerupcat opened this issue Nov 20, 2024 · 1 comment
Labels

Comments

@cerupcat
Copy link

cerupcat commented Nov 20, 2024

I'm not sure if this is a bug or lack of knowledge, but I have a iOS project that is defined as a package. I want to generate documentation for the main target within that package.

At the top of the Package.swift we have:

    platforms: [
        .iOS(.v16),
    ],

However, when running:

swift package --allow-writing-to-directory ./docs generate-documentation --target MainApp --disable-indexing --transform-for-static-hosting --hosting-base-path MainApp --output-path ./docs

We see many errors related to macos version differences despite not trying to build macos documentation.

the library 'X' requires macos 10.13, but depends on the product 'Y' which requires macos 10.14; consider changing the library 'X' to require macos 10.14 or later, or the product 'Y' to require macos 10.13 or earlier.

Is there a way to specify not to build documentation for macos? We would expect the "platforms" definition in the Package file to be used to determine this.

@cerupcat cerupcat added the bug label Nov 20, 2024
@d-ronnqvist
Copy link

I don't think this is a bug in the plugin itself.

@d-ronnqvist d-ronnqvist transferred this issue from swiftlang/swift-docc-plugin Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants