This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 20

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
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 f8b2cae miscellaneous
Cloned https://github.com/623637646/SwiftHook.git
Revision (git rev-parse @):
f8b2caee22efd707385f10f75a23cdf3f486737a
SUCCESS checkout https://github.com/623637646/SwiftHook.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/623637646/SwiftHook.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[1/23] Compiling ffiw64_x86_64.c
[1/23] Compiling ffi_i386.c
[3/23] Compiling ffi64_x86_64.c
[4/23] Compiling win64_x86_64.S
[5/23] Compiling unix64_x86_64.S
[6/23] Compiling sysv_i386.S
[7/23] Compiling debug.c
[8/23] Compiling sysv_arm64.S
[9/23] Compiling closures.c
[10/23] Compiling types.c
[11/23] Compiling ffi_armv7.c
[12/23] Compiling sysv_armv7.S
[13/23] Write sources
[14/23] Compiling ffi_arm64.c
[15/23] Compiling prep_cif.c
[16/23] Compiling raw_api.c
[17/23] Compiling tramp.c
[18/23] Compiling java_raw_api.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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:11:13: warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             `- warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  7 | //
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             |- note: annotate 'retainSelector' 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 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:12:13: warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
    |             |- warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'releaseSelector' 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 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:13:13: warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
    |             |- warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'autoreleaseSelector' 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
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
 15 | private let taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:14:13: warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
    |             |- warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'blacklistSelectors' 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 taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
 16 |
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[25/45] Compiling SwiftHook Signature.swift
[26/45] Compiling SwiftHook Utilities.swift
[27/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 non-isolated 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 non-isolated 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 {
[28/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 non-isolated 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 non-isolated 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 {
[29/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 non-isolated 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 non-isolated 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 {
[30/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 non-isolated 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 non-isolated 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/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookDeallocAfterDelegate.swift:11:13: warning: var 'associatedDelegateHandle' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
[31/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 non-isolated 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 non-isolated 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/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Hook/HookDeallocAfterDelegate.swift:11:13: warning: var 'associatedDelegateHandle' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
[32/45] Compiling SwiftHook HookCommon.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[33/45] Compiling SwiftHook HookSpecificInstance.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[34/45] Compiling SwiftHook HookAllInstancesOC.swift
[35/45] Compiling SwiftHook HookClassMethodsOC.swift
[36/45] Compiling SwiftHook HookAllInstances.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[37/45] Compiling SwiftHook HookClassMethods.swift
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[38/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 {
[39/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 {
[40/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 non-isolated 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 non-isolated 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 {
[41/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 non-isolated 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 non-isolated 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 {
[42/45] Compiling SwiftHook HookCommonOC.swift
[43/45] Compiling SwiftHook HookSpecificInstanceOC.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 non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:11:13: warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             `- warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  7 | //
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             |- note: annotate 'retainSelector' 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 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:12:13: warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
    |             |- warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'releaseSelector' 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 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:13:13: warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
    |             |- warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'autoreleaseSelector' 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
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
 15 | private let taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:14:13: warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
    |             |- warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'blacklistSelectors' 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 taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
 16 |
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
[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 non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:11:13: warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             `- warning: let 'retainSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  7 | //
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
    |             |- note: annotate 'retainSelector' 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 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:12:13: warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
    |             |- warning: let 'releaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'releaseSelector' 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 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:13:13: warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | private let retainSelector = NSSelectorFromString("retain")
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
    |             |- warning: let 'autoreleaseSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'autoreleaseSelector' 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
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
 15 | private let taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Parameters/ParametersCheck.swift:14:13: warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | private let releaseSelector = NSSelectorFromString("release")
 13 | private let autoreleaseSelector = NSSelectorFromString("autorelease")
 14 | private let blacklistSelectors = [retainSelector, releaseSelector, autoreleaseSelector]
    |             |- warning: let 'blacklistSelectors' is not concurrency-safe because non-'Sendable' type '[Selector]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'blacklistSelectors' 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 taggedPointerStringClass: AnyClass? = NSClassFromString("NSTaggedPointerString")
 16 |
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:15:5: warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     `- warning: let 'deallocSelector' is not concurrency-safe because non-'Sendable' type 'Selector' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // MARK: - Error
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/SwiftHook/Classes/Public/HookCommon.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 7 | //
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 |
11 | // queue
   :
13 |
14 | // default selectors
15 | let deallocSelector = NSSelectorFromString("dealloc")
   |     |- note: annotate 'deallocSelector' 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
16 |
17 | // MARK: - Error
Build complete! (28.72s)
Fetching https://github.com/623637646/libffi.git
[1/15189] Fetching libffi
Fetched https://github.com/623637646/libffi.git from cache (1.83s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.5 (0.52s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.5
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.