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 Socket, reference main (85fdca), with Swift 6.1 for macOS (SPM) on 8 Sep 2025 20:42:44 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Socket.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PureSwift/Socket
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 85fdcac Merge pull request #20 from the-braveknight/main
Cloned https://github.com/PureSwift/Socket.git
Revision (git rev-parse @):
85fdcac657041100365190a02c70a72146fadaf0
SUCCESS checkout https://github.com/PureSwift/Socket.git at main
Fetching https://github.com/apple/swift-system from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-system from cache (0.86s)
Fetched https://github.com/apple/swift-log.git from cache (0.88s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.2 (1.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.48s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "socket",
      "name": "Socket",
      "url": "https://github.com/PureSwift/Socket.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Socket",
      "dependencies": [
        {
          "identity": "swift-system",
          "name": "swift-system",
          "url": "https://github.com/apple/swift-system",
          "version": "1.6.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/PureSwift/Socket.git
[1/1331] Fetching socket
Fetched https://github.com/PureSwift/Socket.git from cache (0.85s)
Fetching https://github.com/apple/swift-system from cache
Fetched https://github.com/apple/swift-system from cache (0.54s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.2 (0.59s)
Creating working copy for https://github.com/PureSwift/Socket.git
Working copy of https://github.com/PureSwift/Socket.git resolved at main (85fdcac)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.2
warning: '.resolve-product-dependencies': dependency 'socket' is not used by any target
Found 1 product dependencies
  - swift-system
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/PureSwift/Socket.git
https://github.com/PureSwift/Socket.git
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "Socket",
  "name" : "Socket",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Socket",
      "targets" : [
        "Socket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SocketTests",
      "module_type" : "SwiftTarget",
      "name" : "SocketTests",
      "path" : "Tests/SocketTests",
      "product_dependencies" : [
        "Logging"
      ],
      "sources" : [
        "SocketTests.swift"
      ],
      "target_dependencies" : [
        "Socket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Socket",
      "module_type" : "SwiftTarget",
      "name" : "Socket",
      "path" : "Sources/Socket",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "Socket.swift",
        "SocketContinuation.swift",
        "SocketManager.swift",
        "SocketManager/AsyncSocketManager.swift",
        "SocketManager/CFSocketManager.swift",
        "System/CInternetAddress.swift",
        "System/CInterop.swift",
        "System/CSocketAddress.swift",
        "System/Constants.swift",
        "System/Errno.swift",
        "System/FileChange.swift",
        "System/FileEvent.swift",
        "System/FileFlags.swift",
        "System/InputOutput/IOControl.swift",
        "System/InputOutput/IODirection.swift",
        "System/InputOutput/IOOperations.swift",
        "System/InputOutput/IOType.swift",
        "System/InternetProtocol.swift",
        "System/MessageFlags.swift",
        "System/NetworkInterface.swift",
        "System/NetworkOrder.swift",
        "System/Poll.swift",
        "System/SocketAddress.swift",
        "System/SocketAddress/IPv4SocketAddress.swift",
        "System/SocketAddress/IPv6SocketAddress.swift",
        "System/SocketAddress/LinkLayerSocketAddress.swift",
        "System/SocketAddress/UnixSocketAddress.swift",
        "System/SocketAddressFamily.swift",
        "System/SocketDescriptor.swift",
        "System/SocketEvent.swift",
        "System/SocketFlags.swift",
        "System/SocketHelpers.swift",
        "System/SocketOperations.swift",
        "System/SocketOption.swift",
        "System/SocketOptionID.swift",
        "System/SocketOptionLevel.swift",
        "System/SocketProtocol.swift",
        "System/SocketProtocol/IPv4Protocol.swift",
        "System/SocketProtocol/IPv6Protocol.swift",
        "System/SocketProtocol/LinkLayerProtocol.swift",
        "System/SocketProtocol/UnixProtocol.swift",
        "System/SocketType.swift",
        "System/Syscalls.swift",
        "System/TCPSocketOption.swift",
        "System/Util.swift"
      ],
      "target_dependencies" : [
        "CSocket"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSocket",
      "module_type" : "ClangTarget",
      "name" : "CSocket",
      "path" : "Sources/CSocket",
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "android.c",
        "shims.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/6] Write sources
[2/6] Compiling CSocket shims.c
[2/6] Compiling CSocket android.c
[4/6] Compiling CSystem shims.c
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/34] Emitting module SystemPackage
[8/37] Compiling SystemPackage FileHelpers.swift
[9/37] Compiling SystemPackage FileOperations.swift
[10/37] Compiling SystemPackage FilePath.swift
[11/37] Compiling SystemPackage FilePathTempPosix.swift
[12/37] Compiling SystemPackage FilePathTempWindows.swift
[13/37] Compiling SystemPackage FilePathWindows.swift
[14/37] Compiling SystemPackage FilePathComponentView.swift
[15/37] Compiling SystemPackage FilePathComponents.swift
[16/37] Compiling SystemPackage FilePathParsing.swift
[17/37] Compiling SystemPackage Util+StringArray.swift
[18/37] Compiling SystemPackage Util.swift
[19/37] Compiling SystemPackage UtilConsumers.swift
[20/37] Compiling SystemPackage Constants.swift
[21/37] Compiling SystemPackage Exports.swift
[22/37] Compiling SystemPackage Mocking.swift
[23/37] Compiling SystemPackage FilePermissions.swift
[24/37] Compiling SystemPackage Backcompat.swift
[25/37] Compiling SystemPackage CInterop.swift
[26/37] Compiling SystemPackage FilePathString.swift
[27/37] Compiling SystemPackage FilePathSyntax.swift
[28/37] Compiling SystemPackage FilePathTemp.swift
[29/37] Compiling SystemPackage Errno.swift
[30/37] Compiling SystemPackage ErrnoWindows.swift
[31/37] Compiling SystemPackage FileDescriptor.swift
[32/37] Compiling SystemPackage RawBuffer.swift
[33/37] Compiling SystemPackage Syscalls.swift
[34/37] Compiling SystemPackage WindowsSyscallAdapters.swift
[35/37] Compiling SystemPackage MachPort.swift
[36/37] Compiling SystemPackage PlatformString.swift
[37/37] Compiling SystemPackage SystemString.swift
[38/79] Compiling Socket NetworkOrder.swift
[39/79] Compiling Socket Poll.swift
[40/79] Compiling Socket SocketAddress.swift
[41/79] Compiling Socket IPv4SocketAddress.swift
[42/79] Compiling Socket IPv6SocketAddress.swift
[43/79] Compiling Socket CInternetAddress.swift
[44/79] Compiling Socket CInterop.swift
[45/79] Compiling Socket CSocketAddress.swift
[46/79] Compiling Socket Constants.swift
[47/79] Compiling Socket Errno.swift
[48/83] Emitting module Socket
[49/83] Compiling Socket SocketOption.swift
[50/83] Compiling Socket SocketOptionID.swift
[51/83] Compiling Socket SocketOptionLevel.swift
[52/83] Compiling Socket SocketProtocol.swift
[53/83] Compiling Socket IPv4Protocol.swift
[54/83] Compiling Socket IPv6Protocol.swift
[55/83] Compiling Socket LinkLayerProtocol.swift
[56/83] Compiling Socket UnixProtocol.swift
[57/83] Compiling Socket IOOperations.swift
[58/83] Compiling Socket IOType.swift
[59/83] Compiling Socket InternetProtocol.swift
[60/83] Compiling Socket MessageFlags.swift
[61/83] Compiling Socket NetworkInterface.swift
[62/83] Compiling Socket SocketEvent.swift
[63/83] Compiling Socket SocketFlags.swift
[64/83] Compiling Socket SocketHelpers.swift
[65/83] Compiling Socket SocketOperations.swift
[66/83] Compiling Socket FileChange.swift
[67/83] Compiling Socket FileEvent.swift
[68/83] Compiling Socket FileFlags.swift
[69/83] Compiling Socket IOControl.swift
[70/83] Compiling Socket IODirection.swift
[71/83] Compiling Socket SocketType.swift
[72/83] Compiling Socket Syscalls.swift
[73/83] Compiling Socket TCPSocketOption.swift
[74/83] Compiling Socket Util.swift
[75/83] Compiling Socket LinkLayerSocketAddress.swift
[76/83] Compiling Socket UnixSocketAddress.swift
[77/83] Compiling Socket SocketAddressFamily.swift
[78/83] Compiling Socket SocketDescriptor.swift
[79/83] Compiling Socket Socket.swift
[80/83] Compiling Socket SocketContinuation.swift
[81/83] Compiling Socket SocketManager.swift
[82/83] Compiling Socket AsyncSocketManager.swift
[83/83] Compiling Socket CFSocketManager.swift
Build complete! (6.83s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "Socket",
  "name" : "Socket",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Socket",
      "targets" : [
        "Socket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SocketTests",
      "module_type" : "SwiftTarget",
      "name" : "SocketTests",
      "path" : "Tests/SocketTests",
      "product_dependencies" : [
        "Logging"
      ],
      "sources" : [
        "SocketTests.swift"
      ],
      "target_dependencies" : [
        "Socket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Socket",
      "module_type" : "SwiftTarget",
      "name" : "Socket",
      "path" : "Sources/Socket",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "Socket.swift",
        "SocketContinuation.swift",
        "SocketManager.swift",
        "SocketManager/AsyncSocketManager.swift",
        "SocketManager/CFSocketManager.swift",
        "System/CInternetAddress.swift",
        "System/CInterop.swift",
        "System/CSocketAddress.swift",
        "System/Constants.swift",
        "System/Errno.swift",
        "System/FileChange.swift",
        "System/FileEvent.swift",
        "System/FileFlags.swift",
        "System/InputOutput/IOControl.swift",
        "System/InputOutput/IODirection.swift",
        "System/InputOutput/IOOperations.swift",
        "System/InputOutput/IOType.swift",
        "System/InternetProtocol.swift",
        "System/MessageFlags.swift",
        "System/NetworkInterface.swift",
        "System/NetworkOrder.swift",
        "System/Poll.swift",
        "System/SocketAddress.swift",
        "System/SocketAddress/IPv4SocketAddress.swift",
        "System/SocketAddress/IPv6SocketAddress.swift",
        "System/SocketAddress/LinkLayerSocketAddress.swift",
        "System/SocketAddress/UnixSocketAddress.swift",
        "System/SocketAddressFamily.swift",
        "System/SocketDescriptor.swift",
        "System/SocketEvent.swift",
        "System/SocketFlags.swift",
        "System/SocketHelpers.swift",
        "System/SocketOperations.swift",
        "System/SocketOption.swift",
        "System/SocketOptionID.swift",
        "System/SocketOptionLevel.swift",
        "System/SocketProtocol.swift",
        "System/SocketProtocol/IPv4Protocol.swift",
        "System/SocketProtocol/IPv6Protocol.swift",
        "System/SocketProtocol/LinkLayerProtocol.swift",
        "System/SocketProtocol/UnixProtocol.swift",
        "System/SocketType.swift",
        "System/Syscalls.swift",
        "System/TCPSocketOption.swift",
        "System/Util.swift"
      ],
      "target_dependencies" : [
        "CSocket"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSocket",
      "module_type" : "ClangTarget",
      "name" : "CSocket",
      "path" : "Sources/CSocket",
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "android.c",
        "shims.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.