Adding the health-summary command to BetterFit gave the training report a third caller alongside the iOS and watchOS apps. The command reads a file, passes its contents to the library and handles exit codes. The library owns the report and its text, CSV and JSON output. Both apps declare a dependency on that same library product. I wanted the next command to fit this layout without anyone having to remember a list of target names in review. Package boundary decision
The CI check reads two inputs we already have. xcodegen dump gives it the resolved project spec so it can check each app's declared dependencies. swift package dump-package gives it the executable target names, including any added later. The script uses those names to flag command imports in app sources and checks the library for imports such as SwiftUI and WatchKit. It runs before the iOS build and can report the Swift file and line for a forbidden import. Boundary check and fixtures
One fixture adds a fake future command to the manifest and verifies that importing it from watchOS fails the check. Another puts a UI import behind #if canImport in the library. That import still crosses the boundary, even when a build on another platform would skip it. The check passed locally and in the iOS CI job. The source check covers a defined set of modules. Removing the iOS app's direct Auth import is a separate open task.