The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftHook, reference 3.5.3 (2a6199), with Swift 6.1 for macOS (SPM) on 1 May 2025 04:50:29 UTC.

Swift 6 data race errors: 10

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.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/623637646/SwiftHook.git
Reference: 3.5.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/623637646/SwiftHook
 * tag               3.5.3      -> FETCH_HEAD
HEAD is now at 2a6199f Bump new version to 3.5.3
Cloned https://github.com/623637646/SwiftHook.git
Revision (git rev-parse @):
2a6199f90aa2c10cd01b92488639dd246caf277e
SUCCESS checkout https://github.com/623637646/SwiftHook.git at 3.5.3
Fetching https://github.com/623637646/libffi.git
[1/15566] Fetching libffi
Fetched https://github.com/623637646/libffi.git from cache (1.43s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.7 (1.92s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.7
========================================
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": "swifthook",
      "name": "SwiftHook",
      "url": "https://github.com/623637646/SwiftHook.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftHook",
      "dependencies": [
        {
          "identity": "libffi",
          "name": "libffi_apple",
          "url": "https://github.com/623637646/libffi.git",
          "version": "3.4.7",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/libffi",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/623637646/SwiftHook.git
[1/3896] Fetching swifthook
Fetched https://github.com/623637646/SwiftHook.git from cache (1.07s)
Fetching https://github.com/623637646/libffi.git from cache
Fetched https://github.com/623637646/libffi.git from cache (0.45s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.7 (0.50s)
Creating working copy for https://github.com/623637646/SwiftHook.git
Working copy of https://github.com/623637646/SwiftHook.git resolved at 3.5.3 (2a6199f)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.7
warning: '.resolve-product-dependencies': dependency 'swifthook' is not used by any target
Found 1 product dependencies
  - libffi_apple
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/623637646/SwiftHook.git
https://github.com/623637646/SwiftHook.git
{
  "dependencies" : [
    {
      "identity" : "libffi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.4.7",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/623637646/libffi.git"
    }
  ],
  "manifest_display_name" : "SwiftHook",
  "name" : "SwiftHook",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftHook",
      "targets" : [
        "SwiftHook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftHookOCSources",
      "module_type" : "ClangTarget",
      "name" : "SwiftHookOCSources",
      "path" : "SwiftHook/Classes/OCSources",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "SHFFITypeContext.m",
        "SHMethodSignature.m",
        "SHObjectiveCUtilities.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftHook",
      "module_type" : "SwiftTarget",
      "name" : "SwiftHook",
      "path" : "SwiftHook/Classes",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "FFI/FFICIFContext.swift",
        "FFI/FFIClosureContext.swift",
        "Hook/DynamicClass.swift",
        "Hook/HookContext.swift",
        "Hook/HookDeallocAfterDelegate.swift",
        "Hook/HookInternal.swift",
        "Hook/InsteadHookClosureExtension.swift",
        "Hook/KVOWrapper.swift",
        "Hook/OverrideSuperMethod.swift",
        "Hook/TargetObjectExtension.swift",
        "Parameters/ParametersCheck.swift",
        "Public/HookAllInstances.swift",
        "Public/HookClassMethods.swift",
        "Public/HookCommon.swift",
        "Public/HookSpecificInstance.swift",
        "PublicObjectiveCAPI/HookAllInstancesOC.swift",
        "PublicObjectiveCAPI/HookClassMethodsOC.swift",
        "PublicObjectiveCAPI/HookCommonOC.swift",
        "PublicObjectiveCAPI/HookSpecificInstanceOC.swift",
        "Signature/Signature.swift",
        "Utilities/Utilities.swift"
      ],
      "target_dependencies" : [
        "SwiftHookOCSources"
      ],
      "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/23] Write swift-version-2F0A5646E1D333AE.txt
[1/23] Compiling sysv_i386.S
[1/23] Compiling unix64_x86_64.S
[2/23] Compiling win64_x86_64.S
[4/23] Compiling sysv_armv7.S
[4/23] Compiling ffiw64_x86_64.c
[4/23] Compiling ffi_i386.c
[7/23] Compiling ffi64_x86_64.c
[8/23] Compiling tramp.c
[9/23] Compiling ffi_armv7.c
[10/23] Compiling raw_api.c
[11/23] Compiling types.c
[12/23] Compiling java_raw_api.c
[13/23] Write sources
[14/23] Compiling debug.c
[15/23] Compiling prep_cif.c
[16/23] Compiling sysv_arm64.S
[17/23] Compiling ffi_arm64.c
[18/23] Compiling closures.c
[19/23] Compiling dlmalloc.c
[20/23] Compiling SwiftHookOCSources SHObjectiveCUtilities.m
[21/23] Compiling SwiftHookOCSources SHMethodSignature.m
[22/23] Compiling SwiftHookOCSources SHFFITypeContext.m
[24/43] Emitting module SwiftHook
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:12:13: warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let prefix = "SwiftHook_"
 12 | private var dynamicClassContextPool = Set<DynamicClassContext>()
    |             |- warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dynamicClassContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dynamicClassContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 | private class DynamicClassContext: Hashable {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:328:13: warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | }
327 |
328 | private var hookContextPool = Set<HookContext>()
    |             |- warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'hookContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'hookContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |
330 | func getHookContext(targetClass: AnyClass, selector: Selector, isSpecifiedInstance: Bool) throws -> HookContext {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookDeallocAfterDelegate.swift:11:13: warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | private var associatedDelegateHandle: UInt8 = 0
   |             |- warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedDelegateHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedDelegateHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class HookDeallocAfterDelegate {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/InsteadHookClosureExtension.swift:14:13: warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | private var associatedInsteadContextHandle: UInt8 = 0
   |             |- warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedInsteadContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedInsteadContextHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | class InsteadContext {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:14:13: warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | #endif
 13 |
 14 | private var swiftHookKVOContext = 0
    |             |- warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'swiftHookKVOContext' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'swiftHookKVOContext' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
 17 | private class RealObserver: NSObject {
    |               `- note: class 'RealObserver' does not conform to the 'Sendable' protocol
 18 |
 19 |     static let shared = RealObserver()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     private override init() {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:117:13: warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | }
116 |
117 | private var isSupportedKVOAssociatedKey = 0
    |             |- warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'isSupportedKVOAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'isSupportedKVOAssociatedKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | func isSupportedKVO(object: NSObject) throws -> Bool {
119 |     if let isSupportedKVO = objc_getAssociatedObject(object, &isSupportedKVOAssociatedKey) as? Bool {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:174:16: warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
172 |
173 | private extension NSObject {
174 |     static var swiftHookObserverAssociatedKey = 0
    |                |- warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'swiftHookObserverAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'swiftHookObserverAssociatedKey' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |     var swiftHookObserver: Observer? {
176 |         get {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/OverrideSuperMethod.swift:32:13: warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | private var overrideMethodContextPool = Set<OverrideMethodContext>()
   |             |- warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'overrideMethodContextPool' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'overrideMethodContextPool' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private class OverrideMethodContext: Hashable {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/TargetObjectExtension.swift:11:13: warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private var associatedContextHandle: UInt8 = 0
    |             |- warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'associatedContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'associatedContextHandle' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |
 13 | private class ClosuresContext {
[25/45] Compiling SwiftHook HookCommonOC.swift
[26/45] Compiling SwiftHook HookSpecificInstanceOC.swift
[27/45] Compiling SwiftHook HookAllInstancesOC.swift
[28/45] Compiling SwiftHook HookClassMethodsOC.swift
[29/45] Compiling SwiftHook HookAllInstances.swift
[30/45] Compiling SwiftHook HookClassMethods.swift
[31/45] Compiling SwiftHook TargetObjectExtension.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/TargetObjectExtension.swift:11:13: warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private var associatedContextHandle: UInt8 = 0
    |             |- warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'associatedContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'associatedContextHandle' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |
 13 | private class ClosuresContext {
[32/45] Compiling SwiftHook ParametersCheck.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/TargetObjectExtension.swift:11:13: warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private var associatedContextHandle: UInt8 = 0
    |             |- warning: var 'associatedContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'associatedContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'associatedContextHandle' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |
 13 | private class ClosuresContext {
[33/45] Compiling SwiftHook HookCommon.swift
[34/45] Compiling SwiftHook HookSpecificInstance.swift
[35/45] Compiling SwiftHook HookInternal.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/InsteadHookClosureExtension.swift:14:13: warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | private var associatedInsteadContextHandle: UInt8 = 0
   |             |- warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedInsteadContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedInsteadContextHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | class InsteadContext {
[36/45] Compiling SwiftHook InsteadHookClosureExtension.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/InsteadHookClosureExtension.swift:14:13: warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | private var associatedInsteadContextHandle: UInt8 = 0
   |             |- warning: var 'associatedInsteadContextHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedInsteadContextHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedInsteadContextHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | class InsteadContext {
[37/45] Compiling SwiftHook Signature.swift
[38/45] Compiling SwiftHook Utilities.swift
[39/45] Compiling SwiftHook HookContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:328:13: warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | }
327 |
328 | private var hookContextPool = Set<HookContext>()
    |             |- warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'hookContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'hookContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |
330 | func getHookContext(targetClass: AnyClass, selector: Selector, isSpecifiedInstance: Bool) throws -> HookContext {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookDeallocAfterDelegate.swift:11:13: warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | private var associatedDelegateHandle: UInt8 = 0
   |             |- warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedDelegateHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedDelegateHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class HookDeallocAfterDelegate {
[40/45] Compiling SwiftHook HookDeallocAfterDelegate.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:328:13: warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | }
327 |
328 | private var hookContextPool = Set<HookContext>()
    |             |- warning: var 'hookContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'hookContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'hookContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |
330 | func getHookContext(targetClass: AnyClass, selector: Selector, isSpecifiedInstance: Bool) throws -> HookContext {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookDeallocAfterDelegate.swift:11:13: warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | private var associatedDelegateHandle: UInt8 = 0
   |             |- warning: var 'associatedDelegateHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'associatedDelegateHandle' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'associatedDelegateHandle' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class HookDeallocAfterDelegate {
[41/45] Compiling SwiftHook KVOWrapper.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:14:13: warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | #endif
 13 |
 14 | private var swiftHookKVOContext = 0
    |             |- warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'swiftHookKVOContext' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'swiftHookKVOContext' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
 17 | private class RealObserver: NSObject {
    |               `- note: class 'RealObserver' does not conform to the 'Sendable' protocol
 18 |
 19 |     static let shared = RealObserver()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     private override init() {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:117:13: warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | }
116 |
117 | private var isSupportedKVOAssociatedKey = 0
    |             |- warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'isSupportedKVOAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'isSupportedKVOAssociatedKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | func isSupportedKVO(object: NSObject) throws -> Bool {
119 |     if let isSupportedKVO = objc_getAssociatedObject(object, &isSupportedKVOAssociatedKey) as? Bool {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:174:16: warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
172 |
173 | private extension NSObject {
174 |     static var swiftHookObserverAssociatedKey = 0
    |                |- warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'swiftHookObserverAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'swiftHookObserverAssociatedKey' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |     var swiftHookObserver: Observer? {
176 |         get {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/OverrideSuperMethod.swift:32:13: warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | private var overrideMethodContextPool = Set<OverrideMethodContext>()
   |             |- warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'overrideMethodContextPool' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'overrideMethodContextPool' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private class OverrideMethodContext: Hashable {
[42/45] Compiling SwiftHook OverrideSuperMethod.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:14:13: warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | #endif
 13 |
 14 | private var swiftHookKVOContext = 0
    |             |- warning: var 'swiftHookKVOContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'swiftHookKVOContext' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'swiftHookKVOContext' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | private let swiftHookKeyPath = "swiftHookPrivateProperty"
 16 |
 17 | private class RealObserver: NSObject {
    |               `- note: class 'RealObserver' does not conform to the 'Sendable' protocol
 18 |
 19 |     static let shared = RealObserver()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'RealObserver' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     private override init() {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:117:13: warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | }
116 |
117 | private var isSupportedKVOAssociatedKey = 0
    |             |- warning: var 'isSupportedKVOAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'isSupportedKVOAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'isSupportedKVOAssociatedKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | func isSupportedKVO(object: NSObject) throws -> Bool {
119 |     if let isSupportedKVO = objc_getAssociatedObject(object, &isSupportedKVOAssociatedKey) as? Bool {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/KVOWrapper.swift:174:16: warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
172 |
173 | private extension NSObject {
174 |     static var swiftHookObserverAssociatedKey = 0
    |                |- warning: static property 'swiftHookObserverAssociatedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'swiftHookObserverAssociatedKey' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'swiftHookObserverAssociatedKey' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |     var swiftHookObserver: Observer? {
176 |         get {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/OverrideSuperMethod.swift:32:13: warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | private var overrideMethodContextPool = Set<OverrideMethodContext>()
   |             |- warning: var 'overrideMethodContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'overrideMethodContextPool' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'overrideMethodContextPool' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private class OverrideMethodContext: Hashable {
[43/45] Compiling SwiftHook FFICIFContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:12:13: warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let prefix = "SwiftHook_"
 12 | private var dynamicClassContextPool = Set<DynamicClassContext>()
    |             |- warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dynamicClassContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dynamicClassContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 | private class DynamicClassContext: Hashable {
[44/45] Compiling SwiftHook FFIClosureContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:12:13: warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let prefix = "SwiftHook_"
 12 | private var dynamicClassContextPool = Set<DynamicClassContext>()
    |             |- warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dynamicClassContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dynamicClassContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 | private class DynamicClassContext: Hashable {
[45/45] Compiling SwiftHook DynamicClass.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:12:13: warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let prefix = "SwiftHook_"
 12 | private var dynamicClassContextPool = Set<DynamicClassContext>()
    |             |- warning: var 'dynamicClassContextPool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dynamicClassContextPool' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dynamicClassContextPool' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 | private class DynamicClassContext: Hashable {
Build complete! (7.66s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "libffi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.4.7",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/623637646/libffi.git"
    }
  ],
  "manifest_display_name" : "SwiftHook",
  "name" : "SwiftHook",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftHook",
      "targets" : [
        "SwiftHook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftHookOCSources",
      "module_type" : "ClangTarget",
      "name" : "SwiftHookOCSources",
      "path" : "SwiftHook/Classes/OCSources",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "SHFFITypeContext.m",
        "SHMethodSignature.m",
        "SHObjectiveCUtilities.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftHook",
      "module_type" : "SwiftTarget",
      "name" : "SwiftHook",
      "path" : "SwiftHook/Classes",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "FFI/FFICIFContext.swift",
        "FFI/FFIClosureContext.swift",
        "Hook/DynamicClass.swift",
        "Hook/HookContext.swift",
        "Hook/HookDeallocAfterDelegate.swift",
        "Hook/HookInternal.swift",
        "Hook/InsteadHookClosureExtension.swift",
        "Hook/KVOWrapper.swift",
        "Hook/OverrideSuperMethod.swift",
        "Hook/TargetObjectExtension.swift",
        "Parameters/ParametersCheck.swift",
        "Public/HookAllInstances.swift",
        "Public/HookClassMethods.swift",
        "Public/HookCommon.swift",
        "Public/HookSpecificInstance.swift",
        "PublicObjectiveCAPI/HookAllInstancesOC.swift",
        "PublicObjectiveCAPI/HookClassMethodsOC.swift",
        "PublicObjectiveCAPI/HookCommonOC.swift",
        "PublicObjectiveCAPI/HookSpecificInstanceOC.swift",
        "Signature/Signature.swift",
        "Utilities/Utilities.swift"
      ],
      "target_dependencies" : [
        "SwiftHookOCSources"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.