The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ViewState, reference 2.1.0 (4e0926), with Swift 6.1 for macOS (SPM) on 17 Jul 2025 06:40:33 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heroesofcode/ViewState.git
Reference: 2.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heroesofcode/ViewState
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at 4e0926c Bump version to 2.1.0
Cloned https://github.com/heroesofcode/ViewState.git
Revision (git rev-parse @):
4e0926c6c05082f809088c9f8df30276a3cc00bd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heroesofcode/ViewState.git at 2.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "viewstate",
      "name": "ViewState",
      "url": "https://github.com/heroesofcode/ViewState.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ViewState",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/heroesofcode/ViewState.git
[1/1999] Fetching viewstate
Fetched https://github.com/heroesofcode/ViewState.git from cache (0.89s)
Creating working copy for https://github.com/heroesofcode/ViewState.git
Working copy of https://github.com/heroesofcode/ViewState.git resolved at 2.1.0 (4e0926c)
warning: '.resolve-product-dependencies': dependency 'viewstate' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/heroesofcode/ViewState.git
https://github.com/heroesofcode/ViewState.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ViewState",
  "name" : "ViewState",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ViewState",
      "targets" : [
        "ViewState"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ViewStateTests",
      "module_type" : "SwiftTarget",
      "name" : "ViewStateTests",
      "path" : "Tests/ViewStateTests",
      "sources" : [
        "Doubles/ViewStateSpy.swift",
        "ObservableTests.swift",
        "ViewModel.swift",
        "ViewStateTests.swift"
      ],
      "target_dependencies" : [
        "ViewState"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ViewState",
      "module_type" : "SwiftTarget",
      "name" : "ViewState",
      "path" : "Sources/ViewState",
      "product_memberships" : [
        "ViewState"
      ],
      "sources" : [
        "Observable.swift",
        "ObserverProtocol.swift",
        "ViewState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/6] Compiling ViewState ObserverProtocol.swift
[4/6] Compiling ViewState Observable.swift
[5/6] Emitting module ViewState
[6/6] Compiling ViewState ViewState.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:72:13: warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |              `- note: generic class 'ViewState' does not conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 70 |     private func postRequest() {
 71 |         stateQueue.async(flags: .barrier) {
 72 |             self.verifyCanMakeRequest.value = Any.self
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 73 |         }
 74 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:87:13: warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |              `- note: generic class 'ViewState' does not conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 85 |     private func loading() {
 86 |         stateQueue.async(flags: .barrier) {
 87 |             self.loadingBehavior.value = {}
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 88 |         }
 89 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:93:13: warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |              `- note: generic class 'ViewState' does not conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 91 |     public func success(data: T) {
 92 |         stateQueue.async(flags: .barrier) {
 93 |             self.clearErrors()
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 94 |             self.successBehavior.value = data
 95 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:94:42: warning: capture of 'data' with non-sendable type 'T' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 92 |         stateQueue.async(flags: .barrier) {
 93 |             self.clearErrors()
 94 |             self.successBehavior.value = data
    |                                          `- warning: capture of 'data' with non-sendable type 'T' in a '@Sendable' closure
 95 |         }
 96 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:100:13: warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |              `- note: generic class 'ViewState' does not conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 98 |     public func error(error: E) {
 99 |         stateQueue.async(flags: .barrier) {
100 |             self.clearSuccess()
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
101 |             self.errorBehavior.value = error
102 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:101:40: warning: capture of 'error' with non-sendable type 'E' in a '@Sendable' closure
  1 | import Foundation
  2 |
  3 | public class ViewState<T, E>: ObserverProtocol {
    |                           `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
  4 |
  5 |     var id: Int = 123
    :
 99 |         stateQueue.async(flags: .barrier) {
100 |             self.clearSuccess()
101 |             self.errorBehavior.value = error
    |                                        `- warning: capture of 'error' with non-sendable type 'E' in a '@Sendable' closure
102 |         }
103 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:33:17: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
 31 |             guard let data else { return }
 32 |             DispatchQueue.main.async {
 33 |                 success(data)
    |                 |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'success' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 34 |             }
 35 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:33:25: warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
 31 |             guard let data else { return }
 32 |             DispatchQueue.main.async {
 33 |                 success(data)
    |                         |- warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'data' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 34 |             }
 35 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:45:17: warning: sending 'loading' risks causing data races; this is an error in the Swift 6 language mode
 43 |         loadingBehavior.addObserver(self) { _ in
 44 |             DispatchQueue.main.async {
 45 |                 loading()
    |                 |- warning: sending 'loading' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'loading' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |             }
 47 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:58:17: warning: sending 'error' risks causing data races; this is an error in the Swift 6 language mode
 56 |             guard let errorMessage else { return }
 57 |             DispatchQueue.main.async {
 58 |                 error(errorMessage)
    |                 |- warning: sending 'error' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'error' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 59 |             }
 60 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:58:23: warning: sending 'errorMessage' risks causing data races; this is an error in the Swift 6 language mode
 56 |             guard let errorMessage else { return }
 57 |             DispatchQueue.main.async {
 58 |                 error(errorMessage)
    |                       |- warning: sending 'errorMessage' risks causing data races; this is an error in the Swift 6 language mode
    |                       `- note: task-isolated 'errorMessage' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 59 |             }
 60 |         }
Build complete! (4.89s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ViewState",
  "name" : "ViewState",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ViewState",
      "targets" : [
        "ViewState"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ViewStateTests",
      "module_type" : "SwiftTarget",
      "name" : "ViewStateTests",
      "path" : "Tests/ViewStateTests",
      "sources" : [
        "Doubles/ViewStateSpy.swift",
        "ObservableTests.swift",
        "ViewModel.swift",
        "ViewStateTests.swift"
      ],
      "target_dependencies" : [
        "ViewState"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ViewState",
      "module_type" : "SwiftTarget",
      "name" : "ViewState",
      "path" : "Sources/ViewState",
      "product_memberships" : [
        "ViewState"
      ],
      "sources" : [
        "Observable.swift",
        "ObserverProtocol.swift",
        "ViewState.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/heroesofcode/viewstate/2.1.0
Repository:               heroesofcode/ViewState
Swift version used:       6.1
Target:                   ViewState
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
 * branch            4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'ViewState'...
Finished extracting symbol information for 'ViewState'. (2.50s)
Building documentation for 'ViewState'...
Finished building documentation for 'ViewState' (0.10s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/heroesofcode/viewstate/2.1.0
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.60s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (3.08s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.81s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.45s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Identifier.swift
[8/57] Compiling SymbolKit KindIdentifier.swift
[9/57] Compiling SymbolKit Location.swift
[10/57] Compiling SymbolKit Mutability.swift
[11/57] Compiling SymbolKit DeclarationFragments.swift
[12/57] Compiling SymbolKit Fragment.swift
[13/57] Compiling SymbolKit FragmentKind.swift
[14/57] Compiling SymbolKit FunctionParameter.swift
[15/57] Compiling SymbolKit FunctionSignature.swift
[16/57] Compiling SymbolKit SemanticVersion.swift
[17/57] Compiling SymbolKit AccessControl.swift
[18/57] Compiling SymbolKit Availability.swift
[19/57] Compiling SymbolKit AvailabilityItem.swift
[20/57] Compiling SymbolKit Domain.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit SourceRange.swift
[26/57] Compiling SymbolKit Metadata.swift
[27/57] Compiling SymbolKit Module.swift
[28/57] Compiling SymbolKit OperatingSystem.swift
[29/57] Compiling SymbolKit Platform.swift
[30/57] Compiling SymbolKit GenericConstraint.swift
[31/57] Compiling SymbolKit GenericParameter.swift
[32/57] Compiling SymbolKit Generics.swift
[33/57] Compiling SymbolKit Namespace.swift
[34/57] Compiling Snippets SnippetParser.swift
[35/57] Emitting module Snippets
[36/57] Compiling Snippets Snippet.swift
[37/57] Compiling SymbolKit Mixin+Equals.swift
[38/57] Compiling SymbolKit Mixin+Hash.swift
[39/57] Compiling SymbolKit Mixin.swift
[40/57] Compiling SymbolKit LineList.swift
[41/57] Compiling SymbolKit Position.swift
[42/57] Compiling SymbolKit Relationship.swift
[43/57] Compiling SymbolKit RelationshipKind.swift
[44/57] Compiling SymbolKit SourceOrigin.swift
[45/57] Compiling SymbolKit GenericConstraints.swift
[46/57] Compiling SymbolKit Swift.swift
[47/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[48/57] Compiling SymbolKit UnifiedSymbol.swift
[49/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[51/57] Compiling SymbolKit Symbol.swift
[52/57] Compiling SymbolKit SymbolKind.swift
[53/57] Compiling SymbolKit SymbolGraph.swift
[54/57] Compiling SymbolKit GraphCollector.swift
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.13s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling ViewState ObserverProtocol.swift
[3/5] Compiling ViewState ViewState.swift
[4/5] Compiling ViewState Observable.swift
[5/5] Emitting module ViewState
Build of target: 'ViewState' complete! (0.54s)
      70
2	/Users/admin/builder/spi-builder-workspace/.docs/heroesofcode/viewstate/2.1.0
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/heroesofcode/viewstate/2.1.0
File count: 70
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-heroesofcode-viewstate-2.1.0-eb5ed7a1.zip to s3://spi-docs-inbox/prod-heroesofcode-viewstate-2.1.0-eb5ed7a1.zip
Copying... [20%]
Copying... [39%]
Copying... [59%]
Copying... [78%]
Copying... [98%]
Copying... [100%]
Done.