The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SocketSwift, reference master (36911c), with Swift 6.2 for macOS (SPM) on 17 Jun 2025 19:15:48 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/BiAtoms/Socket.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BiAtoms/Socket.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 36911c1 Removed .swift_version file
Cloned https://github.com/BiAtoms/Socket.swift.git
Revision (git rev-parse @):
36911c13adfe12859ed43dcba878052b1897fcd3
SUCCESS checkout https://github.com/BiAtoms/Socket.swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/BiAtoms/Socket.swift.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/11] Compiling SocketSwift Type.swift
[4/11] Compiling SocketSwift Option.swift
[5/11] Compiling SocketSwift Protocol.swift
[6/11] Compiling SocketSwift TLS.swift
/Users/admin/builder/spi-builder-workspace/Sources/TLS.swift:165:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
163 | extension TLS {
164 |     #if !os(Linux)
165 |     open class func importCert(at path: URL, password: String) -> Certificate {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 |         let data = FileManager.default.contents(atPath: path.path)! as NSData
167 |         let options: NSDictionary = [kSecImportExportPassphrase: password]
[7/11] Compiling SocketSwift OS.swift
[8/11] Compiling SocketSwift Error.swift
[9/11] Emitting module SocketSwift
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:211:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
209 |
210 | extension Socket {
211 |     open class func tcpListening(port: Port, address: String? = nil, maxPendingConnection: Int32 = SOMAXCONN) throws -> Self {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
212 |
213 |         let socket = try self.init(.inet)
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:224:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
222 |
223 | extension Socket {
224 |     open func write(_ bytes: [Byte]) throws {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
225 |         try self.write(bytes, length: bytes.count)
226 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TLS.swift:165:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
163 | extension TLS {
164 |     #if !os(Linux)
165 |     open class func importCert(at path: URL, password: String) -> Certificate {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
166 |         let data = FileManager.default.contents(atPath: path.path)! as NSData
167 |         let options: NSDictionary = [kSecImportExportPassphrase: password]
[10/11] Compiling SocketSwift Socket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:211:5: warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
209 |
210 | extension Socket {
211 |     open class func tcpListening(port: Port, address: String? = nil, maxPendingConnection: Int32 = SOMAXCONN) throws -> Self {
    |     `- warning: non-'@objc' class method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
212 |
213 |         let socket = try self.init(.inet)
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:224:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
222 |
223 | extension Socket {
224 |     open func write(_ bytes: [Byte]) throws {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
225 |         try self.write(bytes, length: bytes.count)
226 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:202:19: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
200 |         var address = sockaddr_in()
201 |         var len = socklen_t(MemoryLayout.size(ofValue: address))
202 |         let ptr = UnsafeMutableRawPointer(&address).assumingMemoryBound(to: sockaddr.self)
    |                   |                       |- note: implicit argument conversion from 'sockaddr_in' to 'UnsafeMutableRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                       `- note: use 'withUnsafeMutableBytes' in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
203 |
204 |         try ing { getsockname(fileDescriptor, ptr, &len) }
/Users/admin/builder/spi-builder-workspace/Sources/Socket.swift:97:75: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 95 |         var state: Any = value is Bool ? (value as! Bool == true ? 1 : 0) : value
 96 |
 97 |         try ing { setsockopt(fileDescriptor, SOL_SOCKET, option.rawValue, &state, socklen_t(size)) }
    |                                                                           `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 98 |     }
 99 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[11/11] Compiling SocketSwift Family.swift
Build complete! (4.14s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SocketSwift",
  "name" : "SocketSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SocketSwift",
      "targets" : [
        "SocketSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SocketSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "SocketSwiftTests",
      "path" : "Tests/SocketSwiftTests",
      "sources" : [
        "SocketSwiftTests.swift"
      ],
      "target_dependencies" : [
        "SocketSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SocketSwift",
      "module_type" : "SwiftTarget",
      "name" : "SocketSwift",
      "path" : "Sources",
      "product_memberships" : [
        "SocketSwift"
      ],
      "sources" : [
        "Error.swift",
        "Family.swift",
        "OS.swift",
        "Option.swift",
        "Protocol.swift",
        "Socket.swift",
        "TLS.swift",
        "Type.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.