Skip to content

SQLiteData target missing explicit module dependencies (19 warnings per build) #429

@CharlesWiltgen

Description

@CharlesWiltgen

(Hi! I used an LLM to help write a thorough issue, but I wanted to let you know that I'm a human and thought this was something you'd like to know about. This is currently the only library I use that emits build-time warnings, even if they're ultimately not harmful in this case. Thank you for SQLiteData!)

Summary

Building with Xcode 26 / Swift 6.1 explicit modules enabled produces 19 warnings per build because the SQLiteData target imports modules that aren't declared as direct dependencies.

Warnings

'SQLiteData' is missing a dependency on 'StructuredQueries' because dependency scan of Swift module 'SQLiteData' discovered a dependency on 'StructuredQueries'
'SQLiteData' is missing a dependency on 'StructuredQueriesCore' ...
'SQLiteData' is missing a dependency on 'StructuredQueriesSQLiteCore' ...
'SQLiteData' is missing a dependency on 'Clocks' ...
'SQLiteData' is missing a dependency on 'CombineSchedulers' ...
'SQLiteData' is missing a dependency on 'CustomDump' ...
'SQLiteData' is missing a dependency on 'IdentifiedCollections' ...
'SQLiteData' is missing a dependency on 'InternalCollectionsUtilities' ...
'SQLiteData' is missing a dependency on 'IssueReportingPackageSupport' ...
'SQLiteData' is missing a dependency on 'PerceptionCore' ...
'SQLiteData' is missing a dependency on 'XCTestDynamicOverlay' ...
(+ 8 more)

Cause

The SQLiteData target in Package.swift declares 8 product dependencies (ConcurrencyExtras, Dependencies, GRDB, IssueReporting, OrderedCollections, Perception, Sharing, StructuredQueriesSQLite), but the compiled module transitively imports 18 additional modules that aren't listed as direct dependencies. Swift 6.1's explicit module dependency scanner flags each one.

Environment

  • Xcode 26 beta, Swift 6.1
  • SWIFT_ENABLE_EXPLICIT_MODULES = YES (default)
  • sqlite-data 1.6.1
  • Consumer project using Xcode's SPM integration (not swift build)

Expected

No dependency scan warnings from SQLiteData.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions