The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HarnessKit, reference 1.0 (46dd22), with Swift 6.0 for macOS (SPM) on 22 Apr 2026 18:27:31 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SzpakKamil/HarnessKit.git
Reference: 1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SzpakKamil/HarnessKit
 * branch            1.0        -> FETCH_HEAD
 * [new branch]      1.0        -> origin/1.0
HEAD is now at 46dd22c chore:  removed harness kit transform from harnesskit
Cloned https://github.com/SzpakKamil/HarnessKit.git
Revision (git rev-parse @):
46dd22c9b49a872b17105e546062e003651a6218
SUCCESS checkout https://github.com/SzpakKamil/HarnessKit.git at 1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SzpakKamil/HarnessKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-5BDAB9E9C0126B9D.txt
[6/25] Compiling HarnessKitScreenshots ScreenshotConfig.swift
[7/26] Compiling HarnessKitScreenshots ScreenshotAppearance.swift
[8/26] Compiling HarnessKitScreenshots ScreenshotBackground.swift
[9/26] Compiling HarnessKitScreenshots Screenshot.swift
[10/26] Compiling HarnessKitScreenshots ScreenshotResolution.swift
[11/26] Compiling HarnessKitScreenshots ScreenshotMetadata.swift
[12/26] Compiling HarnessKitScreenshots ScreenshotShadow.swift
[13/26] Compiling HarnessKit PathResolver.swift
[14/26] Compiling HarnessKit PathProject.swift
[15/26] Compiling HarnessKitScreenshots CropRect.swift
[16/26] Compiling HarnessKitScreenshots ExportPath.swift
[17/26] Emitting module HarnessKitScreenshots
[18/26] Compiling HarnessKitScreenshots FillMode.swift
[19/26] Compiling HarnessKitScreenshots ScreenOrientation.swift
[20/26] Compiling HarnessKitScreenshots TargetOS.swift
[21/26] Compiling HarnessKit PathComponent.swift
[22/26] Compiling HarnessKit PathFolder.swift
[23/26] Compiling HarnessKit ResizeWindow.swift
[24/26] Compiling HarnessKit HarnessView.swift
[25/26] Compiling HarnessKit HarnessPreview.swift
[26/26] Emitting module HarnessKit
[27/34] Compiling HarnessKitScreenshotTesting UpdateOrientation.swift
[28/34] Compiling HarnessKitScreenshotTesting ResetTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/HarnessKitScreenshotTesting/ResetTheme.swift:10:23: error: main actor-isolated property 'appearance' can not be mutated from a nonisolated context
 6 | /// Sets the device appearance (light/dark) for UI tests.
 7 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, visionOS 1.0, watchOS 10.0, *)
 8 | public func resetTheme(to appearance: XCUIDevice.Appearance) {
   |             `- note: add '@MainActor' to make global function 'resetTheme(to:)' part of global actor 'MainActor'
 9 |     #if !os(watchOS)
10 |     XCUIDevice.shared.appearance = appearance
   |                       `- error: main actor-isolated property 'appearance' can not be mutated from a nonisolated context
11 |     #endif
12 | }
XCTest.XCUIDevice:13:25: note: mutation of this property is only permitted within the actor
11 |     open var location: XCUILocation? { get set }
12 |     @available(macOS 12.0, *)
13 |     @MainActor open var appearance: XCUIDevice.Appearance { get set }
   |                         `- note: mutation of this property is only permitted within the actor
14 |     open var system: XCUISystem { get }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/HarnessKitScreenshotTesting/ResetTheme.swift:10:16: error: main actor-isolated class property 'shared' can not be mutated from a nonisolated context
 6 | /// Sets the device appearance (light/dark) for UI tests.
 7 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, visionOS 1.0, watchOS 10.0, *)
 8 | public func resetTheme(to appearance: XCUIDevice.Appearance) {
   |             `- note: add '@MainActor' to make global function 'resetTheme(to:)' part of global actor 'MainActor'
 9 |     #if !os(watchOS)
10 |     XCUIDevice.shared.appearance = appearance
   |                `- error: main actor-isolated class property 'shared' can not be mutated from a nonisolated context
11 |     #endif
12 | }
XCTest.XCUIDevice:2:20: note: mutation of this class property is only permitted within the actor
 1 | @MainActor open class XCUIDevice : NSObject {
 2 |     open class var shared: XCUIDevice { get }
   |                    `- note: mutation of this class property is only permitted within the actor
 3 |     @available(swift, obsoleted: 3, renamed: "shared")
 4 |     open class var sharedDevice: XCUIDevice { get }
/Users/admin/builder/spi-builder-workspace/Sources/HarnessKitScreenshotTesting/ResetTheme.swift:21:37: error: main actor-isolated property 'appearance' can not be referenced from a nonisolated context
14 | /// Returns the current device appearance used during UI tests.
15 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, visionOS 1.0, watchOS 10.0, *)
16 | public func currentTheme() -> XCUIDevice.Appearance {
   |             `- note: add '@MainActor' to make global function 'currentTheme()' part of global actor 'MainActor'
17 |     #if os(watchOS)
18 |     return .unspecified
19 |     #else
20 |     return XCUIDevice.Appearance(
21 |         rawValue: XCUIDevice.shared.appearance.rawValue
   |                                     `- error: main actor-isolated property 'appearance' can not be referenced from a nonisolated context
22 |     ) ?? .unspecified
23 |     #endif
XCTest.XCUIDevice:13:25: note: property declared here
11 |     open var location: XCUILocation? { get set }
12 |     @available(macOS 12.0, *)
13 |     @MainActor open var appearance: XCUIDevice.Appearance { get set }
   |                         `- note: property declared here
14 |     open var system: XCUISystem { get }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/HarnessKitScreenshotTesting/ResetTheme.swift:21:30: error: main actor-isolated class property 'shared' can not be referenced from a nonisolated context
14 | /// Returns the current device appearance used during UI tests.
15 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, visionOS 1.0, watchOS 10.0, *)
16 | public func currentTheme() -> XCUIDevice.Appearance {
   |             `- note: add '@MainActor' to make global function 'currentTheme()' part of global actor 'MainActor'
17 |     #if os(watchOS)
18 |     return .unspecified
19 |     #else
20 |     return XCUIDevice.Appearance(
21 |         rawValue: XCUIDevice.shared.appearance.rawValue
   |                              `- error: main actor-isolated class property 'shared' can not be referenced from a nonisolated context
22 |     ) ?? .unspecified
23 |     #endif
XCTest.XCUIDevice:2:20: note: class property declared here
 1 | @MainActor open class XCUIDevice : NSObject {
 2 |     open class var shared: XCUIDevice { get }
   |                    `- note: class property declared here
 3 |     @available(swift, obsoleted: 3, renamed: "shared")
 4 |     open class var sharedDevice: XCUIDevice { get }
[29/34] Emitting module HarnessKitTesting
[30/34] Compiling HarnessKitTesting PathFolderNavigation.swift
[31/34] Compiling HarnessKitTesting HarnessPreviewNavigation.swift
[32/34] Compiling HarnessKitTesting NavigationMethods.swift
[33/34] Compiling HarnessKitScreenshotTesting CaptureScreenshot.swift
[34/34] Emitting module HarnessKitScreenshotTesting
BUILD FAILURE 6.0 macosSpm