The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of MemoryLayoutKit, reference 0.0.4 (06dc9f), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 14:49:29 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/MemoryLayoutKit.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Octadero/MemoryLayoutKit
 * tag               0.0.4      -> FETCH_HEAD
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 0.0.4
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Octadero/MemoryLayoutKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling MemoryLayoutKit MemoryLayoutKit.swift
[4/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)
[5/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 [#TemporaryPointers]
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 [#TemporaryPointers]
38 | 	}
39 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[6/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:168:15: warning: capture of non-sendable type 'S.Type' in an isolated closure
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 non-sendable type 'S.Type' in an isolated closure
169 | 		}
170 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:35: warning: capture of non-sendable type 'S.Type' in an isolated closure
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |                                   `- warning: capture of non-sendable type 'S.Type' in an isolated closure
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
[7/8] Compiling MemoryLayoutKit General.swift
[8/8] Compiling MemoryLayoutKit Array.swift
Build complete! (3.36s)
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.