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 · 4 comments
Open

Several Errors related to macos version #8134

cerupcat opened this issue Nov 20, 2024 · 4 comments
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
@dschaefer2
Copy link
Member

Do you not get the same errors when building this package?

@cerupcat
Copy link
Author

cerupcat commented Dec 9, 2024

Do you not get the same errors when building this package?

No, we don't get the same errors when just building our app using the Package.swift file.

@dschaefer2
Copy link
Member

OK. Thanks. I need to learn what the generate-documentation command does that's different from a simple package resolution.

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

3 participants