You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we cannot specify the build platform for swift-docc-plugin. This means that the generate-documentation command only generates documentation for macOS. We hope that in the future there can be a -platform flag to allow document generation for a specific platform.
Checklist
If possible, I've reproduced the issue using the main branch of this package.
There can be a -platform flag to allow document generation for a specific platform. For example, we can generate documents for iOS platform or tvOS platform.
Actual behavior
The generate-documentation command only generates documentation for macOS.
Steps to Reproduce
Run swift package generate-documentation, it is no possible to specify the platform information.
Swift-DocC Plugin Version Information
Swift-DocC plugin version: 5f2e247
Swift Compiler version:
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.2 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
The text was updated successfully, but these errors were encountered:
It is possible to provide a --destination to swift build only compiling for a specific platform. I am wondering whether it would be possible to add this to swift package generate-documentation as well, simply passing the destination to swift build?
Currently we cannot specify the build platform for
swift-docc-plugin
. This means that thegenerate-documentation
command only generates documentation formacOS
. We hope that in the future there can be a-platform
flag to allow document generation for a specific platform.Checklist
main
branch of this package.Expected behavior
There can be a
-platform
flag to allow document generation for a specific platform. For example, we can generate documents foriOS
platform ortvOS
platform.Actual behavior
The
generate-documentation
command only generates documentation formacOS
.Steps to Reproduce
Run
swift package generate-documentation
, it is no possible to specify the platform information.Swift-DocC Plugin Version Information
Swift-DocC plugin version: 5f2e247
Swift Compiler version:
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.2 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
The text was updated successfully, but these errors were encountered: