The Swift Package Index logo.Swift Package Index

Build Information

Successful build of gir2swift, reference 18.0.0 (fc0802), with Swift 6.1 for macOS (SPM) on 11 Mar 2026 21:05:03 UTC.

Swift 6 data race errors: 358

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
[241/284] Compiling libgir2swift postprocessing.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code
144 |                         try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 |                     }
146 |                     outq.async(group: queues) { outputFiles.insert(fileName) }
    |                                                 `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
147 |                 } catch {
148 |                     outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
150 |             }
151 |             func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
    |                                              |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
134 |             if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 |             func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
    |                  `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
137 |                 do {
138 |                     if doAppend && fileManager.fileExists(atPath: fileName) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code
204 |                         return convert(type)
205 |                     }.joined(separator: "\n\n")
206 |                     outq.async(group: queues) { outputString += code }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
207 |                 }
208 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:215:26: warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
213 |                     let ascii = atChar + UInt8(i)
214 |                     let f = "\(dir)/\(node)-\(Character(UnicodeScalar(ascii))).swift"
215 |                     try? fileManager.removeItem(atPath: f)
    |                          `- warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:96:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 94 | extern NSNotificationName const NSUbiquityIdentityDidChangeNotification API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
 95 |
 96 | @interface NSFileManager : NSObject
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 97 |
 98 | /* Returns the default singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 |                         outq.async(group: queues) { outputFiles.insert(f) }
    |                                                     `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
219 |                     }
220 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
222 |
223 |             background.async(group: queues) {
224 |                 let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
227 |                     write(aliases, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code
227 |                     write(aliases, to: f)
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
230 |             }
231 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
230 |             }
231 |             background.async(group: queues) {
232 |                 let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
237 |             }
238 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
237 |             }
238 |             background.async(group: queues) {
239 |                 let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
244 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
    |                                                       `- warning: mutation of captured var 'outputString' in concurrently-executing code
244 |             }
245 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
244 |             }
245 |             background.async(group: queues) {
246 |                 let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                    `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
251 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
251 |             }
252 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
251 |             }
252 |             background.async(group: queues) {
253 |                 let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
258 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
258 |             }
259 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
258 |             }
259 |             background.async(group: queues) {
260 |                 let convert = swiftUnionsConversion(gir.functions)
    |                                                     `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
261 |                 let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 |                 if let dir = outputDirectory {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
262 |                 if let dir = outputDirectory {
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 |                 } else { outq.async(group: queues) { outputString += unions } }
266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code
144 |                         try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 |                     }
146 |                     outq.async(group: queues) { outputFiles.insert(fileName) }
    |                                                 `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
147 |                 } catch {
148 |                     outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
150 |             }
151 |             func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
    |                                              |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
134 |             if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 |             func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
    |                  `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
137 |                 do {
138 |                     if doAppend && fileManager.fileExists(atPath: fileName) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code
204 |                         return convert(type)
205 |                     }.joined(separator: "\n\n")
206 |                     outq.async(group: queues) { outputString += code }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
207 |                 }
208 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:215:26: warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
213 |                     let ascii = atChar + UInt8(i)
214 |                     let f = "\(dir)/\(node)-\(Character(UnicodeScalar(ascii))).swift"
215 |                     try? fileManager.removeItem(atPath: f)
    |                          `- warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:96:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 94 | extern NSNotificationName const NSUbiquityIdentityDidChangeNotification API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
 95 |
 96 | @interface NSFileManager : NSObject
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 97 |
 98 | /* Returns the default singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 |                         outq.async(group: queues) { outputFiles.insert(f) }
    |                                                     `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
219 |                     }
220 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
222 |
223 |             background.async(group: queues) {
224 |                 let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
227 |                     write(aliases, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code
227 |                     write(aliases, to: f)
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
230 |             }
231 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
230 |             }
231 |             background.async(group: queues) {
232 |                 let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
237 |             }
238 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
237 |             }
238 |             background.async(group: queues) {
239 |                 let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
244 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
    |                                                       `- warning: mutation of captured var 'outputString' in concurrently-executing code
244 |             }
245 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
244 |             }
245 |             background.async(group: queues) {
246 |                 let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                    `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
251 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
251 |             }
252 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
251 |             }
252 |             background.async(group: queues) {
253 |                 let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
258 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
258 |             }
259 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
258 |             }
259 |             background.async(group: queues) {
260 |                 let convert = swiftUnionsConversion(gir.functions)
    |                                                     `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
261 |                 let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 |                 if let dir = outputDirectory {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
262 |                 if let dir = outputDirectory {
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 |                 } else { outq.async(group: queues) { outputString += unions } }
266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code
144 |                         try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 |                     }
146 |                     outq.async(group: queues) { outputFiles.insert(fileName) }
    |                                                 `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
147 |                 } catch {
148 |                     outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
150 |             }
151 |             func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
    |                                              |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
134 |             if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 |             func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
    |                  `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
137 |                 do {
138 |                     if doAppend && fileManager.fileExists(atPath: fileName) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code
204 |                         return convert(type)
205 |                     }.joined(separator: "\n\n")
206 |                     outq.async(group: queues) { outputString += code }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
207 |                 }
208 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:215:26: warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
213 |                     let ascii = atChar + UInt8(i)
214 |                     let f = "\(dir)/\(node)-\(Character(UnicodeScalar(ascii))).swift"
215 |                     try? fileManager.removeItem(atPath: f)
    |                          `- warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:96:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 94 | extern NSNotificationName const NSUbiquityIdentityDidChangeNotification API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
 95 |
 96 | @interface NSFileManager : NSObject
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 97 |
 98 | /* Returns the default singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 |                         outq.async(group: queues) { outputFiles.insert(f) }
    |                                                     `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
219 |                     }
220 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
222 |
223 |             background.async(group: queues) {
224 |                 let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
227 |                     write(aliases, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code
227 |                     write(aliases, to: f)
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
230 |             }
231 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
230 |             }
231 |             background.async(group: queues) {
232 |                 let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
237 |             }
238 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
237 |             }
238 |             background.async(group: queues) {
239 |                 let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
244 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
    |                                                       `- warning: mutation of captured var 'outputString' in concurrently-executing code
244 |             }
245 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
244 |             }
245 |             background.async(group: queues) {
246 |                 let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                    `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
251 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
251 |             }
252 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
251 |             }
252 |             background.async(group: queues) {
253 |                 let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
258 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
258 |             }
259 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
258 |             }
259 |             background.async(group: queues) {
260 |                 let convert = swiftUnionsConversion(gir.functions)
    |                                                     `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
261 |                 let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 |                 if let dir = outputDirectory {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
262 |                 if let dir = outputDirectory {
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 |                 } else { outq.async(group: queues) { outputString += unions } }
266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code
144 |                         try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 |                     }
146 |                     outq.async(group: queues) { outputFiles.insert(fileName) }
    |                                                 `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
147 |                 } catch {
148 |                     outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
150 |             }
151 |             func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
    |                                              |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
134 |             if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 |             func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
    |                  `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
137 |                 do {
138 |                     if doAppend && fileManager.fileExists(atPath: fileName) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code
204 |                         return convert(type)
205 |                     }.joined(separator: "\n\n")
206 |                     outq.async(group: queues) { outputString += code }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
207 |                 }
208 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:215:26: warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
213 |                     let ascii = atChar + UInt8(i)
214 |                     let f = "\(dir)/\(node)-\(Character(UnicodeScalar(ascii))).swift"
215 |                     try? fileManager.removeItem(atPath: f)
    |                          `- warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:96:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 94 | extern NSNotificationName const NSUbiquityIdentityDidChangeNotification API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
 95 |
 96 | @interface NSFileManager : NSObject
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 97 |
 98 | /* Returns the default singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 |                         outq.async(group: queues) { outputFiles.insert(f) }
    |                                                     `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
219 |                     }
220 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
222 |
223 |             background.async(group: queues) {
224 |                 let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
227 |                     write(aliases, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code
227 |                     write(aliases, to: f)
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
230 |             }
231 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
230 |             }
231 |             background.async(group: queues) {
232 |                 let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
237 |             }
238 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
237 |             }
238 |             background.async(group: queues) {
239 |                 let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
244 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
    |                                                       `- warning: mutation of captured var 'outputString' in concurrently-executing code
244 |             }
245 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
244 |             }
245 |             background.async(group: queues) {
246 |                 let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                    `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
251 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
251 |             }
252 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
251 |             }
252 |             background.async(group: queues) {
253 |                 let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
258 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
258 |             }
259 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
258 |             }
259 |             background.async(group: queues) {
260 |                 let convert = swiftUnionsConversion(gir.functions)
    |                                                     `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
261 |                 let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 |                 if let dir = outputDirectory {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
262 |                 if let dir = outputDirectory {
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 |                 } else { outq.async(group: queues) { outputString += unions } }
266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code
144 |                         try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 |                     }
146 |                     outq.async(group: queues) { outputFiles.insert(fileName) }
    |                                                 `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
147 |                 } catch {
148 |                     outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
150 |             }
151 |             func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
    |                                              |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
134 |             if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 |             func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
    |                  `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'
137 |                 do {
138 |                     if doAppend && fileManager.fileExists(atPath: fileName) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code
204 |                         return convert(type)
205 |                     }.joined(separator: "\n\n")
206 |                     outq.async(group: queues) { outputString += code }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
207 |                 }
208 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:215:26: warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
213 |                     let ascii = atChar + UInt8(i)
214 |                     let f = "\(dir)/\(node)-\(Character(UnicodeScalar(ascii))).swift"
215 |                     try? fileManager.removeItem(atPath: f)
    |                          `- warning: capture of 'fileManager' with non-sendable type 'FileManager' in a '@Sendable' closure
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:96:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
 94 | extern NSNotificationName const NSUbiquityIdentityDidChangeNotification API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
 95 |
 96 | @interface NSFileManager : NSObject
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
 97 |
 98 | /* Returns the default singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code
216 |                     if useAlphaNames {
217 |                         try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 |                         outq.async(group: queues) { outputFiles.insert(f) }
    |                                                     `- warning: mutation of captured var 'outputFiles' in concurrently-executing code
219 |                     }
220 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
222 |
223 |             background.async(group: queues) {
224 |                 let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
225 |                 if let dir = outputDirectory {
226 |                     let f = "\(dir)/\(node)-aliases.swift"
227 |                     write(aliases, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code
227 |                     write(aliases, to: f)
228 |                 } else {
229 |                     outq.async(group: queues) { outputString += aliases } }
    |                                                 `- warning: mutation of captured var 'outputString' in concurrently-executing code
230 |             }
231 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
230 |             }
231 |             background.async(group: queues) {
232 |                 let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
233 |                 if let dir = outputDirectory {
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code
234 |                     let f = "\(dir)/\(node)-callbacks.swift"
235 |                     write(callbacks, to: f)
236 |                 } else { outq.async(group: queues) { outputString += callbacks } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
237 |             }
238 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
237 |             }
238 |             background.async(group: queues) {
239 |                 let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
240 |                 if let dir = outputDirectory {
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
244 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code
241 |                     let f = "\(dir)/\(node)-constants.swift"
242 |                     write(constants, to: f)
243 |                 } else {  outq.async(group: queues) { outputString += constants } }
    |                                                       `- warning: mutation of captured var 'outputString' in concurrently-executing code
244 |             }
245 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
244 |             }
245 |             background.async(group: queues) {
246 |                 let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                    `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
247 |                 if let dir = outputDirectory {
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
251 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code
248 |                     let f = "\(dir)/\(node)-enumerations.swift"
249 |                     write(enumerations, to: f)
250 |                 } else { outq.async(group: queues) { outputString += enumerations } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
251 |             }
252 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
251 |             }
252 |             background.async(group: queues) {
253 |                 let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
254 |                 if let dir = outputDirectory {
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
258 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code
255 |                     let f = "\(dir)/\(node)-bitfields.swift"
256 |                     write(bitfields, to: f)
257 |                 } else { outq.async(group: queues) { outputString += bitfields } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
258 |             }
259 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
258 |             }
259 |             background.async(group: queues) {
260 |                 let convert = swiftUnionsConversion(gir.functions)
    |                                                     `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
261 |                 let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 |                 if let dir = outputDirectory {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
262 |                 if let dir = outputDirectory {
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 |                 } else { outq.async(group: queues) { outputString += unions } }
266 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code
263 |                     let f = "\(dir)/\(node)-unions.swift"
264 |                     write(unions, to: f)
265 |                 } else { outq.async(group: queues) { outputString += unions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
266 |             }
267 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
266 |             }
267 |             background.async(group: queues) {
268 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
268 |                 let convert = swiftCode(gir.functions)
269 |                 let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
152 |                 queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 |             }
154 |             func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
    |                  `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'
155 |                 if let dir = outputDirectory {
156 |                     var output = ""
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
271 |             }
272 |             background.async(group: queues) {
273 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
274 |                 let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 |                 let records = gir.records.filter { r in
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
282 |                     )
283 |                 }
284 |                 write(records, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
285 |             }
286 |             background.async(group: queues) {
287 |                 let convert = swiftCode(gir.functions)
    |                                         `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
287 |                 let convert = swiftCode(gir.functions)
288 |                 let types = gir.classes.filter{!exclusions.contains($0.name)}
289 |                 write(types, using: convert)
    |                 `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
290 |             }
291 |             background.async(group: queues) {
292 |                 let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
    |                                 `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
293 |                 if let dir = outputDirectory {
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
    |                     |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 |                 } else { outq.async(group: queues) { outputString += functions } }
297 |             }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code
294 |                     let f = "\(dir)/\(node)-functions.swift"
295 |                     write(functions, to: f)
296 |                 } else { outq.async(group: queues) { outputString += functions } }
    |                                                      `- warning: mutation of captured var 'outputString' in concurrently-executing code
297 |             }
298 |             if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
300 |                 let extensions = Set(extensionNamespace)
301 |                 background.async(group: queues) {
302 |                     let privatePrefix = "_" + gir.prefix + "_"
    |                                               `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure
303 |                     let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 |                     let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
 20 |
 21 | /// Representation of a GIR file
 22 | public final class GIR {
    |                    `- note: class 'GIR' does not conform to the 'Sendable' protocol
 23 |     /// The parsed XML document represented by the receiver
 24 |     public let xml: XMLDocument
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
310 |                     let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 |                     if let f = outputFile {
312 |                         write(code, to: f, preamble: preamble)
    |                         |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code
312 |                         write(code, to: f, preamble: preamble)
313 |                     } else {
314 |                         outq.async(group: queues) { outputString += code }
    |                                                     `- warning: mutation of captured var 'outputString' in concurrently-executing code
315 |                     }
316 |                     let indent = "    "
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 |                         let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
    |                             |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 |                         } else {  outq.async(group: queues) { outputString += code } }
346 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code
343 |                         if let f = outputFile {
344 |                             write(code, to: f, append: true)
345 |                         } else {  outq.async(group: queues) { outputString += code } }
    |                                                               `- warning: mutation of captured var 'outputString' in concurrently-executing code
346 |                     }
347 |                 }
[246/284] Compiling libgir2swift emit-signals.swift
[247/284] Compiling libgir2swift gir+swift.swift
[250/284] Compiling libgir2swift GirCType.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/Streams.swift:7:16: warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     /// Abstraction for stderr, calling fputs under the hood.
 6 |     @usableFromInline
 7 |     static var stdErr: StandardError = StandardError()
   |                |- warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'stdErr' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'stdErr' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     /// Abstraction for stdErr
[251/284] Compiling libgir2swift GirCallback.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/Streams.swift:7:16: warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     /// Abstraction for stderr, calling fputs under the hood.
 6 |     @usableFromInline
 7 |     static var stdErr: StandardError = StandardError()
   |                |- warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'stdErr' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'stdErr' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     /// Abstraction for stdErr
[252/284] Compiling libgir2swift GirClass.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/Streams.swift:7:16: warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     /// Abstraction for stderr, calling fputs under the hood.
 6 |     @usableFromInline
 7 |     static var stdErr: StandardError = StandardError()
   |                |- warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'stdErr' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'stdErr' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     /// Abstraction for stdErr
[253/284] Compiling libgir2swift GirConstant.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/utilities/Streams.swift:7:16: warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     /// Abstraction for stderr, calling fputs under the hood.
 6 |     @usableFromInline
 7 |     static var stdErr: StandardError = StandardError()
   |                |- warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'stdErr' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'stdErr' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     /// Abstraction for stdErr
[254/284] Compiling libgir2swift GirDatatype.swift
[255/284] Compiling libgir2swift GirEnumeration.swift
[256/284] Compiling libgir2swift CodeBuilder.swift
[257/284] Compiling libgir2swift c2swift.swift
[258/284] Compiling libgir2swift emit-class.swift
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 |     /// Reference to void type
131 |     public static var void: TypeReference = TypeReference(type: GIR.voidType)
    |                       |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'void' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 |     /// Designated initialiser for a type reference
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 |     /// Reference to void type
131 |     public static var void: TypeReference = TypeReference(type: GIR.voidType)
    |                       |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'void' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 |     /// Designated initialiser for a type reference
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 |     /// Reference to void type
131 |     public static var void: TypeReference = TypeReference(type: GIR.voidType)
    |                       |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'void' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 |     /// Designated initialiser for a type reference
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 |     /// Reference to void type
131 |     public static var void: TypeReference = TypeReference(type: GIR.voidType)
    |                       |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'void' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 |     /// Designated initialiser for a type reference
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 |     /// Reference to void type
131 |     public static var void: TypeReference = TypeReference(type: GIR.voidType)
    |                       |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'void' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 |     /// Designated initialiser for a type reference
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
/Users/admin/builder/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 |     static var defaultCodeIndentation: String = "    "
   |                |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     /// Code in builder block of this function will have additional indentation passed in the first argument.
[279/288] Emitting module gir2swift
[280/288] Compiling gir2swift main.swift
[280/288] Write Objects.LinkFileList
[282/288] Emitting module gir2swift
[283/288] Compiling gir2swift main.swift
[283/288] Write Objects.LinkFileList
[284/288] Linking gir2swift
[285/288] Applying gir2swift
[286/288] Linking gir2swift-tool
[287/288] Applying gir2swift-tool
Build complete! (25.13s)
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/rhx/SwiftLibXML.git
Fetching https://github.com/apple/swift-argument-parser from cache
[1/381] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git from cache (0.76s)
Fetched https://github.com/jpsim/Yams.git from cache (1.40s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.42s)
Computing version for https://github.com/rhx/SwiftLibXML.git
Computed https://github.com/rhx/SwiftLibXML.git at 3.0.1 (2.03s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.57s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (0.50s)
Creating working copy for https://github.com/rhx/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at 3.0.1
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.6",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    },
    {
      "identity" : "swiftlibxml",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.1",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/rhx/SwiftLibXML.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "gir2swift",
  "name" : "gir2swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "gir2swift",
      "targets" : [
        "gir2swift"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "libgir2swift",
      "targets" : [
        "libgir2swift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "gir2swift-plugin",
      "targets" : [
        "gir2swift-plugin"
      ],
      "type" : {
        "plugin" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "libgir2swift",
      "module_type" : "SwiftTarget",
      "name" : "libgir2swift",
      "path" : "Sources/libgir2swift",
      "product_dependencies" : [
        "SwiftLibXML",
        "ArgumentParser",
        "Yams"
      ],
      "product_memberships" : [
        "gir2swift",
        "libgir2swift",
        "gir2swift-plugin"
      ],
      "sources" : [
        "emitting/CodeBuilder.swift",
        "emitting/c2swift.swift",
        "emitting/emit-class.swift",
        "emitting/emit-signals.swift",
        "emitting/gir+swift.swift",
        "emitting/girtypes+swift.swift",
        "emitting/gtk2swiftdoc.swift",
        "models/ConversionContext.swift",
        "models/Gir+Enums.swift",
        "models/Gir+KnowTypeSets.swift",
        "models/Gir+KnownTypes.swift",
        "models/Gir.swift",
        "models/Gir2Swift.swift",
        "models/GirType.swift",
        "models/TypeConversion.swift",
        "models/TypeReference.swift",
        "models/gir elements/GirAlias.swift",
        "models/gir elements/GirArgument.swift",
        "models/gir elements/GirBitfield.swift",
        "models/gir elements/GirCType.swift",
        "models/gir elements/GirCallback.swift",
        "models/gir elements/GirClass.swift",
        "models/gir elements/GirConstant.swift",
        "models/gir elements/GirDatatype.swift",
        "models/gir elements/GirEnumeration.swift",
        "models/gir elements/GirField.swift",
        "models/gir elements/GirFunction.swift",
        "models/gir elements/GirInterface.swift",
        "models/gir elements/GirMethod.swift",
        "models/gir elements/GirProperty.swift",
        "models/gir elements/GirRecord.swift",
        "models/gir elements/GirSignal.swift",
        "models/gir elements/GirThing.swift",
        "models/gir elements/GirUnion.swift",
        "models/girtype+xml.swift",
        "utilities/Character+Utilities.swift",
        "utilities/Collection+Utilities.swift",
        "utilities/Streams.swift",
        "utilities/String+Substring.swift",
        "utilities/String+Utilities.swift",
        "utilities/System.swift",
        "utilities/XML+Utilities.swift",
        "utilities/generation.swift",
        "utilities/incremental-generation.swift",
        "utilities/planning.swift",
        "utilities/postprocessing.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "gir2swiftTests",
      "module_type" : "SwiftTarget",
      "name" : "gir2swiftTests",
      "path" : "Tests/gir2swiftTests",
      "sources" : [
        "gir2swiftTests.swift"
      ],
      "target_dependencies" : [
        "libgir2swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "gir2swift_plugin",
      "module_type" : "PluginTarget",
      "name" : "gir2swift-plugin",
      "path" : "Plugins/gir2swift-plugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "gir2swift-plugin"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "gir2swift"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "gir2swift",
      "module_type" : "SwiftTarget",
      "name" : "gir2swift",
      "path" : "Sources/gir2swift",
      "product_memberships" : [
        "gir2swift",
        "gir2swift-plugin"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "libgir2swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Done.