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 IPAddress, reference master (5d04aa), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 05:04:54 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vkill/SwiftIPAddress.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vkill/SwiftIPAddress
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5d04aaa Merge pull request #4 from Fleuronic/swift5.1
Cloned https://github.com/vkill/SwiftIPAddress.git
Revision (git rev-parse @):
5d04aaa9b158d49c629be437a41598345cde9782
SUCCESS checkout https://github.com/vkill/SwiftIPAddress.git at master
========================================
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": "swiftipaddress",
      "name": "IPAddress",
      "url": "https://github.com/vkill/SwiftIPAddress.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftIPAddress",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/vkill/SwiftIPAddress.git
[5/404] Fetching swiftipaddress
Fetched https://github.com/vkill/SwiftIPAddress.git from cache (0.75s)
Creating working copy for https://github.com/vkill/SwiftIPAddress.git
Working copy of https://github.com/vkill/SwiftIPAddress.git resolved at master (5d04aaa)
warning: '.resolve-product-dependencies': dependency 'swiftipaddress' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vkill/SwiftIPAddress.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write IPAddressBenchmarks-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/10] Compiling IPAddress IPv6Address.swift
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:465:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
463 |     public static var any: IPv6Address {
464 |         struct Static {
465 |             static let anyAddress = IPv6Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |         }
467 |         return Static.anyAddress
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:473:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
471 |     public static var loopback: IPv6Address {
472 |         struct Static {
473 |             static let loopbackAddress = IPv6Address.init(parts: 0, 0, 0, 0, 0, 0, 0, 1)
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
474 |         }
475 |         return Static.loopbackAddress
[6/10] Emitting module IPAddress
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:287:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
285 |     public static var any: IPv4Address {
286 |         struct Static {
287 |             static let anyAddress = IPv4Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 |         }
289 |         return Static.anyAddress
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:295:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
293 |     public static var loopback: IPv4Address {
294 |         struct Static {
295 |             static let loopbackAddress =
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |                 IPv4Address.init(fromUInt32: 0x0100007F)
297 |         }
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:305:24: warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
303 |     public static var broadcast: IPv4Address {
304 |         struct Static {
305 |             static let broadcastAddress =
    |                        |- warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'broadcastAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |                 IPv4Address.init(fromUInt32: 0xFFFFFFFF)
307 |         }
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:465:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
463 |     public static var any: IPv6Address {
464 |         struct Static {
465 |             static let anyAddress = IPv6Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |         }
467 |         return Static.anyAddress
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:473:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
471 |     public static var loopback: IPv6Address {
472 |         struct Static {
473 |             static let loopbackAddress = IPv6Address.init(parts: 0, 0, 0, 0, 0, 0, 0, 1)
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
474 |         }
475 |         return Static.loopbackAddress
[7/10] Compiling IPAddress IPv4Address.swift
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:287:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
285 |     public static var any: IPv4Address {
286 |         struct Static {
287 |             static let anyAddress = IPv4Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 |         }
289 |         return Static.anyAddress
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:295:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
293 |     public static var loopback: IPv4Address {
294 |         struct Static {
295 |             static let loopbackAddress =
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |                 IPv4Address.init(fromUInt32: 0x0100007F)
297 |         }
/Users/admin/builder/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:305:24: warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
303 |     public static var broadcast: IPv4Address {
304 |         struct Static {
305 |             static let broadcastAddress =
    |                        |- warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'broadcastAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |                 IPv4Address.init(fromUInt32: 0xFFFFFFFF)
307 |         }
[8/14] Compiling IPAddressBenchmarks Utils.swift
[9/14] Compiling IPAddressBenchmarks main.swift
[10/14] Compiling IPAddressBenchmarks HighResolutionTimer.swift
[11/14] Emitting module IPAddressBenchmarks
[11/14] Write Objects.LinkFileList
[12/14] Linking IPAddressBenchmarks
[13/14] Applying IPAddressBenchmarks
Build complete! (7.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IPAddress",
  "name" : "IPAddress",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "IPAddress",
      "targets" : [
        "IPAddress"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "IPAddressBenchmarks",
      "targets" : [
        "IPAddressBenchmarks"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IPAddressBenchmarks",
      "module_type" : "SwiftTarget",
      "name" : "IPAddressBenchmarks",
      "path" : "Sources/IPAddressBenchmarks",
      "product_memberships" : [
        "IPAddressBenchmarks"
      ],
      "sources" : [
        "HighResolutionTimer.swift",
        "Utils.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IPAddress"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "IPAddress",
      "module_type" : "SwiftTarget",
      "name" : "IPAddress",
      "path" : "Sources/IPAddress",
      "product_memberships" : [
        "IPAddress",
        "IPAddressBenchmarks"
      ],
      "sources" : [
        "IPv4Address.swift",
        "IPv6Address.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.