Skip to content

error: no such module 'XCTest' #43

Description

@zaneenders

Hi, Was looking into this library for a project and got some errors running the tests locally.

Steps to Reproduce

git clone https://github.com/apple/swift-binary-parsing
git checkout 0.0.1
swift test
macOS: 26.1 (25B78)

swift --version
Apple Swift version 6.2.1 (swift-6.2.1-RELEASE)
Target: arm64-apple-macosx26.0
Build config: +assertions

Expected behavior

Passing tests for release branch.

Actual behavior

swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift:1:8: error: no such module 'XCTest'
  1 | import XCTest
    |        `- error: no such module 'XCTest'
  2 |
  3 | #if canImport(Testing)

Thanks,
Zane

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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