Skip to content

C module dependencies fail to resolve in Xcode 16.x - "No such module" errors #714

@ajram23

Description

@ajram23

When building a project that depends on Hummingbird in Xcode 16.x, the build fails with "No such module" errors for transitive C module dependencies. This affects all C modules in the dependency chain:

_AtomicsShims (from swift-atomics)
CNIOAtomics (from swift-nio)
CNIOBoringSSL (from swift-nio-ssl)

Am I missing something rudimentary?

Environment:

  • Xcode 16.3 and 16.4 RC
  • macOS with Apple Silicon
  • Swift Package Manager
  • Building in Release configuration with whole module optimization

Reproduction:

  • Create new Xcode project
  • Add Hummingbird as SPM dependency
  • Import Hummingbird in Swift file
  • Build in Release configuration
  • Observe "No such module" errors for C modules

Workaround attempts that failed:

  • Clean build folder/DerivedData
  • Reset package caches
  • Update command line tools

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