The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of ViewState, reference master (486af1), with Swift 6.1 for macOS (SPM) on 15 Jun 2025 16:18:53 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heroesofcode/ViewState.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heroesofcode/ViewState
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 486af1f Update MeilCli/danger-action action to v6.0.31 (#110)
Cloned https://github.com/heroesofcode/ViewState.git
Revision (git rev-parse @):
486af1f8e3fe6688268712c7da75a1a40762aa45
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heroesofcode/ViewState.git at master
========================================
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/1948] Fetching viewstate
Fetched https://github.com/heroesofcode/ViewState.git from cache (0.84s)
Creating working copy for https://github.com/heroesofcode/ViewState.git
Working copy of https://github.com/heroesofcode/ViewState.git resolved at master (486af1f)
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"
    }
  ],
  "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.8"
}
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 ViewState.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:69: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
    :
 67 |     private func postRequest() {
 68 |         stateQueue.async(flags: .barrier) {
 69 |             self.verifyCanMakeRequest.value = Any.self
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 70 |         }
 71 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:84: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
    :
 82 |     private func loading() {
 83 |         stateQueue.async(flags: .barrier) {
 84 |             self.loadingBehavior.value = {}
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:90: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
    :
 88 |     public func success(data: T) {
 89 |         stateQueue.async(flags: .barrier) {
 90 |             self.clearErrors()
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 91 |             self.successBehavior.value = data
 92 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:91: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
    :
 89 |         stateQueue.async(flags: .barrier) {
 90 |             self.clearErrors()
 91 |             self.successBehavior.value = data
    |                                          `- warning: capture of 'data' with non-sendable type 'T' in a '@Sendable' closure
 92 |         }
 93 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:97: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
    :
 95 |     public func error(error: E) {
 96 |         stateQueue.async(flags: .barrier) {
 97 |             self.clearSuccess()
    |             `- warning: capture of 'self' with non-sendable type 'ViewState<T, E>' in a '@Sendable' closure
 98 |             self.errorBehavior.value = error
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:98: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
    :
 96 |         stateQueue.async(flags: .barrier) {
 97 |             self.clearSuccess()
 98 |             self.errorBehavior.value = error
    |                                        `- warning: capture of 'error' with non-sendable type 'E' in a '@Sendable' closure
 99 |         }
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:30:17: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
 28 |             guard let data else { return }
 29 |             DispatchQueue.main.async {
 30 |                 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
 31 |             }
 32 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:30:25: warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
 28 |             guard let data else { return }
 29 |             DispatchQueue.main.async {
 30 |                 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
 31 |             }
 32 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:42:17: warning: sending 'loading' risks causing data races; this is an error in the Swift 6 language mode
 40 |         loadingBehavior.addObserver(self) { _ in
 41 |             DispatchQueue.main.async {
 42 |                 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
 43 |             }
 44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:55:17: warning: sending 'error' risks causing data races; this is an error in the Swift 6 language mode
 53 |             guard let errorMessage else { return }
 54 |             DispatchQueue.main.async {
 55 |                 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
 56 |             }
 57 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ViewState/ViewState.swift:55:23: warning: sending 'errorMessage' risks causing data races; this is an error in the Swift 6 language mode
 53 |             guard let errorMessage else { return }
 54 |             DispatchQueue.main.async {
 55 |                 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
 56 |             }
 57 |         }
[4/6] Compiling ViewState Observable.swift
[5/6] Compiling ViewState ObserverProtocol.swift
[6/6] Emitting module ViewState
Build complete! (4.62s)
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"
    }
  ],
  "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.8"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/heroesofcode/viewstate/master
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.25s)
Building documentation for 'ViewState'...
Finished building documentation for 'ViewState' (0.10s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/heroesofcode/viewstate/master
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.63s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.4 (3.12s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.85s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.56s)
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.4
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
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Emitting module SymbolKit
[8/57] Emitting module Snippets
[9/57] Compiling Snippets Snippet.swift
[10/57] Compiling SymbolKit SourceRange.swift
[11/57] Compiling SymbolKit Metadata.swift
[12/57] Compiling SymbolKit Module.swift
[13/57] Compiling SymbolKit OperatingSystem.swift
[14/57] Compiling SymbolKit Platform.swift
[15/57] Compiling SymbolKit Names.swift
[16/57] Compiling SymbolKit SPI.swift
[17/57] Compiling SymbolKit Snippet.swift
[18/57] Compiling SymbolKit Extension.swift
[19/57] Compiling SymbolKit Mixin+Equals.swift
[20/57] Compiling SymbolKit Mixin+Hash.swift
[21/57] Compiling SymbolKit Mixin.swift
[22/57] Compiling SymbolKit LineList.swift
[23/57] Compiling SymbolKit Position.swift
[24/57] Compiling SymbolKit Relationship.swift
[25/57] Compiling SymbolKit RelationshipKind.swift
[26/57] Compiling SymbolKit SourceOrigin.swift
[27/57] Compiling SymbolKit GenericConstraints.swift
[28/57] Compiling SymbolKit Swift.swift
[29/57] Compiling SymbolKit SemanticVersion.swift
[30/57] Compiling SymbolKit AccessControl.swift
[31/57] Compiling SymbolKit Availability.swift
[32/57] Compiling SymbolKit AvailabilityItem.swift
[33/57] Compiling SymbolKit Domain.swift
[34/57] Compiling SymbolKit Symbol.swift
[35/57] Compiling SymbolKit SymbolKind.swift
[36/57] Compiling SymbolKit SymbolGraph.swift
[37/57] Compiling SymbolKit GraphCollector.swift
[38/57] Compiling SymbolKit GenericConstraint.swift
[39/57] Compiling SymbolKit GenericParameter.swift
[40/57] Compiling SymbolKit Generics.swift
[41/57] Compiling SymbolKit Namespace.swift
[42/57] Compiling SymbolKit DeclarationFragments.swift
[43/57] Compiling SymbolKit Fragment.swift
[44/57] Compiling SymbolKit FragmentKind.swift
[45/57] Compiling SymbolKit FunctionParameter.swift
[46/57] Compiling SymbolKit FunctionSignature.swift
[47/57] Compiling SymbolKit Identifier.swift
[48/57] Compiling SymbolKit KindIdentifier.swift
[49/57] Compiling SymbolKit Location.swift
[50/57] Compiling SymbolKit Mutability.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.10s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling ViewState ObserverProtocol.swift
[3/5] Compiling ViewState ViewState.swift
[4/5] Emitting module ViewState
[5/5] Compiling ViewState Observable.swift
Build of target: 'ViewState' complete! (0.48s)
      70
2	/Users/admin/builder/spi-builder-workspace/.docs/heroesofcode/viewstate/master
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/heroesofcode/viewstate/master
File count: 70
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-heroesofcode-viewstate-master-9d92c5ca.zip to s3://spi-docs-inbox/prod-heroesofcode-viewstate-master-9d92c5ca.zip
Copying... [20%]
Copying... [39%]
Copying... [59%]
Copying... [78%]
Copying... [98%]
Copying... [100%]
Done.