The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StreamSwiftTestHelpers, reference main (b7a09e), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 18:18:45 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GetStream/stream-chat-swift-test-helpers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GetStream/stream-chat-swift-test-helpers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7a09e5 Remove Difference
Cloned https://github.com/GetStream/stream-chat-swift-test-helpers.git
Revision (git rev-parse @):
b7a09e53a6647df94c02a67770ec876faa707f9d
SUCCESS checkout https://github.com/GetStream/stream-chat-swift-test-helpers.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/GetStream/stream-chat-swift-test-helpers.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/34] Emitting module SnapshotTesting
[5/37] Compiling SnapshotTesting UIView.swift
[6/37] Compiling SnapshotTesting UIViewController.swift
[7/37] Compiling SnapshotTesting URLRequest.swift
[8/37] Compiling SnapshotTesting AssertInlineSnapshot.swift
[9/37] Compiling SnapshotTesting AssertSnapshot.swift
[10/37] Compiling SnapshotTesting Async.swift
[11/37] Compiling SnapshotTesting Internal.swift
[12/37] Compiling SnapshotTesting SceneKit.swift
[13/37] Compiling SnapshotTesting SpriteKit.swift
[14/37] Compiling SnapshotTesting String.swift
[15/37] Compiling SnapshotTesting CGPath.swift
[16/37] Compiling SnapshotTesting CaseIterable.swift
[17/37] Compiling SnapshotTesting Codable.swift
[18/37] Compiling SnapshotTesting Diff.swift
[19/37] Compiling SnapshotTesting Diffing.swift
[20/37] Compiling SnapshotTesting Wait.swift
[21/37] Compiling SnapshotTesting SnapshotTestCase.swift
[22/37] Compiling SnapshotTesting NSImage.swift
[23/37] Compiling SnapshotTesting NSView.swift
[24/37] Compiling SnapshotTesting NSViewController.swift
[25/37] Compiling SnapshotTesting Snapshotting.swift
[26/37] Compiling SnapshotTesting Any.swift
[27/37] Compiling SnapshotTesting CALayer.swift
[28/37] Compiling SnapshotTesting Data.swift
[29/37] Compiling SnapshotTesting Description.swift
[30/37] Compiling SnapshotTesting NSBezierPath.swift
[31/37] Compiling SnapshotTesting SwiftUIView.swift
[32/37] Compiling SnapshotTesting UIBezierPath.swift
[33/37] Compiling SnapshotTesting UIImage.swift
[34/37] Compiling SnapshotTesting PlistEncoder.swift
[35/37] Compiling SnapshotTesting String+SpecialCharacters.swift
[36/37] Compiling SnapshotTesting View.swift
[37/37] Compiling SnapshotTesting XCTAttachment.swift
[38/53] Compiling StreamSwiftTestHelpers XCUIElement+LabelContains.swift
[39/53] Compiling StreamSwiftTestHelpers XCUIApplication.swift
[40/53] Compiling StreamSwiftTestHelpers XCUIElement+Helpers.swift
[41/54] Compiling StreamSwiftTestHelpers XCTest+GivenWhenThenAnd.swift
[42/54] Compiling StreamSwiftTestHelpers XCTest+TestOps.swift
[43/54] Compiling StreamSwiftTestHelpers XCUIElementQuery+Helpers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/54] Emitting module StreamSwiftTestHelpers
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:33:11: error: cannot find type 'UIViewController' in scope
 31 | ///   so that the newly captured snapshot is compared with the current reference.
 32 | public func AssertSnapshot(
 33 |     _ vc: UIViewController,
    |           `- error: cannot find type 'UIViewController' in scope
 34 |     isEmbeddedInNavigationController: Bool = false,
 35 |     variants: [SnapshotVariant] = SnapshotVariant.all,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:35:16: error: cannot find type 'SnapshotVariant' in scope
 33 |     _ vc: UIViewController,
 34 |     isEmbeddedInNavigationController: Bool = false,
 35 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
 36 |     screenSize: CGSize = defaultScreenSize,
 37 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:71:13: error: cannot find type 'UIView' in scope
 69 | ///   so that the newly captured snapshot is compared with the current reference.
 70 | public func AssertSnapshot(
 71 |     _ view: UIView,
    |             `- error: cannot find type 'UIView' in scope
 72 |     variants: [SnapshotVariant] = SnapshotVariant.all,
 73 |     size: CGSize? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:72:16: error: cannot find type 'SnapshotVariant' in scope
 70 | public func AssertSnapshot(
 71 |     _ view: UIView,
 72 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
 73 |     size: CGSize? = nil,
 74 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:101:16: error: cannot find type 'SnapshotVariant' in scope
 99 |     _ view: View,
100 |     isEmbeddedInNavigationController: Bool = false,
101 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
102 |     screenSize: CGSize = defaultScreenSize,
103 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:98:34: error: cannot find type 'UIViewControllerRepresentable' in scope
 96 | /// Snapshot of a UIViewControllerRepresentable. All variants will be tested by default. For each variant, it will take a snapshot.
 97 | /// This uses the default view controller screen size.
 98 | public func AssertSnapshot<View: UIViewControllerRepresentable>(
    |                                  `- error: cannot find type 'UIViewControllerRepresentable' in scope
 99 |     _ view: View,
100 |     isEmbeddedInNavigationController: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:138:16: error: cannot find type 'SnapshotVariant' in scope
136 | public func AssertSnapshot<View: SwiftUI.View>(
137 |     _ view: View,
138 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
139 |     device: ViewImageConfig = .iPhoneX,
140 |     size: CGSize? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:139:13: error: cannot find type 'ViewImageConfig' in scope
137 |     _ view: View,
138 |     variants: [SnapshotVariant] = SnapshotVariant.all,
139 |     device: ViewImageConfig = .iPhoneX,
    |             `- error: cannot find type 'ViewImageConfig' in scope
140 |     size: CGSize? = nil,
141 |     suffix: String? = nil,
[45/54] Compiling StreamSwiftTestHelpers SnapshotVariant.swift
[46/54] Compiling StreamSwiftTestHelpers XCTestCase+AlertHandler.swift
[47/54] Compiling StreamSwiftTestHelpers XCTestCase+MockJSON.swift
[48/54] Compiling StreamSwiftTestHelpers TestRunnerEnvironment.swift
[49/54] Compiling StreamSwiftTestHelpers TestsEnvironmentSetup.swift
[50/54] Compiling StreamSwiftTestHelpers Robot+Assert.swift
[51/54] Compiling StreamSwiftTestHelpers Robot.swift
[52/54] Compiling StreamSwiftTestHelpers AssertSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:33:11: error: cannot find type 'UIViewController' in scope
 31 | ///   so that the newly captured snapshot is compared with the current reference.
 32 | public func AssertSnapshot(
 33 |     _ vc: UIViewController,
    |           `- error: cannot find type 'UIViewController' in scope
 34 |     isEmbeddedInNavigationController: Bool = false,
 35 |     variants: [SnapshotVariant] = SnapshotVariant.all,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:35:16: error: cannot find type 'SnapshotVariant' in scope
 33 |     _ vc: UIViewController,
 34 |     isEmbeddedInNavigationController: Bool = false,
 35 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
 36 |     screenSize: CGSize = defaultScreenSize,
 37 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:71:13: error: cannot find type 'UIView' in scope
 69 | ///   so that the newly captured snapshot is compared with the current reference.
 70 | public func AssertSnapshot(
 71 |     _ view: UIView,
    |             `- error: cannot find type 'UIView' in scope
 72 |     variants: [SnapshotVariant] = SnapshotVariant.all,
 73 |     size: CGSize? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:72:16: error: cannot find type 'SnapshotVariant' in scope
 70 | public func AssertSnapshot(
 71 |     _ view: UIView,
 72 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
 73 |     size: CGSize? = nil,
 74 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:101:16: error: cannot find type 'SnapshotVariant' in scope
 99 |     _ view: View,
100 |     isEmbeddedInNavigationController: Bool = false,
101 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
102 |     screenSize: CGSize = defaultScreenSize,
103 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:98:34: error: cannot find type 'UIViewControllerRepresentable' in scope
 96 | /// Snapshot of a UIViewControllerRepresentable. All variants will be tested by default. For each variant, it will take a snapshot.
 97 | /// This uses the default view controller screen size.
 98 | public func AssertSnapshot<View: UIViewControllerRepresentable>(
    |                                  `- error: cannot find type 'UIViewControllerRepresentable' in scope
 99 |     _ view: View,
100 |     isEmbeddedInNavigationController: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:138:16: error: cannot find type 'SnapshotVariant' in scope
136 | public func AssertSnapshot<View: SwiftUI.View>(
137 |     _ view: View,
138 |     variants: [SnapshotVariant] = SnapshotVariant.all,
    |                `- error: cannot find type 'SnapshotVariant' in scope
139 |     device: ViewImageConfig = .iPhoneX,
140 |     size: CGSize? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:139:13: error: cannot find type 'ViewImageConfig' in scope
137 |     _ view: View,
138 |     variants: [SnapshotVariant] = SnapshotVariant.all,
139 |     device: ViewImageConfig = .iPhoneX,
    |             `- error: cannot find type 'ViewImageConfig' in scope
140 |     size: CGSize? = nil,
141 |     suffix: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:43:61: error: cannot find 'UINavigationController' in scope
 41 |     function: String = #function
 42 | ) {
 43 |     let viewController = isEmbeddedInNavigationController ? UINavigationController(rootViewController: vc) : vc
    |                                                             `- error: cannot find 'UINavigationController' in scope
 44 |
 45 |     variants.forEach { variant in
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:48:18: error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 46 |         assertSnapshot(
 47 |             matching: viewController,
 48 |             as: .image(perceptualPrecision: precision, size: screenSize, traits: variant.traits),
    |                  `- error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 49 |             named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""),
 50 |             record: overrideRecording ?? record,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:84:18: error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 82 |             matching: view,
 83 |             as: size != nil ?
 84 |                 .image(perceptualPrecision: precision, size: size!, traits: variant.traits)
    |                  `- error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 85 |                 : .image(perceptualPrecision: precision, traits: variant.traits),
 86 |             named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""),
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:85:20: error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 83 |             as: size != nil ?
 84 |                 .image(perceptualPrecision: precision, size: size!, traits: variant.traits)
 85 |                 : .image(perceptualPrecision: precision, traits: variant.traits),
    |                    `- error: cannot call value of non-function type 'Snapshotting<CALayer, NSImage>'
 86 |             named: variant.snapshotName + (suffix.map { "." + $0 } ?? ""),
 87 |             record: overrideRecording ?? record,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:109:21: error: cannot find 'UIHostingController' in scope
107 |     function: String = #function
108 | ) {
109 |     let hostingVC = UIHostingController(rootView: view)
    |                     `- error: cannot find 'UIHostingController' in scope
110 |     AssertSnapshot(
111 |         hostingVC,
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/SnapshotTesting/AssertSnapshot.swift:148:76: error: type 'SwiftUISnapshotLayout' has no member 'device'
146 | ) {
147 |     variants.forEach { variant in
148 |         let layout: SwiftUISnapshotLayout = size != nil ? .sizeThatFits : .device(config: device)
    |                                                                            `- error: type 'SwiftUISnapshotLayout' has no member 'device'
149 |         assertSnapshot(
150 |             matching: view,
[53/54] Compiling StreamSwiftTestHelpers DeviceRobot.swift
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:29:17: error: value of type 'XCUIApplication' has no member 'portrait'
27 |         switch orientation {
28 |         case .portrait:
29 |             app.portrait()
   |                 `- error: value of type 'XCUIApplication' has no member 'portrait'
30 |         case .landscape:
31 |             app.landscape()
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:31:17: error: value of type 'XCUIApplication' has no member 'landscape'
29 |             app.portrait()
30 |         case .landscape:
31 |             app.landscape()
   |                 `- error: value of type 'XCUIApplication' has no member 'landscape'
32 |         }
33 |         return self
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:40:31: error: value of type 'XCUIDevice' has no member 'press'
38 |         switch state {
39 |         case .background:
40 |             XCUIDevice.shared.press(XCUIDevice.Button.home)
   |                               `- error: value of type 'XCUIDevice' has no member 'press'
41 |         case .foreground:
42 |             app.activate()
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:40:48: error: type 'XCUIDevice' has no member 'Button'
38 |         switch state {
39 |         case .background:
40 |             XCUIDevice.shared.press(XCUIDevice.Button.home)
   |                                                `- error: type 'XCUIDevice' has no member 'Button'
41 |         case .foreground:
42 |             app.activate()
[54/54] Compiling StreamSwiftTestHelpers ElementState.swift
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:29:17: error: value of type 'XCUIApplication' has no member 'portrait'
27 |         switch orientation {
28 |         case .portrait:
29 |             app.portrait()
   |                 `- error: value of type 'XCUIApplication' has no member 'portrait'
30 |         case .landscape:
31 |             app.landscape()
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:31:17: error: value of type 'XCUIApplication' has no member 'landscape'
29 |             app.portrait()
30 |         case .landscape:
31 |             app.landscape()
   |                 `- error: value of type 'XCUIApplication' has no member 'landscape'
32 |         }
33 |         return self
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:40:31: error: value of type 'XCUIDevice' has no member 'press'
38 |         switch state {
39 |         case .background:
40 |             XCUIDevice.shared.press(XCUIDevice.Button.home)
   |                               `- error: value of type 'XCUIDevice' has no member 'press'
41 |         case .foreground:
42 |             app.activate()
/Users/admin/builder/spi-builder-workspace/Sources/TestHelpers/E2ETesting/DeviceRobot.swift:40:48: error: type 'XCUIDevice' has no member 'Button'
38 |         switch state {
39 |         case .background:
40 |             XCUIDevice.shared.press(XCUIDevice.Button.home)
   |                                                `- error: type 'XCUIDevice' has no member 'Button'
41 |         case .foreground:
42 |             app.activate()
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/13227] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.36s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (2.89s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.11.1
BUILD FAILURE 6.2 macosSpm