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 swiftui-hooks, reference main (4d74bb), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 14:03:06 UTC.

Swift 6 data race errors: 0

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/ra1028/SwiftUI-Hooks.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ra1028/SwiftUI-Hooks
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4d74bb4 Fix typos (#30)
Cloned https://github.com/ra1028/SwiftUI-Hooks.git
Revision (git rev-parse @):
4d74bb4370a8e00c0bb51067cda601fa66537a92
SUCCESS checkout https://github.com/ra1028/SwiftUI-Hooks.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ra1028/SwiftUI-Hooks.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/29] Emitting module Hooks
/Users/admin/builder/spi-builder-workspace/Sources/Hooks/HookDispatcher.swift:214:16: warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
204 | }
205 |
206 | private struct HookRecord<H: Hook>: HookRecordProtocol {
    |                           `- note: 'H' previously declared here
207 |     let hook: H
208 |     let coordinator: HookCoordinator<H>
    :
212 |     }
213 |
214 |     func state<H: Hook>(of hookType: H.Type) -> H.State? {
    |                `- warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 |         coordinator.state as? H.State
216 |     }
[4/31] Compiling Hooks UseAsyncPerform.swift
[5/31] Compiling Hooks UseContext.swift
[6/31] Compiling Hooks UseEffect.swift
[7/31] Compiling Hooks HookView.swift
[8/31] Compiling Hooks Assertions.swift
[9/31] Compiling Hooks EnvironmentKeys.swift
[10/31] Compiling Hooks Provider.swift
[11/31] Compiling Hooks Hook.swift
[12/31] Compiling Hooks UseAsync.swift
[13/31] Compiling Hooks HookTester.swift
[14/31] Compiling Hooks ViewExtensions.swift
[15/31] Compiling Hooks LinkedList.swift
[16/31] Compiling Hooks RefObject.swift
[17/31] Compiling Hooks UsePublisher.swift
[18/31] Compiling Hooks UsePublisherSubscribe.swift
[19/31] Compiling Hooks UseReducer.swift
[20/31] Compiling Hooks AsyncPhase.swift
[21/31] Compiling Hooks Consumer.swift
[22/31] Compiling Hooks Context.swift
[23/31] Compiling Hooks UseEnvironment.swift
[24/31] Compiling Hooks UseHook.swift
[25/31] Compiling Hooks UseMemo.swift
[26/31] Compiling Hooks HookDispatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hooks/HookDispatcher.swift:214:16: warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
204 | }
205 |
206 | private struct HookRecord<H: Hook>: HookRecordProtocol {
    |                           `- note: 'H' previously declared here
207 |     let hook: H
208 |     let coordinator: HookCoordinator<H>
    :
212 |     }
213 |
214 |     func state<H: Hook>(of hookType: H.Type) -> H.State? {
    |                `- warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 |         coordinator.state as? H.State
216 |     }
[27/31] Compiling Hooks HookScope.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hooks/HookDispatcher.swift:214:16: warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
204 | }
205 |
206 | private struct HookRecord<H: Hook>: HookRecordProtocol {
    |                           `- note: 'H' previously declared here
207 |     let hook: H
208 |     let coordinator: HookCoordinator<H>
    :
212 |     }
213 |
214 |     func state<H: Hook>(of hookType: H.Type) -> H.State? {
    |                `- warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 |         coordinator.state as? H.State
216 |     }
[28/31] Compiling Hooks HookUpdateStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hooks/HookDispatcher.swift:214:16: warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
204 | }
205 |
206 | private struct HookRecord<H: Hook>: HookRecordProtocol {
    |                           `- note: 'H' previously declared here
207 |     let hook: H
208 |     let coordinator: HookCoordinator<H>
    :
212 |     }
213 |
214 |     func state<H: Hook>(of hookType: H.Type) -> H.State? {
    |                `- warning: generic parameter 'H' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 |         coordinator.state as? H.State
216 |     }
[29/31] Compiling Hooks UseRef.swift
[30/31] Compiling Hooks UseState.swift
[31/31] Compiling Hooks HookCoordinator.swift
Build complete! (9.35s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftui-hooks",
  "name" : "swiftui-hooks",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Hooks",
      "targets" : [
        "Hooks"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "HooksTests",
      "module_type" : "SwiftTarget",
      "name" : "HooksTests",
      "path" : "Tests/HooksTests",
      "sources" : [
        "AsyncPhaseTests.swift",
        "Hook/UseAsyncPerformTests.swift",
        "Hook/UseAsyncTests.swift",
        "Hook/UseContextTests.swift",
        "Hook/UseEffectTests.swift",
        "Hook/UseEnvironmentTests.swift",
        "Hook/UseHookTests.swift",
        "Hook/UseMemoTests.swift",
        "Hook/UsePublisherSubscribeTests.swift",
        "Hook/UsePublisherTests.swift",
        "Hook/UseReducerTests.swift",
        "Hook/UseRefTests.swift",
        "Hook/UseStateTests.swift",
        "Hook/Utilities.swift",
        "HookDispatcherTests.swift",
        "HookUpdateStrategyTests.swift",
        "LinkedListTests.swift",
        "RefObjectTests.swift",
        "Testing/HookTesterTests.swift"
      ],
      "target_dependencies" : [
        "Hooks"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hooks",
      "module_type" : "SwiftTarget",
      "name" : "Hooks",
      "path" : "Sources/Hooks",
      "product_memberships" : [
        "Hooks"
      ],
      "sources" : [
        "AsyncPhase.swift",
        "Context/Consumer.swift",
        "Context/Context.swift",
        "Context/Provider.swift",
        "Hook.swift",
        "Hook/UseAsync.swift",
        "Hook/UseAsyncPerform.swift",
        "Hook/UseContext.swift",
        "Hook/UseEffect.swift",
        "Hook/UseEnvironment.swift",
        "Hook/UseHook.swift",
        "Hook/UseMemo.swift",
        "Hook/UsePublisher.swift",
        "Hook/UsePublisherSubscribe.swift",
        "Hook/UseReducer.swift",
        "Hook/UseRef.swift",
        "Hook/UseState.swift",
        "HookCoordinator.swift",
        "HookDispatcher.swift",
        "HookScope.swift",
        "HookUpdateStrategy.swift",
        "HookView.swift",
        "Internals/Assertions.swift",
        "Internals/EnvironmentKeys.swift",
        "Internals/LinkedList.swift",
        "RefObject.swift",
        "Testing/HookTester.swift",
        "ViewExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.