The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftHook, reference master (e033f5), with Swift 6.1 for macOS (SPM) on 11 May 2025 13:54:18 UTC.

Swift 6 data race errors: 6

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.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/623637646/SwiftHook.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/623637646/SwiftHook
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e033f57 Merge pull request #19 from flocked/HookContext
Cloned https://github.com/623637646/SwiftHook.git
Revision (git rev-parse @):
e033f57cc6def560cf2fa6f4ecd788411688a6a7
SUCCESS checkout https://github.com/623637646/SwiftHook.git at master
Fetching https://github.com/623637646/libffi.git
[1/15566] Fetching libffi
Fetched https://github.com/623637646/libffi.git from cache (1.37s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.7 (1.81s)
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/4102] Fetching swifthook
Fetched https://github.com/623637646/SwiftHook.git from cache (1.09s)
Fetching https://github.com/623637646/libffi.git from cache
Fetched https://github.com/623637646/libffi.git from cache (0.47s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.7 (0.53s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.7
Creating working copy for https://github.com/623637646/SwiftHook.git
Working copy of https://github.com/623637646/SwiftHook.git resolved at master (e033f57)
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/AssociatedValue.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 ffi_armv7.c
[2/23] Compiling win64_x86_64.S
[3/23] Compiling unix64_x86_64.S
[4/23] Compiling sysv_i386.S
[5/23] Compiling ffiw64_x86_64.c
[6/23] Compiling ffi_i386.c
[7/23] Compiling ffi64_x86_64.c
[8/23] Compiling tramp.c
[9/23] Compiling raw_api.c
[10/23] Compiling types.c
[11/23] Compiling debug.c
[12/23] Compiling prep_cif.c
[13/23] Write sources
[14/23] Compiling java_raw_api.c
[15/23] Compiling sysv_armv7.S
[16/23] Compiling sysv_arm64.S
[17/23] Compiling ffi_arm64.c
[18/23] Compiling dlmalloc.c
[19/23] Compiling closures.c
[20/23] Compiling SwiftHookOCSources SHObjectiveCUtilities.m
[21/23] Compiling SwiftHookOCSources SHFFITypeContext.m
[22/23] Compiling SwiftHookOCSources SHMethodSignature.m
[24/44] Emitting module SwiftHook
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:15:24: warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | private class DynamicClassContext {
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byDynamicClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byDynamicClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
 17 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:16:24: warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     fileprivate let baseClass: AnyClass
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:317: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
315 | }
316 |
317 | private var hookContextPool: [HookContextKey: 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
318 |
319 | struct HookContextKey: Hashable {
/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/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 {
[25/46] Compiling SwiftHook AssociatedValue.swift
[26/46] Compiling SwiftHook Utilities.swift
[27/46] Compiling SwiftHook HookContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:317: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
315 | }
316 |
317 | private var hookContextPool: [HookContextKey: 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
318 |
319 | struct HookContextKey: Hashable {
[28/46] Compiling SwiftHook HookDeallocAfterDelegate.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:317: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
315 | }
316 |
317 | private var hookContextPool: [HookContextKey: 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
318 |
319 | struct HookContextKey: Hashable {
[29/46] Compiling SwiftHook HookInternal.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookContext.swift:317: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
315 | }
316 |
317 | private var hookContextPool: [HookContextKey: 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
318 |
319 | struct HookContextKey: Hashable {
[30/46] Compiling SwiftHook HookClassMethodsOC.swift
[31/46] Compiling SwiftHook HookCommonOC.swift
[32/46] Compiling SwiftHook OverrideSuperMethod.swift
/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 {
[33/46] Compiling SwiftHook TargetObjectExtension.swift
/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 {
[34/46] Compiling SwiftHook FFICIFContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:15:24: warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | private class DynamicClassContext {
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byDynamicClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byDynamicClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
 17 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:16:24: warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     fileprivate let baseClass: AnyClass
[35/46] Compiling SwiftHook FFIClosureContext.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:15:24: warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | private class DynamicClassContext {
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byDynamicClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byDynamicClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
 17 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:16:24: warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     fileprivate let baseClass: AnyClass
[36/46] Compiling SwiftHook DynamicClass.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:15:24: warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | private class DynamicClassContext {
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byDynamicClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byDynamicClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byDynamicClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
 17 |
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/DynamicClass.swift:16:24: warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 |     private static var byDynamicClass: [ObjectIdentifier: DynamicClassContext] = [:]
 16 |     private static var byClass: [ObjectIdentifier: DynamicClassContext] = [:]
    |                        |- warning: static property 'byClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'byClass' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'byClass' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     fileprivate let baseClass: AnyClass
[37/46] Compiling SwiftHook HookSpecificInstance.swift
[38/46] Compiling SwiftHook HookAllInstancesOC.swift
[39/46] Compiling SwiftHook HookSpecificInstanceOC.swift
[40/46] Compiling SwiftHook Signature.swift
[41/46] Compiling SwiftHook HookClassMethods.swift
[42/46] Compiling SwiftHook HookCommon.swift
[43/46] Compiling SwiftHook ParametersCheck.swift
[44/46] Compiling SwiftHook HookAllInstances.swift
[45/46] Compiling SwiftHook InsteadHookClosureExtension.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() {
[46/46] 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() {
Build complete! (7.09s)
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/AssociatedValue.swift",
        "Utilities/Utilities.swift"
      ],
      "target_dependencies" : [
        "SwiftHookOCSources"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.