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

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of MemoryLayoutKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/MemoryLayoutKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Octadero/MemoryLayoutKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 06dc9f9 Swift 4.2 ready, Xcode beta 5 tested
Cloned https://github.com/Octadero/MemoryLayoutKit.git
Revision (git rev-parse @):
06dc9f9ffbbc5844e72d9ddee83f4b78e8c564c0
SUCCESS checkout https://github.com/Octadero/MemoryLayoutKit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Octadero/MemoryLayoutKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling MemoryLayoutKit SynchronizedArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:153:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
151 | 	func append( _ element: Element) {
152 | 		queue.async(flags: .barrier) {
153 | 			self.array.append(element)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | 		}
155 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:153:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
151 | 	func append( _ element: Element) {
152 | 		queue.async(flags: .barrier) {
153 | 			self.array.append(element)
    |                      `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | 		}
155 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:162:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
160 | 	func append(_ elements: [Element]) {
161 | 		queue.async(flags: .barrier) {
162 | 			self.array += elements
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | 		}
164 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:162:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
160 | 	func append(_ elements: [Element]) {
161 | 		queue.async(flags: .barrier) {
162 | 			self.array += elements
    |                  `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | 		}
164 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:168:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | 		}
170 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:168:34: warning: capture of 'newElements' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |                     `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
    |                                  `- warning: capture of 'newElements' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | 		}
170 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:179:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
177 | 	func insert( _ element: Element, at index: Int) {
178 | 		queue.async(flags: .barrier) {
179 | 			self.array.insert(element, at: index)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | 		}
181 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:179:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
177 | 	func insert( _ element: Element, at index: Int) {
178 | 		queue.async(flags: .barrier) {
179 | 			self.array.insert(element, at: index)
    |                      `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | 		}
181 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:190:10: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
188 | 	func remove(at index: Int, completion: @escaping ((Element?) -> Void)) {
189 | 		queue.async(flags: .barrier) {
190 | 			guard self.array.count > index else {
    |          `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:192:6: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 | 			guard self.array.count > index else {
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
    |      |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | 				}
194 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:192:6: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 | 			guard self.array.count > index else {
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
    |      |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | 				}
194 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | 			DispatchQueue.main.async {
200 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | 			}
202 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:200:16: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
198 |
199 | 			DispatchQueue.main.async {
200 | 				completion(element)
    |                `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | 			}
202 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:223:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
221 | 	func remove(where predicate: @escaping (Element) -> Bool, completion: @escaping ((Element) -> Void)) {
222 | 		queue.async(flags: .barrier) {
223 | 			guard let index = self.array.index(where: predicate) else { return }
    |                      `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | 			let element = self.array.remove(at: index)
225 |
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:223:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | 	func remove(where predicate: @escaping (Element) -> Bool, completion: @escaping ((Element) -> Void)) {
222 | 		queue.async(flags: .barrier) {
223 | 			guard let index = self.array.index(where: predicate) else { return }
    |                                              |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 | 			let element = self.array.remove(at: index)
225 |
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:5: warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | 			}
229 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:5: warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | 			}
229 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:16: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |                `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | 			}
229 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:237:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
235 | 	func removeAll(completion: @escaping (([Element]) -> Void)) {
236 | 		queue.async(flags: .barrier) {
237 | 			let elements = self.array
    |                   `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
238 | 			self.array.removeAll()
239 |
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:5: warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |     |- warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
242 | 			}
243 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:5: warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |     |- warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
242 | 			}
243 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:16: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |                `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | 			}
243 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:269:13: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
267 | 		var result: Int = 0
268 | 		queue.async(flags: .barrier) {
269 | 			result = self.array.underestimatedCount
    |             `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
270 | 		}
271 | 		return result
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:269:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
267 | 		var result: Int = 0
268 | 		queue.async(flags: .barrier) {
269 | 			result = self.array.underestimatedCount
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
270 | 		}
271 | 		return result
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:370:13: warning: capture of 'self' with non-sendable type 'SynchronizedArray<String>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
368 | 		var result = ""
369 | 		queue.async(flags: .barrier) {
370 | 			result = self.array.joined(separator: separator)
    |             `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<String>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
371 | 		}
372 | 		return result
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:370:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
368 | 		var result = ""
369 | 		queue.async(flags: .barrier) {
370 | 			result = self.array.joined(separator: separator)
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
371 | 		}
372 | 		return result
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:380:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
378 | 	func removeSubrange(_ bounds: ClosedRange<SynchronizedArray.Index>) {
379 | 		queue.async(flags: .barrier) {
380 | 			self.array.removeSubrange(bounds)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
381 | 		}
382 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:386:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
384 | 	func removeSubrange(_ bounds: CountableRange<SynchronizedArray.Index>) {
385 | 		queue.async(flags: .barrier) {
386 | 			self.array.removeSubrange(bounds)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 | 		}
388 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:413:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
411 | 		set {
412 | 			queue.async(flags: .barrier) {
413 | 				self.array[index] = newValue
    |     `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 | 			}
415 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:413:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
411 | 		set {
412 | 			queue.async(flags: .barrier) {
413 | 				self.array[index] = newValue
    |                         `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 | 			}
415 | 		}
[4/8] Compiling MemoryLayoutKit MemoryLayoutKit.swift
[5/8] Compiling MemoryLayoutKit Array.swift
[6/8] Compiling MemoryLayoutKit General.swift
[7/8] Compiling MemoryLayoutKit Data.swift
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:37:21: warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer
35 | 	public init<T>(fromArray values: [T]) {
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
   |                     |                          |- note: implicit argument conversion from '[T]' to 'UnsafePointer<T>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                     |                          `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                     `- warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer
38 | 	}
39 |
[8/8] Emitting module MemoryLayoutKit
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
Build complete! (17.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLayoutKit",
  "name" : "MemoryLayoutKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLayoutKit",
      "targets" : [
        "MemoryLayoutKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLayoutKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKitTests",
      "path" : "Tests/MemoryLayoutKitTests",
      "sources" : [
        "MemoryLayoutKitTests.swift"
      ],
      "target_dependencies" : [
        "MemoryLayoutKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLayoutKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKit",
      "path" : "Sources/MemoryLayoutKit",
      "product_memberships" : [
        "MemoryLayoutKit"
      ],
      "sources" : [
        "Array.swift",
        "Data.swift",
        "General.swift",
        "MemoryLayoutKit.swift",
        "SynchronizedArray.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.