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 BinaryCookies, reference 1.0.0 (5fffd1), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 20:39:57 UTC.

Swift 6 data race errors: 4

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/interstateone/binarycookies.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/interstateone/binarycookies
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 5fffd16 Explain file format coverage in README
Cloned https://github.com/interstateone/binarycookies.git
Revision (git rev-parse @):
5fffd16d021e478376e841c0768d021598d70c5f
SUCCESS checkout https://github.com/interstateone/binarycookies.git at 1.0.0
Fetching https://github.com/jverkoey/BinaryCodable
[8/762] Fetching binarycodable
Fetched https://github.com/jverkoey/BinaryCodable from cache (0.82s)
Computing version for https://github.com/jverkoey/BinaryCodable
Computed https://github.com/jverkoey/BinaryCodable at 0.1.0 (0.74s)
Creating working copy for https://github.com/jverkoey/BinaryCodable
Working copy of https://github.com/jverkoey/BinaryCodable resolved at 0.1.0
========================================
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": "binarycookies",
      "name": "BinaryCookies",
      "url": "https://github.com/interstateone/binarycookies.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/binarycookies",
      "dependencies": [
        {
          "identity": "binarycodable",
          "name": "BinaryCodable",
          "url": "https://github.com/jverkoey/BinaryCodable",
          "version": "0.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BinaryCodable",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/interstateone/binarycookies.git
[1/84] Fetching binarycookies
Fetched https://github.com/interstateone/binarycookies.git from cache (0.68s)
Fetching https://github.com/jverkoey/BinaryCodable from cache
Fetched https://github.com/jverkoey/BinaryCodable from cache (0.45s)
Computing version for https://github.com/jverkoey/BinaryCodable
Computed https://github.com/jverkoey/BinaryCodable at 0.1.0 (0.02s)
Creating working copy for https://github.com/interstateone/binarycookies.git
Working copy of https://github.com/interstateone/binarycookies.git resolved at 1.0.0 (5fffd16)
Creating working copy for https://github.com/jverkoey/BinaryCodable
Working copy of https://github.com/jverkoey/BinaryCodable resolved at 0.1.0
Found 1 product dependencies
  - BinaryCodable
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/interstateone/binarycookies.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/8] Write sources
[3/8] Write dumpcookies-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/16] Compiling BinaryCodable BufferedData.swift
[7/16] Compiling BinaryCodable FixedWidthInteger+bytes.swift
[8/16] Compiling BinaryCodable BinaryEncodable.swift
[9/16] Compiling BinaryCodable BinaryCodable.swift
[10/16] Emitting module BinaryCodable
[11/16] Compiling BinaryCodable BinaryDataDecoder.swift
[12/16] Compiling BinaryCodable BinaryDataEncoder.swift
[13/16] Compiling BinaryCodable BinaryDecodable.swift
[14/18] Emitting module BinaryCookies
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:161:20: warning: static property 'isSecure' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
159 |         }
160 |
161 |         static let isSecure   = Flags(rawValue: 1)
    |                    |- warning: static property 'isSecure' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'isSecure' 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
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:162:20: warning: static property 'isHTTPOnly' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
160 |
161 |         static let isSecure   = Flags(rawValue: 1)
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
    |                    |- warning: static property 'isHTTPOnly' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'isHTTPOnly' 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
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:163:20: warning: static property 'unknown1' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
161 |         static let isSecure   = Flags(rawValue: 1)
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
    |                    |- warning: static property 'unknown1' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'unknown1' 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
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
165 |     }
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:164:20: warning: static property 'unknown2' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
    |                    |- warning: static property 'unknown2' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'unknown2' 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
165 |     }
166 |
[15/18] Compiling BinaryCookies BinaryCookies.swift
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:161:20: warning: static property 'isSecure' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
159 |         }
160 |
161 |         static let isSecure   = Flags(rawValue: 1)
    |                    |- warning: static property 'isSecure' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'isSecure' 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
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:162:20: warning: static property 'isHTTPOnly' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
160 |
161 |         static let isSecure   = Flags(rawValue: 1)
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
    |                    |- warning: static property 'isHTTPOnly' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'isHTTPOnly' 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
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:163:20: warning: static property 'unknown1' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
161 |         static let isSecure   = Flags(rawValue: 1)
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
    |                    |- warning: static property 'unknown1' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'unknown1' 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
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
165 |     }
/Users/admin/builder/spi-builder-workspace/Sources/BinaryCookies/BinaryCookies.swift:164:20: warning: static property 'unknown2' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
152 |     public let expiration: Date
153 |
154 |     public struct Flags: OptionSet, BinaryCodable {
    |                   `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
155 |         public let rawValue: Int32
156 |
    :
162 |         static let isHTTPOnly = Flags(rawValue: 1 << 2)
163 |         static let unknown1   = Flags(rawValue: 1 << 3)
164 |         static let unknown2   = Flags(rawValue: 1 << 4)
    |                    |- warning: static property 'unknown2' is not concurrency-safe because non-'Sendable' type 'Cookie.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'unknown2' 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
165 |     }
166 |
[16/21] Compiling dumpcookies Extensions.swift
[17/21] Compiling dumpcookies main.swift
[18/21] Emitting module dumpcookies
[18/21] Write Objects.LinkFileList
[19/21] Linking dumpcookies
[20/21] Applying dumpcookies
Build complete! (16.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "binarycodable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "0.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jverkoey/BinaryCodable"
    }
  ],
  "manifest_display_name" : "BinaryCookies",
  "name" : "BinaryCookies",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BinaryCookies",
      "targets" : [
        "BinaryCookies"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "dumpcookies",
      "targets" : [
        "dumpcookies"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "dumpcookies",
      "module_type" : "SwiftTarget",
      "name" : "dumpcookies",
      "path" : "Sources/dumpcookies",
      "product_memberships" : [
        "dumpcookies"
      ],
      "sources" : [
        "Extensions.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "BinaryCookies"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BinaryCookies",
      "module_type" : "SwiftTarget",
      "name" : "BinaryCookies",
      "path" : "Sources/BinaryCookies",
      "product_dependencies" : [
        "BinaryCodable"
      ],
      "product_memberships" : [
        "BinaryCookies",
        "dumpcookies"
      ],
      "sources" : [
        "BinaryCookies.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.