Build Information
Successful build of HotReloading, reference 5.0.11 (02449d
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 18:57:20 UTC.
Swift 6 data race errors: 46
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
26 | extension SwiftInjection {
27 |
28 | static var injectableReducerSymbols = Set<String>()
| |- warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectableReducerSymbols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectableReducerSymbols' 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
29 |
30 | static var checkReducerInitializers: Void = {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:30:16: warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var injectableReducerSymbols = Set<String>()
29 |
30 | static var checkReducerInitializers: Void = {
| |- warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkReducerInitializers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkReducerInitializers' 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
31 | var expectedInjectableReducerSymbols = Set<String>()
32 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/StandaloneInjection.swift:29:16: warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | class StandaloneInjection: InjectionClient {
28 |
29 | static var singleton: StandaloneInjection?
| |- warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'singleton' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'singleton' 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
30 | var watchers = [FileWatcher]()
31 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:25:16: warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | static let logsPref = "HotReloadingBuildLogsDir"
25 | static var derivedLog =
| |- warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'derivedLog' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'derivedLog' 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
26 | UserDefaults.standard.string(forKey: logsPref) {
27 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/StandaloneInjection.swift:158:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
156 | if let pattern = getenv(SwiftInjection.INJECTION_TRACE)
157 | .flatMap({String(cString: $0)}), pattern != swiftTracing {
158 | SwiftTrace.typeLookup = getenv(SwiftInjection.INJECTION_LOOKUP) != nil
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
159 | SwiftInjection.traceInjection = true
160 | if pattern != "" {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[79/89] Compiling HotReloading StandaloneInjection.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:28:16: warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | extension SwiftInjection {
27 |
28 | static var injectableReducerSymbols = Set<String>()
| |- warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectableReducerSymbols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectableReducerSymbols' 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
29 |
30 | static var checkReducerInitializers: Void = {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:30:16: warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var injectableReducerSymbols = Set<String>()
29 |
30 | static var checkReducerInitializers: Void = {
| |- warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkReducerInitializers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkReducerInitializers' 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
31 | var expectedInjectableReducerSymbols = Set<String>()
32 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/StandaloneInjection.swift:29:16: warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | class StandaloneInjection: InjectionClient {
28 |
29 | static var singleton: StandaloneInjection?
| |- warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'singleton' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'singleton' 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
30 | var watchers = [FileWatcher]()
31 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:25:16: warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | static let logsPref = "HotReloadingBuildLogsDir"
25 | static var derivedLog =
| |- warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'derivedLog' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'derivedLog' 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
26 | UserDefaults.standard.string(forKey: logsPref) {
27 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/StandaloneInjection.swift:158:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
156 | if let pattern = getenv(SwiftInjection.INJECTION_TRACE)
157 | .flatMap({String(cString: $0)}), pattern != swiftTracing {
158 | SwiftTrace.typeLookup = getenv(SwiftInjection.INJECTION_LOOKUP) != nil
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
159 | SwiftInjection.traceInjection = true
160 | if pattern != "" {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[80/89] Compiling HotReloading FileWatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:21:16: warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public class FileWatcher: NSObject {
20 | public typealias InjectionCallback = (_ filesChanged: NSArray, _ ideProcPath: String) -> Void
21 | static var INJECTABLE_PATTERN = try! NSRegularExpression(
| |- warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'INJECTABLE_PATTERN' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'INJECTABLE_PATTERN' 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
22 | pattern: "[^~]\\.(mm?|cpp|swift|storyboard|xib)$")
23 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:25:16: warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | static let logsPref = "HotReloadingBuildLogsDir"
25 | static var derivedLog =
| |- warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'derivedLog' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'derivedLog' 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
26 | UserDefaults.standard.string(forKey: logsPref) {
27 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:30: warning: capture of 'watcher' with non-sendable type 'FileWatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class FileWatcher: NSObject {
| `- note: class 'FileWatcher' does not conform to the 'Sendable' protocol
20 | public typealias InjectionCallback = (_ filesChanged: NSArray, _ ideProcPath: String) -> Void
21 | static var INJECTABLE_PATTERN = try! NSRegularExpression(
:
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| `- warning: capture of 'watcher' with non-sendable type 'FileWatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:60: warning: capture of 'changes' with non-sendable type 'NSArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| `- warning: capture of 'changes' with non-sendable type 'NSArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | return
Foundation.NSArray:1:12: note: class 'NSArray' does not conform to the 'Sendable' protocol
1 | open class NSArray : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
| `- note: class 'NSArray' does not conform to the 'Sendable' protocol
2 | open var count: Int { get }
3 | open func object(at index: Int) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:126:20: warning: reference to class property 'swizzleFactory' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
124 | }
125 |
126 | SwiftTrace.swizzleFactory = SwiftTrace.LifetimeTracker.self
| `- warning: reference to class property 'swizzleFactory' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |
128 | if let projectRoot = getenv(SwiftInjection.INJECTION_PROJECT_ROOT) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:48:23: note: class property declared here
46 | Class used to create "Sizzle" instances representing a member function
47 | */
48 | public static var swizzleFactory: Swizzle.Type = Decorated.self
| `- note: class property declared here
49 |
50 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:204:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
202 | SwiftInjection.traceInjection = readString() == "1"
203 | case .lookup:
204 | SwiftTrace.typeLookup = readString() == "1"
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
205 | if SwiftTrace.swiftTracing {
206 | log("Discovery of target app's types switched \(SwiftTrace.typeLookup ? "on" : "off")");
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:206:76: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | SwiftTrace.typeLookup = readString() == "1"
205 | if SwiftTrace.swiftTracing {
206 | log("Discovery of target app's types switched \(SwiftTrace.typeLookup ? "on" : "off")");
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
207 | }
208 | case .trace:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:289:25: warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
287 | var err: String?
288 | do {
289 | builder.injectionNumber += 1
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
290 | try data.write(to: URL(fileURLWithPath: "\(builder.tmpfile).dylib"))
291 | try SwiftInjection.inject(tmpfile: builder.tmpfile)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:293:25: warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |
36 | @objc(InjectionClient)
37 | public class InjectionClient: SimpleSocket, InjectionReader {
| `- note: class 'InjectionClient' does not conform to the 'Sendable' protocol
38 |
39 | let injectionQueue = isVapor ? DispatchQueue(label: "InjectionQueue") : .main
:
291 | try SwiftInjection.inject(tmpfile: builder.tmpfile)
292 | } catch {
293 | self.log("⚠️ Injection error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
294 | err = "\(error)"
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:369:21: warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 | case .load:
368 | do {
369 | builder.injectionNumber += 1
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | try SwiftInjection.inject(tmpfile: changed)
371 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:394:17: warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |
36 | @objc(InjectionClient)
37 | public class InjectionClient: SimpleSocket, InjectionReader {
| `- note: class 'InjectionClient' does not conform to the 'Sendable' protocol
38 |
39 | let injectionQueue = isVapor ? DispatchQueue(label: "InjectionQueue") : .main
:
392 | let parts = changed.components(separatedBy:"^")
393 | guard let pathID = Int(parts[0]) else { break }
394 | self.writeCommand(InjectionResponse.pause.rawValue, with:"5")
| `- warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
395 | if let object = (xprobePaths[pathID] as? XprobePath)?
396 | .object() as? NSObject, object.responds(to: Selector(("swiftEvalWithCode:"))),
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:384:45: warning: capture of 'builder' with non-sendable type 'SwiftEval' in an isolated closure; this is an error in the Swift 6 language mode
382 | #endif
383 | } else {
384 | builder.forceUnhide = { builder.startUnhide() }
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in an isolated closure; this is an error in the Swift 6 language mode
385 | SwiftInjection.inject(classNameOrFile: changed)
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:395:34: warning: reference to var 'xprobePaths' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
393 | guard let pathID = Int(parts[0]) else { break }
394 | self.writeCommand(InjectionResponse.pause.rawValue, with:"5")
395 | if let object = (xprobePaths[pathID] as? XprobePath)?
| `- warning: reference to var 'xprobePaths' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
396 | .object() as? NSObject, object.responds(to: Selector(("swiftEvalWithCode:"))),
397 | let code = (parts[3] as NSString).removingPercentEncoding,
Xprobe.xprobePaths:1:12: note: var declared here
1 | public var xprobePaths: NSMutableArray!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:30: warning: sending 'watcher' risks causing data races; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| |- warning: sending 'watcher' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'watcher' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:60: warning: sending 'changes' risks causing data races; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| |- warning: sending 'changes' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'changes' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:228:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | let OSView: AnyClass = (objc_getClass("UIView") ??
227 | objc_getClass("NSView")) as! AnyClass
228 | log("Adding trace to the framework containg \(OSView), this will take a while...")
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
229 | SwiftTrace.traceBundle(containing: OSView)
230 | log("Completed adding trace.")
[81/89] Compiling HotReloading InjectionClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:21:16: warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public class FileWatcher: NSObject {
20 | public typealias InjectionCallback = (_ filesChanged: NSArray, _ ideProcPath: String) -> Void
21 | static var INJECTABLE_PATTERN = try! NSRegularExpression(
| |- warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'INJECTABLE_PATTERN' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'INJECTABLE_PATTERN' 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
22 | pattern: "[^~]\\.(mm?|cpp|swift|storyboard|xib)$")
23 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:25:16: warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | static let logsPref = "HotReloadingBuildLogsDir"
25 | static var derivedLog =
| |- warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'derivedLog' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'derivedLog' 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
26 | UserDefaults.standard.string(forKey: logsPref) {
27 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:30: warning: capture of 'watcher' with non-sendable type 'FileWatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class FileWatcher: NSObject {
| `- note: class 'FileWatcher' does not conform to the 'Sendable' protocol
20 | public typealias InjectionCallback = (_ filesChanged: NSArray, _ ideProcPath: String) -> Void
21 | static var INJECTABLE_PATTERN = try! NSRegularExpression(
:
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| `- warning: capture of 'watcher' with non-sendable type 'FileWatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:60: warning: capture of 'changes' with non-sendable type 'NSArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| `- warning: capture of 'changes' with non-sendable type 'NSArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | return
Foundation.NSArray:1:12: note: class 'NSArray' does not conform to the 'Sendable' protocol
1 | open class NSArray : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration {
| `- note: class 'NSArray' does not conform to the 'Sendable' protocol
2 | open var count: Int { get }
3 | open func object(at index: Int) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:126:20: warning: reference to class property 'swizzleFactory' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
124 | }
125 |
126 | SwiftTrace.swizzleFactory = SwiftTrace.LifetimeTracker.self
| `- warning: reference to class property 'swizzleFactory' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |
128 | if let projectRoot = getenv(SwiftInjection.INJECTION_PROJECT_ROOT) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:48:23: note: class property declared here
46 | Class used to create "Sizzle" instances representing a member function
47 | */
48 | public static var swizzleFactory: Swizzle.Type = Decorated.self
| `- note: class property declared here
49 |
50 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:204:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
202 | SwiftInjection.traceInjection = readString() == "1"
203 | case .lookup:
204 | SwiftTrace.typeLookup = readString() == "1"
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
205 | if SwiftTrace.swiftTracing {
206 | log("Discovery of target app's types switched \(SwiftTrace.typeLookup ? "on" : "off")");
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:206:76: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | SwiftTrace.typeLookup = readString() == "1"
205 | if SwiftTrace.swiftTracing {
206 | log("Discovery of target app's types switched \(SwiftTrace.typeLookup ? "on" : "off")");
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
207 | }
208 | case .trace:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:289:25: warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
287 | var err: String?
288 | do {
289 | builder.injectionNumber += 1
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
290 | try data.write(to: URL(fileURLWithPath: "\(builder.tmpfile).dylib"))
291 | try SwiftInjection.inject(tmpfile: builder.tmpfile)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:293:25: warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |
36 | @objc(InjectionClient)
37 | public class InjectionClient: SimpleSocket, InjectionReader {
| `- note: class 'InjectionClient' does not conform to the 'Sendable' protocol
38 |
39 | let injectionQueue = isVapor ? DispatchQueue(label: "InjectionQueue") : .main
:
291 | try SwiftInjection.inject(tmpfile: builder.tmpfile)
292 | } catch {
293 | self.log("⚠️ Injection error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
294 | err = "\(error)"
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:369:21: warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 | case .load:
368 | do {
369 | builder.injectionNumber += 1
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | try SwiftInjection.inject(tmpfile: changed)
371 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:394:17: warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |
36 | @objc(InjectionClient)
37 | public class InjectionClient: SimpleSocket, InjectionReader {
| `- note: class 'InjectionClient' does not conform to the 'Sendable' protocol
38 |
39 | let injectionQueue = isVapor ? DispatchQueue(label: "InjectionQueue") : .main
:
392 | let parts = changed.components(separatedBy:"^")
393 | guard let pathID = Int(parts[0]) else { break }
394 | self.writeCommand(InjectionResponse.pause.rawValue, with:"5")
| `- warning: capture of 'self' with non-sendable type 'InjectionClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
395 | if let object = (xprobePaths[pathID] as? XprobePath)?
396 | .object() as? NSObject, object.responds(to: Selector(("swiftEvalWithCode:"))),
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:384:45: warning: capture of 'builder' with non-sendable type 'SwiftEval' in an isolated closure; this is an error in the Swift 6 language mode
382 | #endif
383 | } else {
384 | builder.forceUnhide = { builder.startUnhide() }
| `- warning: capture of 'builder' with non-sendable type 'SwiftEval' in an isolated closure; this is an error in the Swift 6 language mode
385 | SwiftInjection.inject(classNameOrFile: changed)
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:155:14: note: class 'SwiftEval' does not conform to the 'Sendable' protocol
153 |
154 | @objc(SwiftEval)
155 | public class SwiftEval: NSObject {
| `- note: class 'SwiftEval' does not conform to the 'Sendable' protocol
156 |
157 | static var instance = SwiftEval()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:395:34: warning: reference to var 'xprobePaths' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
393 | guard let pathID = Int(parts[0]) else { break }
394 | self.writeCommand(InjectionResponse.pause.rawValue, with:"5")
395 | if let object = (xprobePaths[pathID] as? XprobePath)?
| `- warning: reference to var 'xprobePaths' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
396 | .object() as? NSObject, object.responds(to: Selector(("swiftEvalWithCode:"))),
397 | let code = (parts[3] as NSString).removingPercentEncoding,
Xprobe.xprobePaths:1:12: note: var declared here
1 | public var xprobePaths: NSMutableArray!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:30: warning: sending 'watcher' risks causing data races; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| |- warning: sending 'watcher' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'watcher' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:80:60: warning: sending 'changes' risks causing data races; this is an error in the Swift 6 language mode
78 | }
79 | DispatchQueue.main.async {
80 | watcher.filesChanged(changes: changes)
| |- warning: sending 'changes' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'changes' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionClient.swift:228:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | let OSView: AnyClass = (objc_getClass("UIView") ??
227 | objc_getClass("NSView")) as! AnyClass
228 | log("Adding trace to the framework containg \(OSView), this will take a while...")
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
229 | SwiftTrace.traceBundle(containing: OSView)
230 | log("Completed adding trace.")
[82/89] Compiling HotReloading Vaccine.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:34:17: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
32 | CATransaction.setAnimationDuration(1.0)
33 | CATransaction.setAnimationTimingFunction(CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut))
34 | defer { CATransaction.commit() }
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:30:31: warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 |
25 | class Vaccine {
26 | func performInjection(on object: AnyObject) {
| `- note: add '@MainActor' to make instance method 'performInjection(on:)' part of global actor 'MainActor'
27 | switch object {
28 | case let viewController as ViewController:
29 | let snapshotView: View? = createSnapshotViewIfNeeded(for: viewController)
30 | if viewController.nibName == nil {
| `- warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | CATransaction.begin()
32 | CATransaction.setAnimationDuration(1.0)
AppKit.NSViewController:5:25: note: property declared here
3 | public init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?)
4 | public init?(coder: NSCoder)
5 | @MainActor open var nibName: NSNib.Name? { get }
| `- note: property declared here
6 | open var nibBundle: Bundle? { get }
7 | open var representedObject: Any? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:40:35: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 |
25 | class Vaccine {
26 | func performInjection(on object: AnyObject) {
| `- note: add '@MainActor' to make instance method 'performInjection(on:)' part of global actor 'MainActor'
27 | switch object {
28 | case let viewController as ViewController:
:
38 |
39 | #if os(macOS)
40 | reload(viewController.parent ?? viewController)
| `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | #else
42 | // Opt-out from performing Vaccine reloads on parent
AppKit.NSViewController:3:25: note: property declared here
1 | extension NSViewController {
2 | @available(macOS 10.10, *)
3 | @MainActor open var parent: NSViewController? { get }
| `- note: property declared here
4 | @available(macOS 10.10, *)
5 | @available(swift, obsoleted: 3, renamed: "parent")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:68:29: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 | clean(view: viewController.view)
70 | viewController.loadView()
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:68:24: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 | clean(view: viewController.view)
70 | viewController.loadView()
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:68:51: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 |
67 | private func reload(_ viewController: ViewController) {
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | clean(view: viewController.view)
70 | viewController.loadView()
AppKit.NSView:44:26: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
42 | open func didAddSubview(_ subview: NSView)
43 | open func willRemoveSubview(_ subview: NSView)
44 | @MainActor open func removeFromSuperview()
| `- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
45 | open func replaceSubview(_ oldView: NSView, with newView: NSView)
46 | open func removeFromSuperviewWithoutNeedingDisplay()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:69:36: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | viewController.loadView()
71 | viewController.viewDidLoad()
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:70:24: warning: call to main actor-isolated instance method 'loadView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
70 | viewController.loadView()
| `- warning: call to main actor-isolated instance method 'loadView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | viewController.viewDidLoad()
72 | viewController.viewWillAppear()
AppKit.NSViewController:12:15: note: calls to instance method 'loadView()' from outside of its actor context are implicitly asynchronous
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
12 | open func loadView()
| `- note: calls to instance method 'loadView()' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 14.0, *)
14 | open func loadViewIfNeeded()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:71:24: warning: call to main actor-isolated instance method 'viewDidLoad()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
70 | viewController.loadView()
71 | viewController.viewDidLoad()
| `- warning: call to main actor-isolated instance method 'viewDidLoad()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 | viewController.viewWillAppear()
73 | viewController.viewDidAppear()
AppKit.NSViewController:21:15: note: calls to instance method 'viewDidLoad()' from outside of its actor context are implicitly asynchronous
19 | @MainActor open func discardEditing()
20 | @available(macOS 10.10, *)
21 | open func viewDidLoad()
| `- note: calls to instance method 'viewDidLoad()' from outside of its actor context are implicitly asynchronous
22 | @available(macOS 10.10, *)
23 | open var isViewLoaded: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:72:24: warning: call to main actor-isolated instance method 'viewWillAppear()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
70 | viewController.loadView()
71 | viewController.viewDidLoad()
72 | viewController.viewWillAppear()
| `- warning: call to main actor-isolated instance method 'viewWillAppear()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | viewController.viewDidAppear()
74 | refreshSubviews(on: viewController.view)
AppKit.NSViewController:28:15: note: calls to instance method 'viewWillAppear()' from outside of its actor context are implicitly asynchronous
26 | open var viewLoaded: Bool { get }
27 | @available(macOS 10.10, *)
28 | open func viewWillAppear()
| `- note: calls to instance method 'viewWillAppear()' from outside of its actor context are implicitly asynchronous
29 | @available(macOS 10.10, *)
30 | open func viewDidAppear()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:73:24: warning: call to main actor-isolated instance method 'viewDidAppear()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
:
71 | viewController.viewDidLoad()
72 | viewController.viewWillAppear()
73 | viewController.viewDidAppear()
| `- warning: call to main actor-isolated instance method 'viewDidAppear()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | refreshSubviews(on: viewController.view)
75 | }
AppKit.NSViewController:30:15: note: calls to instance method 'viewDidAppear()' from outside of its actor context are implicitly asynchronous
28 | open func viewWillAppear()
29 | @available(macOS 10.10, *)
30 | open func viewDidAppear()
| `- note: calls to instance method 'viewDidAppear()' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.10, *)
32 | open func viewWillDisappear()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:74:44: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | private func reload(_ viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
68 | viewController.view.subviews.forEach { $0.removeFromSuperview() }
69 | clean(view: viewController.view)
:
72 | viewController.viewWillAppear()
73 | viewController.viewDidAppear()
74 | refreshSubviews(on: viewController.view)
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | }
76 |
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:82:14: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 | }
76 |
77 | private func reload(_ view: View) {
| `- note: add '@MainActor' to make instance method 'reload' part of global actor 'MainActor'
78 | let selector = _Selector("loadView")
79 | guard view.responds(to: selector) == true else { return }
80 |
81 | #if os(macOS)
82 | view.animator().perform(selector)
| `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | #else
84 | UIView.animate(withDuration: 0.3, delay: 0.0, options: [.allowAnimatedContent,
AppKit.NSView:363:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
361 | open var effectiveAppearance: NSAppearance { get }
362 | @available(macOS 10.5, *)
363 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
364 | @available(macOS 10.5, *)
365 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:93:67: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:93:89: warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
| `- warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
AppKit.NSViewController:5:25: note: property declared here
3 | public init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?)
4 | public init?(coder: NSCoder)
5 | @MainActor open var nibName: NSNib.Name? { get }
| `- note: property declared here
6 | open var nibBundle: Bundle? { get }
7 | open var representedObject: Any? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:95:54: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | #else
97 | let maskView = UIView()
AppKit.NSView:29:15: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:95:41: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
96 | #else
97 | let maskView = UIView()
AppKit.NSWindow:56:25: note: property declared here
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | @MainActor open var contentView: NSView? { get set }
| `- note: property declared here
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:95:33: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
96 | #else
97 | let maskView = UIView()
AppKit.NSView:4:30: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:95:28: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 |
92 | private func createSnapshotViewIfNeeded(for viewController: ViewController) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshotViewIfNeeded(for:)' part of global actor 'MainActor'
93 | if let snapshotView = createSnapshot(from: viewController.view), viewController.nibName == nil {
94 | #if os(macOS)
95 | viewController.view.window?.contentView?.addSubview(snapshotView)
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
96 | #else
97 | let maskView = UIView()
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:112:60: warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
109 | }
110 |
111 | private func cleanSnapshotViewIfNeeded(_ snapshotView: View?, viewController: ViewController) {
| `- note: add '@MainActor' to make instance method 'cleanSnapshotViewIfNeeded(_:viewController:)' part of global actor 'MainActor'
112 | if let snapshotView = snapshotView, viewController.nibName == nil {
| `- warning: main actor-isolated property 'nibName' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | #if os(macOS)
114 | NSAnimationContext.runAnimationGroup({ (context) in
AppKit.NSViewController:5:25: note: property declared here
3 | public init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?)
4 | public init?(coder: NSCoder)
5 | @MainActor open var nibName: NSNib.Name? { get }
| `- note: property declared here
6 | open var nibBundle: Bundle? { get }
7 | open var representedObject: Any? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:117:41: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | context.allowsImplicitAnimation = true
116 | context.duration = 0.25
117 | snapshotView.animator().alphaValue = 0.0
| `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | }, completionHandler: {
119 | snapshotView.removeFromSuperview()
AppKit.NSView:286:14: note: mutation of this property is only permitted within the actor
284 | open var needsLayout: Bool { get set }
285 | @available(macOS 10.5, *)
286 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
287 | @available(macOS 10.9, *)
288 | open var layerUsesCoreImageFilters: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:117:30: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | context.allowsImplicitAnimation = true
116 | context.duration = 0.25
117 | snapshotView.animator().alphaValue = 0.0
| `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | }, completionHandler: {
119 | snapshotView.removeFromSuperview()
AppKit.NSView:363:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
361 | open var effectiveAppearance: NSAppearance { get }
362 | @available(macOS 10.5, *)
363 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
364 | @available(macOS 10.5, *)
365 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:119:30: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | snapshotView.animator().alphaValue = 0.0
118 | }, completionHandler: {
119 | snapshotView.removeFromSuperview()
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
120 | })
121 | #else
AppKit.NSView:44:26: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
42 | open func didAddSubview(_ subview: NSView)
43 | open func willRemoveSubview(_ subview: NSView)
44 | @MainActor open func removeFromSuperview()
| `- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
45 | open func replaceSubview(_ oldView: NSView, with newView: NSView)
46 | open func removeFromSuperviewWithoutNeedingDisplay()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:137:14: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 |
136 | private func clean(view: View) {
| `- note: add '@MainActor' to make instance method 'clean(view:)' part of global actor 'MainActor'
137 | view.subviews.forEach { $0.removeFromSuperview() }
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
138 |
139 | #if os(macOS)
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:137:36: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
135 |
136 | private func clean(view: View) {
137 | view.subviews.forEach { $0.removeFromSuperview() }
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 |
139 | #if os(macOS)
AppKit.NSView:44:26: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
42 | open func didAddSubview(_ subview: NSView)
43 | open func willRemoveSubview(_ subview: NSView)
44 | @MainActor open func removeFromSuperview()
| `- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
45 | open func replaceSubview(_ oldView: NSView, with newView: NSView)
46 | open func removeFromSuperviewWithoutNeedingDisplay()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:140:33: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 |
136 | private func clean(view: View) {
| `- note: add '@MainActor' to make instance method 'clean(view:)' part of global actor 'MainActor'
137 | view.subviews.forEach { $0.removeFromSuperview() }
138 |
139 | #if os(macOS)
140 | if let sublayers = view.layer?.sublayers {
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
141 | sublayers.forEach { $0.removeFromSuperlayer() }
142 | }
AppKit.NSView:272:14: note: property declared here
270 | open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:152:14: warning: call to main actor-isolated instance method 'subviewsRecursive()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | extension View {
20 | func subviewsRecursive() -> [View] {
| `- note: calls to instance method 'subviewsRecursive()' from outside of its actor context are implicitly asynchronous
21 | return subviews + subviews.flatMap { $0.subviewsRecursive() }
22 | }
:
148 | }
149 |
150 | private func refreshSubviews(on view: View) {
| `- note: add '@MainActor' to make instance method 'refreshSubviews(on:)' part of global actor 'MainActor'
151 | #if os(macOS)
152 | view.subviewsRecursive().forEach { view in
| `- warning: call to main actor-isolated instance method 'subviewsRecursive()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
153 | (view as? NSTableView)?.reloadData()
154 | (view as? NSCollectionView)?.reloadData()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:153:37: warning: call to main actor-isolated instance method 'reloadData()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | #if os(macOS)
152 | view.subviewsRecursive().forEach { view in
153 | (view as? NSTableView)?.reloadData()
| `- warning: call to main actor-isolated instance method 'reloadData()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
154 | (view as? NSCollectionView)?.reloadData()
155 | view.needsLayout = true
AppKit.NSTableView:41:26: note: calls to instance method 'reloadData()' from outside of its actor context are implicitly asynchronous
39 | open func scrollRowToVisible(_ row: Int)
40 | open func scrollColumnToVisible(_ column: Int)
41 | @MainActor open func reloadData()
| `- note: calls to instance method 'reloadData()' from outside of its actor context are implicitly asynchronous
42 | open func noteNumberOfRowsChanged()
43 | @available(macOS 10.6, *)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:154:42: warning: call to main actor-isolated instance method 'reloadData()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
152 | view.subviewsRecursive().forEach { view in
153 | (view as? NSTableView)?.reloadData()
154 | (view as? NSCollectionView)?.reloadData()
| `- warning: call to main actor-isolated instance method 'reloadData()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
155 | view.needsLayout = true
156 | view.layout()
AppKit.NSCollectionView:9:26: note: calls to instance method 'reloadData()' from outside of its actor context are implicitly asynchronous
7 | open var content: [Any] { get set }
8 | @available(macOS 10.11, *)
9 | @MainActor open func reloadData()
| `- note: calls to instance method 'reloadData()' from outside of its actor context are implicitly asynchronous
10 | weak open var delegate: (any NSCollectionViewDelegate)? { get set }
11 | @available(macOS 10.11, *)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:155:18: warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
153 | (view as? NSTableView)?.reloadData()
154 | (view as? NSCollectionView)?.reloadData()
155 | view.needsLayout = true
| `- warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
156 | view.layout()
157 | view.needsDisplay = true
AppKit.NSView:284:14: note: mutation of this property is only permitted within the actor
282 | open func layout()
283 | @available(macOS 10.7, *)
284 | open var needsLayout: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
285 | @available(macOS 10.5, *)
286 | open var alphaValue: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:156:18: warning: call to main actor-isolated instance method 'layout()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
154 | (view as? NSCollectionView)?.reloadData()
155 | view.needsLayout = true
156 | view.layout()
| `- warning: call to main actor-isolated instance method 'layout()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | view.needsDisplay = true
158 | view.display()
AppKit.NSView:282:15: note: calls to instance method 'layout()' from outside of its actor context are implicitly asynchronous
280 | open func layoutSubtreeIfNeeded()
281 | @available(macOS 10.7, *)
282 | open func layout()
| `- note: calls to instance method 'layout()' from outside of its actor context are implicitly asynchronous
283 | @available(macOS 10.7, *)
284 | open var needsLayout: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:157:18: warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
155 | view.needsLayout = true
156 | view.layout()
157 | view.needsDisplay = true
| `- warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | view.display()
159 | }
AppKit.NSView:177:14: note: mutation of this property is only permitted within the actor
175 | @available(swift, obsoleted: 3, renamed: "setNeedsDisplay(_:)")
176 | open func setNeedsDisplayInRect(_ invalidRect: NSRect)
177 | open var needsDisplay: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
178 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.")
179 | open func lockFocus()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:158:18: warning: call to main actor-isolated instance method 'display()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | view.layout()
157 | view.needsDisplay = true
158 | view.display()
| `- warning: call to main actor-isolated instance method 'display()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | }
160 | #else
AppKit.NSView:191:15: note: calls to instance method 'display()' from outside of its actor context are implicitly asynchronous
189 | open class var focusView: NSView? { get }
190 | open var visibleRect: NSRect { get }
191 | open func display()
| `- note: calls to instance method 'display()' from outside of its actor context are implicitly asynchronous
192 | open func displayIfNeeded()
193 | open func displayIfNeededIgnoringOpacity()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:174:70: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
174 | for case let scrollView as ScrollView in viewController.view.subviews {
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | scrollViews.append(scrollView)
176 | }
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:174:65: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
174 | for case let scrollView as ScrollView in viewController.view.subviews {
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | scrollViews.append(scrollView)
176 | }
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:178:54: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
176 | }
177 |
178 | if let parentViewController = viewController.parent {
| `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
179 | for case let scrollView as ScrollView in parentViewController.view.subviews {
180 | scrollViews.append(scrollView)
AppKit.NSViewController:3:25: note: property declared here
1 | extension NSViewController {
2 | @available(macOS 10.10, *)
3 | @MainActor open var parent: NSViewController? { get }
| `- note: property declared here
4 | @available(macOS 10.10, *)
5 | @available(swift, obsoleted: 3, renamed: "parent")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:179:80: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
177 |
178 | if let parentViewController = viewController.parent {
179 | for case let scrollView as ScrollView in parentViewController.view.subviews {
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | scrollViews.append(scrollView)
181 | }
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:179:75: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
177 |
178 | if let parentViewController = viewController.parent {
179 | for case let scrollView as ScrollView in parentViewController.view.subviews {
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 | scrollViews.append(scrollView)
181 | }
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:184:51: warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
182 | }
183 |
184 | for childViewController in viewController.children {
| `- warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
185 | for case let scrollView as ScrollView in childViewController.view.subviews {
186 | scrollViews.append(scrollView)
AppKit.NSViewController:8:14: note: property declared here
6 | open var parentViewController: NSViewController? { get }
7 | @available(macOS 10.10, *)
8 | open var children: [NSViewController] { get set }
| `- note: property declared here
9 | @available(macOS 10.10, *)
10 | @available(swift, obsoleted: 4.2, renamed: "children")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:185:79: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
183 |
184 | for childViewController in viewController.children {
185 | for case let scrollView as ScrollView in childViewController.view.subviews {
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
186 | scrollViews.append(scrollView)
187 | }
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | @MainActor open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:185:74: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 |
171 | private func indexScrollViews(on viewController: ViewController) -> [ScrollView] {
| `- note: add '@MainActor' to make instance method 'indexScrollViews(on:)' part of global actor 'MainActor'
172 | var scrollViews = [ScrollView]()
173 |
:
183 |
184 | for childViewController in viewController.children {
185 | for case let scrollView as ScrollView in childViewController.view.subviews {
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
186 | scrollViews.append(scrollView)
187 | }
AppKit.NSViewController:9:24: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:199:44: warning: call to main actor-isolated instance method 'scroll(to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
191 | }
192 |
193 | private func syncOldScrollViews(_ oldScrollViews: [ScrollView], with newScrollViews: [ScrollView]) {
| `- note: add '@MainActor' to make instance method 'syncOldScrollViews(_:with:)' part of global actor 'MainActor'
194 | for (offset, scrollView) in newScrollViews.enumerated() {
195 | if offset < oldScrollViews.count {
:
197 | if type(of: scrollView) == type(of: oldScrollView) {
198 | #if os(macOS)
199 | scrollView.contentView.scroll(to: oldScrollView.documentVisibleRect.origin)
| `- warning: call to main actor-isolated instance method 'scroll(to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
200 | #else
201 | scrollView.contentOffset = oldScrollView.contentOffset
AppKit.NSClipView:13:26: note: calls to instance method 'scroll(to:)' from outside of its actor context are implicitly asynchronous
11 | @available(swift, obsoleted: 3, renamed: "autoscroll(with:)")
12 | open func autoscroll(_ event: NSEvent) -> Bool
13 | @MainActor open func scroll(to newOrigin: NSPoint)
| `- note: calls to instance method 'scroll(to:)' from outside of its actor context are implicitly asynchronous
14 | @available(swift, obsoleted: 3, renamed: "scroll(to:)")
15 | open func scrollToPoint(_ newOrigin: NSPoint)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:199:32: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
191 | }
192 |
193 | private func syncOldScrollViews(_ oldScrollViews: [ScrollView], with newScrollViews: [ScrollView]) {
| `- note: add '@MainActor' to make instance method 'syncOldScrollViews(_:with:)' part of global actor 'MainActor'
194 | for (offset, scrollView) in newScrollViews.enumerated() {
195 | if offset < oldScrollViews.count {
:
197 | if type(of: scrollView) == type(of: oldScrollView) {
198 | #if os(macOS)
199 | scrollView.contentView.scroll(to: oldScrollView.documentVisibleRect.origin)
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
200 | #else
201 | scrollView.contentOffset = oldScrollView.contentOffset
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:199:69: warning: main actor-isolated property 'documentVisibleRect' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
191 | }
192 |
193 | private func syncOldScrollViews(_ oldScrollViews: [ScrollView], with newScrollViews: [ScrollView]) {
| `- note: add '@MainActor' to make instance method 'syncOldScrollViews(_:with:)' part of global actor 'MainActor'
194 | for (offset, scrollView) in newScrollViews.enumerated() {
195 | if offset < oldScrollViews.count {
:
197 | if type(of: scrollView) == type(of: oldScrollView) {
198 | #if os(macOS)
199 | scrollView.contentView.scroll(to: oldScrollView.documentVisibleRect.origin)
| `- warning: main actor-isolated property 'documentVisibleRect' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
200 | #else
201 | scrollView.contentOffset = oldScrollView.contentOffset
AppKit.NSScrollView:24:14: note: property declared here
22 | @available(macOS, unavailable, introduced: 10.0, deprecated: 10.7, message: "+contentSizeForFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle: instead")
23 | open class func contentSizeForFrameSize(_ fSize: NSSize, hasHorizontalScroller hFlag: Bool, hasVerticalScroller vFlag: Bool, borderType type: NSBorderType) -> NSSize
24 | open var documentVisibleRect: NSRect { get }
| `- note: property declared here
25 | open var contentSize: NSSize { get }
26 | open var documentView: NSView? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:210:24: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 | }
207 |
208 | private func createSnapshot(from view: View) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshot(from:)' part of global actor 'MainActor'
209 | #if os(macOS)
210 | let snapshot = NSImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | snapshot.image = view.snapshot
212 | snapshot.frame.size = view.frame.size
AppKit.NSImageView:28:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
26 | public init(frame frameRect: NSRect)
27 | public init?(coder: NSCoder)
28 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
29 | open func accessibilityLabel() -> String?
30 | @MainActor open func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:211:18: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
206 | }
207 |
208 | private func createSnapshot(from view: View) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshot(from:)' part of global actor 'MainActor'
209 | #if os(macOS)
210 | let snapshot = NSImageView()
211 | snapshot.image = view.snapshot
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
212 | snapshot.frame.size = view.frame.size
213 | return snapshot
AppKit.NSImageView:7:14: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:211:31: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | }
207 |
208 | private func createSnapshot(from view: View) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshot(from:)' part of global actor 'MainActor'
209 | #if os(macOS)
210 | let snapshot = NSImageView()
211 | snapshot.image = view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
212 | snapshot.frame.size = view.frame.size
213 | return snapshot
:
224 | #if os(macOS)
225 | fileprivate extension NSView {
226 | var snapshot: NSImage {
| `- note: property declared here
227 | guard let bitmapRep = bitmapImageRepForCachingDisplay(in: bounds) else { return NSImage() }
228 | cacheDisplay(in: bounds, to: bitmapRep)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:212:18: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
206 | }
207 |
208 | private func createSnapshot(from view: View) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshot(from:)' part of global actor 'MainActor'
209 | #if os(macOS)
210 | let snapshot = NSImageView()
211 | snapshot.image = view.snapshot
212 | snapshot.frame.size = view.frame.size
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
213 | return snapshot
214 | #else
AppKit.NSView:60:14: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/Vaccine.swift:212:36: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | }
207 |
208 | private func createSnapshot(from view: View) -> View? {
| `- note: add '@MainActor' to make instance method 'createSnapshot(from:)' part of global actor 'MainActor'
209 | #if os(macOS)
210 | let snapshot = NSImageView()
211 | snapshot.image = view.snapshot
212 | snapshot.frame.size = view.frame.size
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
213 | return snapshot
214 | #else
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
[83/89] Emitting module HotReloading
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/DynamicCast.swift:35:16: warning: static property 'swift_dynamicCast' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | _ size: size_t) -> Bool
34 |
35 | static let swift_dynamicCast = strdup("swift_dynamicCast")!
| |- warning: static property 'swift_dynamicCast' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swift_dynamicCast' 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
36 | static let original_dynamicCast: injection_dynamicCast_t? =
37 | autoBitCast(dlsym(SwiftMeta.RTLD_DEFAULT, swift_dynamicCast))
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/DynamicCast.swift:38:16: warning: static property 'hooked_dynamicCast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | static let original_dynamicCast: injection_dynamicCast_t? =
37 | autoBitCast(dlsym(SwiftMeta.RTLD_DEFAULT, swift_dynamicCast))
38 | static var hooked_dynamicCast: UnsafeMutableRawPointer? = {
| |- warning: static property 'hooked_dynamicCast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hooked_dynamicCast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hooked_dynamicCast' 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
39 | let module = _typeName(DynamicCast.self)
40 | .components(separatedBy: ".")[0]
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/DynamicCast.swift:48:16: warning: static property 'rebinds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }()
47 |
48 | static var rebinds = original_dynamicCast != nil &&
| |- warning: static property 'rebinds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'rebinds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'rebinds' 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
49 | hooked_dynamicCast != nil ? [
50 | rebinding(name: swift_dynamicCast,
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/DynamicCast.swift:54:16: warning: static property 'hook_appDynamicCast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | replaced: nil)] : []
53 |
54 | static var hook_appDynamicCast: Void = {
| |- warning: static property 'hook_appDynamicCast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hook_appDynamicCast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hook_appDynamicCast' 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
55 | appBundleImages { imageName, header, slide in
56 | rebind_symbols_image(autoBitCast(header), slide,
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:21:16: warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public class FileWatcher: NSObject {
20 | public typealias InjectionCallback = (_ filesChanged: NSArray, _ ideProcPath: String) -> Void
21 | static var INJECTABLE_PATTERN = try! NSRegularExpression(
| |- warning: static property 'INJECTABLE_PATTERN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'INJECTABLE_PATTERN' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'INJECTABLE_PATTERN' 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
22 | pattern: "[^~]\\.(mm?|cpp|swift|storyboard|xib)$")
23 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/FileWatcher.swift:25:16: warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | static let logsPref = "HotReloadingBuildLogsDir"
25 | static var derivedLog =
| |- warning: static property 'derivedLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'derivedLog' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'derivedLog' 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
26 | UserDefaults.standard.string(forKey: logsPref) {
27 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:28:16: warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | extension SwiftInjection {
27 |
28 | static var injectableReducerSymbols = Set<String>()
| |- warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectableReducerSymbols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectableReducerSymbols' 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
29 |
30 | static var checkReducerInitializers: Void = {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:30:16: warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var injectableReducerSymbols = Set<String>()
29 |
30 | static var checkReducerInitializers: Void = {
| |- warning: static property 'checkReducerInitializers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkReducerInitializers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkReducerInitializers' 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
31 | var expectedInjectableReducerSymbols = Set<String>()
32 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/StandaloneInjection.swift:29:16: warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | class StandaloneInjection: InjectionClient {
28 |
29 | static var singleton: StandaloneInjection?
| |- warning: static property 'singleton' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'singleton' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'singleton' 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
30 | var watchers = [FileWatcher]()
31 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:37:24: warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | extension NSObject {
36 |
37 | private static var lastEvalByClass = [String: String]()
| |- warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastEvalByClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastEvalByClass' 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
38 |
39 | @objc public func swiftEval(code: String) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:157:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
155 | public class SwiftEval: NSObject {
156 |
157 | static var instance = SwiftEval()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' 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
158 | static let bundleLink = "/tmp/injection.link"
159 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:118:16: warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | static let notification = Notification.Name("INJECTION_BUNDLE_NOTIFICATION")
117 |
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
| |- warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectionDetail' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectionDetail' 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
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:203:20: warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
201 |
202 | injectionDetail = getenv(INJECTION_DETAIL) != nil
203 | SwiftTrace.preserveStatics = getenv(INJECTION_PRESERVE_STATICS) != nil
| `- warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:448:23: note: class property declared here
446 | }
447 |
448 | public static var preserveStatics = false
| `- note: class property declared here
449 | public static let deviceInjection = lastPseudoImage() != nil
450 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:206:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
206 | SwiftTrace.typeLookup = true
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
207 | }
208 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:336:13: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
334 | DispatchQueue.main.async {
335 | // Thanks https://github.com/johnno1962/injectionforxcode/pull/234
336 | if !testClasses.isEmpty {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
337 | testQueue.async {
338 | testQueue.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:340:37: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
338 | testQueue.suspend()
339 | let timer = Timer(timeInterval: 0, repeats:false, block: { _ in
340 | for newClass in testClasses {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
341 | NSObject.runXCTestCase(newClass)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:350:28: warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
348 | if !SwiftTrace.deviceInjection {
349 | typealias ClassIMP = @convention(c) (AnyClass, Selector) -> ()
350 | for cls in injectedClasses {
| `- warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
351 | if let classMethod = class_getClassMethod(cls, injectedSEL) {
352 | let classIMP = method_getImplementation(classMethod)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:357:38: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
355 | }
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:358:56: warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
| `- warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:360:73: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:23:16: warning: static property 'save_getKeyPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | static let keyPathFuncName = "swift_getKeyPath"
23 | static var save_getKeyPath: KeyPathFunc!
| |- warning: static property 'save_getKeyPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'save_getKeyPath' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'save_getKeyPath' 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
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:25:16: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var save_getKeyPath: KeyPathFunc!
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
| |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cache' 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
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
27 | static var hasInjected = false
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:26:16: warning: static property 'lastInjectionNumber' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
| |- warning: static property 'lastInjectionNumber' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastInjectionNumber' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastInjectionNumber' 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
27 | static var hasInjected = false
28 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:27:16: warning: static property 'hasInjected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var cache = [String: ViewBodyKeyPaths]()
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
27 | static var hasInjected = false
| |- warning: static property 'hasInjected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasInjected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hasInjected' 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
28 |
29 | var lastOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftSweeper.swift:45:16: warning: static property 'sweepWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | }()
44 |
45 | static var sweepWarned = false
| |- warning: static property 'sweepWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sweepWarned' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sweepWarned' 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
46 |
47 | public class func performSweep(oldClasses: [AnyClass], _ tmpfile: String,
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftSweeper.swift:111:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | class SwiftSweeper {
110 |
111 | static var current: SwiftSweeper?
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
112 |
113 | let instanceTask: (AnyObject) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftSweeper.swift:125:38: warning: conditional cast from 'Any' to 'AnyObject' always succeeds
123 | /// Fixes a potential crash that the value is not accessible during injection.
124 | // print(value)
125 | guard !containsType && value as? AnyObject != nil else { return }
| `- warning: conditional cast from 'Any' to 'AnyObject' always succeeds
126 |
127 | let mirror = Mirror(reflecting: value)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/UnhidingEval.swift:50:16: warning: static property 'lastProcessed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | static let unhideQueue = DispatchQueue(label: "unhide")
49 |
50 | static var lastProcessed = [URL: time_t]()
| |- warning: static property 'lastProcessed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastProcessed' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastProcessed' 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
51 |
52 | var unhidden = false
[84/89] Compiling HotReloading SwiftInterpose.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInterpose.swift:67:60: warning: reference to class property 'injectableSymbol' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
65 | }
66 | #endif
67 | filterImageSymbols(ST_LAST_IMAGE, .any, SwiftTrace.injectableSymbol) {
| `- warning: reference to class property 'injectableSymbol' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
68 | (loadedFunc, symbol, _, _) in
69 | guard let existing = dlsym(main, symbol) ??
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:454:29: note: class property declared here
452 | /// - Parameter symname: Pointer to symbol name
453 | /// - Returns: Whether symbol should be patched
454 | @objc public static var injectableSymbol: // STSymbolFilter
| `- note: class property declared here
455 | (UnsafePointer<CChar>) -> Bool = { symname in
456 | // print("Injectable?", String(cString: symname))
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInterpose.swift:97:39: warning: reference to class property 'initialRebindings' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
95 | // Need to apply previous interposes
96 | // to the newly loaded dylib as well.
97 | var previous = SwiftTrace.initialRebindings
| `- warning: reference to class property 'initialRebindings' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
98 | var already = Set<UnsafeRawPointer>()
99 | let interposed = NSObject.swiftTraceInterposed.bindMemory(to:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftInterpose.swift:30:23: note: class property declared here
28 |
29 | /// Base rebindings applied to each injected file.
30 | public static var initialRebindings = [rebinding]()
| `- note: class property declared here
31 |
32 | /// "interpose" aspects onto Swift function name.
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInterpose.swift:155:23: warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
153 | symbolSuffixes.append("Ma") // meta data accessors
154 | }
155 | if SwiftTrace.preserveStatics {
| `- warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
156 | symbolSuffixes.append("vau") // static variable "mutable addressors"
157 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:448:23: note: class property declared here
446 | }
447 |
448 | public static var preserveStatics = false
| `- note: class property declared here
449 | public static let deviceInjection = lastPseudoImage() != nil
450 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:118:16: warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | static let notification = Notification.Name("INJECTION_BUNDLE_NOTIFICATION")
117 |
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
| |- warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectionDetail' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectionDetail' 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
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[85/89] Compiling HotReloading SwiftKeyPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:23:16: warning: static property 'save_getKeyPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | static let keyPathFuncName = "swift_getKeyPath"
23 | static var save_getKeyPath: KeyPathFunc!
| |- warning: static property 'save_getKeyPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'save_getKeyPath' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'save_getKeyPath' 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
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:25:16: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var save_getKeyPath: KeyPathFunc!
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
| |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cache' 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
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
27 | static var hasInjected = false
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:26:16: warning: static property 'lastInjectionNumber' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | static var cache = [String: ViewBodyKeyPaths]()
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
| |- warning: static property 'lastInjectionNumber' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastInjectionNumber' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastInjectionNumber' 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
27 | static var hasInjected = false
28 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:27:16: warning: static property 'hasInjected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var cache = [String: ViewBodyKeyPaths]()
26 | static var lastInjectionNumber = SwiftEval().injectionNumber
27 | static var hasInjected = false
| |- warning: static property 'hasInjected' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hasInjected' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hasInjected' 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
28 |
29 | var lastOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftKeyPath.swift:43:16: warning: reference to class property 'initialRebindings' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | var keyPathRebinding = [rebinding(name: strdup(ViewBodyKeyPaths.keyPathFuncName),
42 | replacement: replacer, replaced: nil)]
43 | SwiftTrace.initialRebindings += keyPathRebinding
| `- warning: reference to class property 'initialRebindings' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
44 | _ = SwiftTrace.apply(rebindings: &keyPathRebinding)
45 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftInterpose.swift:30:23: note: class property declared here
28 |
29 | /// Base rebindings applied to each injected file.
30 | public static var initialRebindings = [rebinding]()
| `- note: class property declared here
31 |
32 | /// "interpose" aspects onto Swift function name.
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:157:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
155 | public class SwiftEval: NSObject {
156 |
157 | static var instance = SwiftEval()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' 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
158 | static let bundleLink = "/tmp/injection.link"
159 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[86/89] Compiling HotReloading InjectionStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionStats.swift:59:34: warning: reference to class property 'traceableFunctionSuffixes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
57 | @objc public class func packageNames() -> [String] {
58 | var packages = Set<String>()
59 | for suffix in SwiftTrace.traceableFunctionSuffixes {
| `- warning: reference to class property 'traceableFunctionSuffixes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 | findSwiftSymbols(Bundle.main.executablePath!, suffix) {
61 | (_, symname: UnsafePointer<Int8>, _, _) in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftInterpose.swift:24:23: note: class property declared here
22 | /// getters of Opaque type (for SwiftUI body properties)
23 | /// and setters and destructors.
24 | public static var traceableFunctionSuffixes = ["fC", "F", "Qrvg", "s", "fD"]
| `- note: class property declared here
25 |
26 | /// Regexp pattern for functions to exclude from interposing
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionStats.swift:73:46: warning: reference to class property 'liveObjects' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | @objc public class func objectCounts() {
73 | for (className, count) in SwiftTrace.liveObjects
| `- warning: reference to class property 'liveObjects' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 | .map({(_typeName(autoBitCast($0.key)), $0.value.count)})
75 | .sorted(by: {$0.0 < $1.0}) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftLifetime.swift:32:23: note: class property declared here
30 | extension SwiftTrace {
31 |
32 | public static var liveObjects = [UnsafeRawPointer: Set<UnsafeRawPointer>]()
| `- note: class property declared here
33 | public static var liveObjectsLock = OS_SPINLOCK_INIT
34 | private static var reaperKey = strdup("_reaper_")!
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[87/89] Compiling HotReloading ObjcInjection.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionStats.swift:59:34: warning: reference to class property 'traceableFunctionSuffixes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
57 | @objc public class func packageNames() -> [String] {
58 | var packages = Set<String>()
59 | for suffix in SwiftTrace.traceableFunctionSuffixes {
| `- warning: reference to class property 'traceableFunctionSuffixes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 | findSwiftSymbols(Bundle.main.executablePath!, suffix) {
61 | (_, symname: UnsafePointer<Int8>, _, _) in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftInterpose.swift:24:23: note: class property declared here
22 | /// getters of Opaque type (for SwiftUI body properties)
23 | /// and setters and destructors.
24 | public static var traceableFunctionSuffixes = ["fC", "F", "Qrvg", "s", "fD"]
| `- note: class property declared here
25 |
26 | /// Regexp pattern for functions to exclude from interposing
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/InjectionStats.swift:73:46: warning: reference to class property 'liveObjects' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | @objc public class func objectCounts() {
73 | for (className, count) in SwiftTrace.liveObjects
| `- warning: reference to class property 'liveObjects' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 | .map({(_typeName(autoBitCast($0.key)), $0.value.count)})
75 | .sorted(by: {$0.0 < $1.0}) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftLifetime.swift:32:23: note: class property declared here
30 | extension SwiftTrace {
31 |
32 | public static var liveObjects = [UnsafeRawPointer: Set<UnsafeRawPointer>]()
| `- note: class property declared here
33 | public static var liveObjectsLock = OS_SPINLOCK_INIT
34 | private static var reaperKey = strdup("_reaper_")!
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
[88/89] Compiling HotReloading SwiftEval.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:37:24: warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | extension NSObject {
36 |
37 | private static var lastEvalByClass = [String: String]()
| |- warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastEvalByClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastEvalByClass' 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
38 |
39 | @objc public func swiftEval(code: String) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:157:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
155 | public class SwiftEval: NSObject {
156 |
157 | static var instance = SwiftEval()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' 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
158 | static let bundleLink = "/tmp/injection.link"
159 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:118:16: warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | static let notification = Notification.Name("INJECTION_BUNDLE_NOTIFICATION")
117 |
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
| |- warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectionDetail' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectionDetail' 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
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:203:20: warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
201 |
202 | injectionDetail = getenv(INJECTION_DETAIL) != nil
203 | SwiftTrace.preserveStatics = getenv(INJECTION_PRESERVE_STATICS) != nil
| `- warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:448:23: note: class property declared here
446 | }
447 |
448 | public static var preserveStatics = false
| `- note: class property declared here
449 | public static let deviceInjection = lastPseudoImage() != nil
450 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:206:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
206 | SwiftTrace.typeLookup = true
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
207 | }
208 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:336:13: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
334 | DispatchQueue.main.async {
335 | // Thanks https://github.com/johnno1962/injectionforxcode/pull/234
336 | if !testClasses.isEmpty {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
337 | testQueue.async {
338 | testQueue.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:340:37: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
338 | testQueue.suspend()
339 | let timer = Timer(timeInterval: 0, repeats:false, block: { _ in
340 | for newClass in testClasses {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
341 | NSObject.runXCTestCase(newClass)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:350:28: warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
348 | if !SwiftTrace.deviceInjection {
349 | typealias ClassIMP = @convention(c) (AnyClass, Selector) -> ()
350 | for cls in injectedClasses {
| `- warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
351 | if let classMethod = class_getClassMethod(cls, injectedSEL) {
352 | let classIMP = method_getImplementation(classMethod)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:357:38: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
355 | }
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:358:56: warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
| `- warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:360:73: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:28:16: warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | extension SwiftInjection {
27 |
28 | static var injectableReducerSymbols = Set<String>()
| |- warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectableReducerSymbols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectableReducerSymbols' 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
29 |
30 | static var checkReducerInitializers: Void = {
[89/89] Compiling HotReloading SwiftInjection.swift
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:37:24: warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | extension NSObject {
36 |
37 | private static var lastEvalByClass = [String: String]()
| |- warning: static property 'lastEvalByClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastEvalByClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastEvalByClass' 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
38 |
39 | @objc public func swiftEval(code: String) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftEval.swift:157:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
155 | public class SwiftEval: NSObject {
156 |
157 | static var instance = SwiftEval()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' 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
158 | static let bundleLink = "/tmp/injection.link"
159 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:90:22: warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | public typealias SymbolName = UnsafePointer<CChar>
90 | @objc static var traceInjection = false
| |- warning: static property 'traceInjection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'traceInjection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'traceInjection' 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
91 |
92 | // The various environment variables
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:118:16: warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | static let notification = Notification.Name("INJECTION_BUNDLE_NOTIFICATION")
117 |
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
| |- warning: static property 'injectionDetail' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectionDetail' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectionDetail' 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
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:120:16: warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 | static var injectionDetail = getenv(INJECTION_DETAIL) != nil
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
| |- warning: static property 'objcClassRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'objcClassRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'objcClassRefs' 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
121 | static var descriptorRefs = NSMutableArray()
122 | static var injectedPrefix: String {
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:121:16: warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
119 | static let registerClasses = false && SwiftTrace.deviceInjection
120 | static var objcClassRefs = NSMutableArray()
121 | static var descriptorRefs = NSMutableArray()
| |- warning: static property 'descriptorRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'descriptorRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'descriptorRefs' 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
122 | static var injectedPrefix: String {
123 | return "#\(SwiftEval.instance.injectionNumber-100)/"
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:203:20: warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
201 |
202 | injectionDetail = getenv(INJECTION_DETAIL) != nil
203 | SwiftTrace.preserveStatics = getenv(INJECTION_PRESERVE_STATICS) != nil
| `- warning: reference to class property 'preserveStatics' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftTrace.swift:448:23: note: class property declared here
446 | }
447 |
448 | public static var preserveStatics = false
| `- note: class property declared here
449 | public static let deviceInjection = lastPseudoImage() != nil
450 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:206:24: warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
204 | if getenv(INJECTION_TRACE) != nil {
205 | traceInjection = true
206 | SwiftTrace.typeLookup = true
| `- warning: reference to class property 'typeLookup' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
207 | }
208 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftTrace/SwiftTraceD/SwiftArgs.swift:105:23: note: class property declared here
103 | Enable auto decoration of unknown types
104 | */
105 | static public var typeLookup = false
| `- note: class property declared here
106 |
107 | /**
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:336:13: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
334 | DispatchQueue.main.async {
335 | // Thanks https://github.com/johnno1962/injectionforxcode/pull/234
336 | if !testClasses.isEmpty {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
337 | testQueue.async {
338 | testQueue.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:340:37: warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
338 | testQueue.suspend()
339 | let timer = Timer(timeInterval: 0, repeats:false, block: { _ in
340 | for newClass in testClasses {
| `- warning: reference to captured var 'testClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
341 | NSObject.runXCTestCase(newClass)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:350:28: warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
348 | if !SwiftTrace.deviceInjection {
349 | typealias ClassIMP = @convention(c) (AnyClass, Selector) -> ()
350 | for cls in injectedClasses {
| `- warning: reference to captured var 'injectedClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
351 | if let classMethod = class_getClassMethod(cls, injectedSEL) {
352 | let classIMP = method_getImplementation(classMethod)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:357:38: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
355 | }
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:358:56: warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
356 | }
357 | performSweep(oldClasses: sweepClasses, tmpfile,
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
| `- warning: reference to captured var 'injectedGenerics' in concurrently-executing code; this is an error in the Swift 6 language mode
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/SwiftInjection.swift:360:73: warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
358 | getenv(INJECTION_OF_GENERICS) != nil ? injectedGenerics : [])
359 |
360 | NotificationCenter.default.post(name: notification, object: sweepClasses)
| `- warning: reference to captured var 'sweepClasses' in concurrently-executing code; this is an error in the Swift 6 language mode
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/HotReloading/ReducerInjection.swift:28:16: warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | extension SwiftInjection {
27 |
28 | static var injectableReducerSymbols = Set<String>()
| |- warning: static property 'injectableReducerSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'injectableReducerSymbols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'injectableReducerSymbols' 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
29 |
30 | static var checkReducerInitializers: Void = {
Build complete! (22.10s)
Build complete.
{
"cxx_language_standard" : "c++11",
"dependencies" : [
{
"identity" : "swifttrace",
"requirement" : {
"range" : [
{
"lower_bound" : "8.6.1",
"upper_bound" : "8.7.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/SwiftTrace"
},
{
"identity" : "swiftregex5",
"requirement" : {
"range" : [
{
"lower_bound" : "6.1.2",
"upper_bound" : "6.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/SwiftRegex5"
},
{
"identity" : "xprobeplugin",
"requirement" : {
"range" : [
{
"lower_bound" : "2.9.10",
"upper_bound" : "2.10.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/XprobePlugin"
},
{
"identity" : "remote",
"requirement" : {
"range" : [
{
"lower_bound" : "2.3.5",
"upper_bound" : "2.4.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/Remote"
},
{
"identity" : "profileswiftui",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.3",
"upper_bound" : "1.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/ProfileSwiftUI"
}
],
"manifest_display_name" : "HotReloading",
"name" : "HotReloading",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "HotReloading",
"targets" : [
"HotReloading"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HotReloadingGuts",
"targets" : [
"HotReloadingGuts"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "injectiondGuts",
"targets" : [
"injectiondGuts"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "injectiond",
"targets" : [
"injectiond"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "injectiondGuts",
"module_type" : "ClangTarget",
"name" : "injectiondGuts",
"path" : "Sources/injectiondGuts",
"product_memberships" : [
"injectiondGuts",
"injectiond"
],
"sources" : [
"SignerService.m"
],
"type" : "library"
},
{
"c99name" : "injectiond",
"module_type" : "SwiftTarget",
"name" : "injectiond",
"path" : "Sources/injectiond",
"product_dependencies" : [
"SwiftRegex",
"XprobeUI",
"RemoteUI"
],
"product_memberships" : [
"injectiond"
],
"sources" : [
"AppDelegate.swift",
"DeviceServer.swift",
"Experimental.swift",
"FileWatcher.swift",
"InjectionServer.swift",
"SwiftEval.swift",
"UnhidingEval.swift",
"UpdateCheck.swift",
"main.swift"
],
"target_dependencies" : [
"HotReloadingGuts",
"injectiondGuts"
],
"type" : "executable"
},
{
"c99name" : "HotReloadingGuts",
"module_type" : "ClangTarget",
"name" : "HotReloadingGuts",
"path" : "Sources/HotReloadingGuts",
"product_memberships" : [
"HotReloading",
"HotReloadingGuts",
"injectiond"
],
"sources" : [
"ClientBoot.mm",
"SimpleSocket.mm",
"Unhide.mm"
],
"type" : "library"
},
{
"c99name" : "HotReloading",
"module_type" : "SwiftTarget",
"name" : "HotReloading",
"path" : "Sources/HotReloading",
"product_dependencies" : [
"SwiftTraceD",
"Xprobe",
"SwiftRegex",
"ProfileSwiftUI"
],
"product_memberships" : [
"HotReloading"
],
"sources" : [
"DeviceInjection.swift",
"DynamicCast.swift",
"FileWatcher.swift",
"InjectionClient.swift",
"InjectionStats.swift",
"ObjcInjection.swift",
"ReducerInjection.swift",
"StandaloneInjection.swift",
"SwiftEval.swift",
"SwiftInjection.swift",
"SwiftInterpose.swift",
"SwiftKeyPath.swift",
"SwiftSweeper.swift",
"UnhidingEval.swift",
"Vaccine.swift"
],
"target_dependencies" : [
"HotReloadingGuts"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.