Xcode does not gather the code coverage of local package

I have some local swift package in my project and each package has test target as well, but Xcode do not show the coverage of target of some package, but it’s weird that it can show the coverage of test target of the swift package.

Detail likes:

It can show the coverage of MyProject, App, Feature1Test, Feature2Test, Feature3Test

But actually I want the coverage of App, Feature1, Feature2, Feature3

My project is like

MyProject (Project target)

  • App (Local swift package)
    • Feature1 (Local swift package)
    • Feature2 (Local swift package)
    • Feature3 (Local swift package)

Hey, look this, it might help you - Code Coverage Not Generated · Issue #5960 · tuist/tuist · GitHub

Hi, this is not the right place for this. This is the fourm for the Swift Programming Language, XCode is not a project within the swift-lang organization and is instead an Apple Product. Please send your feedback and questions via Apple’s official channels like the developer fourms.