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
If a target has a dependency on binaryTarget. Then the call of PackageManager.getSymbolGraph to that target will get a directory contains no symbol graph.
It will break PackageManager.getSymbolGraph's client such as swift-docc-plugin.
The downstream user can generate doc using swift build and call docc convert to generate documentation. But if they migrate to swift-docc-plugin or swift-docc-plugin based service like SwiftPackageIndex, the documentation build will fail.
"<unknown>:0: error: missing required module \'MMKV\'\nError: Failed to load the module \'DemoKit\'. Are you missing build dependencies or include/framework directories?\nSee the previous error messages for details. Aborting.\n"
Steps to Reproduce
Download the following DemoKit.zip package
Run swift package generate-documentation --target DemoKit --verbose and no documentation will be created.
Kyle-Ye
changed the title
Support issue with target which have binaryTarget dependency
Issue with target which have binaryTarget dependency
May 18, 2024
Due to an upstream SwiftPM issue.
If a target has a dependency on binaryTarget. Then the call of PackageManager.getSymbolGraph to that target will get a directory contains no symbol graph.
It will break PackageManager.getSymbolGraph's client such as swift-docc-plugin.
The downstream user can generate doc using swift build and call docc convert to generate documentation. But if they migrate to swift-docc-plugin or swift-docc-plugin based service like SwiftPackageIndex, the documentation build will fail.
Checklist
main
branch of this package.Expected behavior
Success
Actual behavior
Steps to Reproduce
swift package generate-documentation --target DemoKit --verbose
and no documentation will be created.DemoKit.zip
Swift-DocC Plugin Version Information
Swift-DocC plugin version: 1.3.0
Swift Compiler version: 5.10
The text was updated successfully, but these errors were encountered: