Build Information
Successful build of SwiftHook, reference 3.5.2 (474f80
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 02:30:49 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/623637646/SwiftHook.git
Reference: 3.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/623637646/SwiftHook
* tag 3.5.2 -> FETCH_HEAD
HEAD is now at 474f801 Bump version to 3.5.2
Cloned https://github.com/623637646/SwiftHook.git
Revision (git rev-parse @):
474f80132a3a4e74b3f8a5b87b707d74de387769
SUCCESS checkout https://github.com/623637646/SwiftHook.git at 3.5.2
Fetching https://github.com/623637646/libffi.git
[1/15189] Fetching libffi
Fetched https://github.com/623637646/libffi.git from cache (1.60s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.5 (0.51s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.5
========================================
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.5",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/libffi",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/623637646/SwiftHook.git
[1/3866] Fetching swifthook
Fetched https://github.com/623637646/SwiftHook.git from cache (1.04s)
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.5 (0.02s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.5
Creating working copy for https://github.com/623637646/SwiftHook.git
Working copy of https://github.com/623637646/SwiftHook.git resolved at 3.5.2 (474f801)
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.0
Building package at path: $PWD
https://github.com/623637646/SwiftHook.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/23] Write swift-version--7754E27361AE5C74.txt
[1/23] Compiling ffi_armv7.c
[2/23] Compiling unix64_x86_64.S
[3/23] Compiling sysv_armv7.S
[4/23] Compiling win64_x86_64.S
[5/23] Compiling ffi_i386.c
[6/23] Compiling sysv_i386.S
[6/23] Compiling ffiw64_x86_64.c
[7/23] Compiling ffi64_x86_64.c
[9/23] Compiling tramp.c
[10/23] Compiling types.c
[11/23] Compiling raw_api.c
[12/23] Compiling debug.c
[13/23] Write sources
[14/23] Compiling java_raw_api.c
[15/23] Compiling prep_cif.c
[16/23] Compiling sysv_arm64.S
[17/23] Compiling dlmalloc.c
[18/23] Compiling ffi_arm64.c
[19/23] Compiling closures.c
[20/23] Compiling SwiftHookOCSources SHFFITypeContext.m
[21/23] Compiling SwiftHookOCSources SHObjectiveCUtilities.m
[22/23] Compiling SwiftHookOCSources SHMethodSignature.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: annotate 'dynamicClassContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'hookContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'associatedDelegateHandle' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'associatedInsteadContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'swiftHookKVOContext' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'isSupportedKVOAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'swiftHookObserverAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'overrideMethodContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'associatedContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class ClosuresContext {
[25/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: annotate 'swiftHookKVOContext' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'isSupportedKVOAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'swiftHookObserverAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'overrideMethodContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private class OverrideMethodContext: Hashable {
[26/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: annotate 'swiftHookKVOContext' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'isSupportedKVOAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'swiftHookObserverAssociatedKey' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'overrideMethodContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private class OverrideMethodContext: Hashable {
[27/45] Compiling SwiftHook Signature.swift
[28/45] Compiling SwiftHook Utilities.swift
[29/45] Compiling SwiftHook HookAllInstances.swift
[30/45] Compiling SwiftHook HookClassMethods.swift
[31/45] Compiling SwiftHook HookCommonOC.swift
[32/45] Compiling SwiftHook HookSpecificInstanceOC.swift
[33/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: annotate 'hookContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'associatedDelegateHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class HookDeallocAfterDelegate {
[34/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: annotate 'hookContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'associatedDelegateHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class HookDeallocAfterDelegate {
[35/45] Compiling SwiftHook HookCommon.swift
[36/45] Compiling SwiftHook HookSpecificInstance.swift
[37/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: annotate 'associatedInsteadContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | class InsteadContext {
[38/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: annotate 'associatedInsteadContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | class InsteadContext {
[39/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: annotate 'dynamicClassContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private class DynamicClassContext: Hashable {
[40/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: annotate 'dynamicClassContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private class DynamicClassContext: Hashable {
[41/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: annotate 'dynamicClassContextPool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private class DynamicClassContext: Hashable {
[42/45] Compiling SwiftHook HookAllInstancesOC.swift
[43/45] Compiling SwiftHook HookClassMethodsOC.swift
[44/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: annotate 'associatedContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class ClosuresContext {
[45/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: annotate 'associatedContextHandle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | private class ClosuresContext {
Build complete! (18.98s)
Build complete.
{
"dependencies" : [
{
"identity" : "libffi",
"requirement" : {
"range" : [
{
"lower_bound" : "3.4.5",
"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.