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.
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