Skip to content

iOS 26 beta hang #1004

@theblixguy

Description

@theblixguy

Describe the bug
The snapshot test is hanging:

Image

To Reproduce
It's happening on our work project, but I'll try to isolate it and post a demo project if possible. We're simply calling:

@MainActor
private func assertSnapshots(
  viewModel: ViewModelType,
  config: ViewImageConfig = .iPhone13Pro,
  file: StaticString = #file,
  testName: String = #function,
  line: UInt = #line
) throws {
  let sut = try makeSUT(viewModel: viewModel)
  assertSnapshot(
    of: sut,
    as: .image(
      precision: XCTestCase.snapshotPrecision,
      size: config.size ?? .zero,
      traits: config.traits
    ),
    file: file,
    testName: testName,
    line: line
  )
}

Expected behavior

  • The snapshot test passes/fails as expected

Screenshots

  • None

Environment

  • swift-snapshot-testing version 1.18.4 but happens on older versions too
  • Xcode 26 beta 1
  • Swift 6.2
  • OS: iOS 26 beta 1

Additional context
This does not happen on iOS 18.5/Xcode 16.4

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