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 AntMessageProtocol, reference master (4f271f), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 06:36:24 UTC.

Swift 6 data race errors: 3

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/FitnessKit/AntMessageProtocol.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FitnessKit/AntMessageProtocol
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4f271f5 Merge pull request #4 from FitnessKit/supSport
Cloned https://github.com/FitnessKit/AntMessageProtocol.git
Revision (git rev-parse @):
4f271f5566c8d5c8481741a777d3b79dfcca4946
SUCCESS checkout https://github.com/FitnessKit/AntMessageProtocol.git at master
Fetching https://github.com/FitnessKit/DataDecoder
Fetching https://github.com/FitnessKit/FitnessUnits
[1/758] Fetching fitnessunits
[199/1175] Fetching fitnessunits, datadecoder
Fetched https://github.com/FitnessKit/DataDecoder from cache (1.02s)
Fetched https://github.com/FitnessKit/FitnessUnits from cache (1.02s)
Computing version for https://github.com/FitnessKit/DataDecoder
Computed https://github.com/FitnessKit/DataDecoder at 5.0.0 (0.65s)
Computing version for https://github.com/FitnessKit/FitnessUnits
Computed https://github.com/FitnessKit/FitnessUnits at 3.1.0 (0.65s)
Creating working copy for https://github.com/FitnessKit/FitnessUnits
Working copy of https://github.com/FitnessKit/FitnessUnits resolved at 3.1.0
Creating working copy for https://github.com/FitnessKit/DataDecoder
Working copy of https://github.com/FitnessKit/DataDecoder resolved at 5.0.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": "antmessageprotocol",
      "name": "AntMessageProtocol",
      "url": "https://github.com/FitnessKit/AntMessageProtocol.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AntMessageProtocol",
      "dependencies": [
        {
          "identity": "fitnessunits",
          "name": "FitnessUnits",
          "url": "https://github.com/FitnessKit/FitnessUnits",
          "version": "3.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FitnessUnits",
          "dependencies": [
          ]
        },
        {
          "identity": "datadecoder",
          "name": "DataDecoder",
          "url": "https://github.com/FitnessKit/DataDecoder",
          "version": "5.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DataDecoder",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/FitnessKit/AntMessageProtocol.git
[1/819] Fetching antmessageprotocol
Fetched https://github.com/FitnessKit/AntMessageProtocol.git from cache (1.03s)
Fetching https://github.com/FitnessKit/DataDecoder from cache
Fetching https://github.com/FitnessKit/FitnessUnits from cache
Fetched https://github.com/FitnessKit/DataDecoder from cache (0.50s)
Fetched https://github.com/FitnessKit/FitnessUnits from cache (0.50s)
Computing version for https://github.com/FitnessKit/DataDecoder
Computed https://github.com/FitnessKit/DataDecoder at 5.0.0 (0.03s)
Computing version for https://github.com/FitnessKit/FitnessUnits
Computed https://github.com/FitnessKit/FitnessUnits at 3.1.0 (0.03s)
Creating working copy for https://github.com/FitnessKit/DataDecoder
Working copy of https://github.com/FitnessKit/DataDecoder resolved at 5.0.0
Creating working copy for https://github.com/FitnessKit/FitnessUnits
Working copy of https://github.com/FitnessKit/FitnessUnits resolved at 3.1.0
Creating working copy for https://github.com/FitnessKit/AntMessageProtocol.git
Working copy of https://github.com/FitnessKit/AntMessageProtocol.git resolved at master (4f271f5)
warning: '.resolve-product-dependencies': dependency 'antmessageprotocol' is not used by any target
Found 2 product dependencies
  - FitnessUnits
  - DataDecoder
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/FitnessKit/AntMessageProtocol.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/33] Emitting module FitnessUnits
[6/35] Compiling FitnessUnits ValidatedBinaryInteger.swift
[7/35] Compiling FitnessUnits ValidatedMeasurement.swift
[8/35] Compiling DataDecoder ANTToggleByte.swift
[9/35] Compiling DataDecoder Nibble.swift
[10/35] Compiling DataDecoder MACAddress.swift
[11/35] Compiling FitnessUnits UnitMagneticField.swift
[12/35] Compiling FitnessUnits UnitMass.swift
[13/35] Compiling FitnessUnits UnitRadioactivity.swift
[14/35] Compiling FitnessUnits UnitCadence.swift
[15/35] Compiling FitnessUnits UnitCount.swift
[16/35] Emitting module DataDecoder
[17/35] Compiling DataDecoder DataExtension.swift
[18/35] Compiling DataDecoder Decoder.swift
[19/35] Compiling FitnessUnits UnitGender.swift
[20/35] Compiling FitnessUnits UnitOxygenConsumption.swift
[21/35] Compiling FitnessUnits StringMeasurement.swift
[22/35] Compiling FitnessUnits ValidatedBinaryFloatingPoint.swift
[23/35] Compiling FitnessUnits UnitPercent.swift
[24/35] Compiling FitnessUnits MeasurementZone.swift
[25/35] Compiling FitnessUnits UnitSpeed.swift
[26/35] Compiling FitnessUnits UnitTorque.swift
[27/35] Compiling FitnessUnits UnitEnergy.swift
[28/35] Compiling FitnessUnits UnitForce.swift
[29/35] Compiling FitnessUnits UnitLinearDensity.swift
[30/35] Compiling FitnessUnits Color.swift
[31/35] Compiling FitnessUnits UnitAcceleration.swift
[32/35] Compiling FitnessUnits UnitAngle.swift
[33/35] Compiling FitnessUnits UnitAngularVelocity.swift
[34/35] Compiling FitnessUnits UnitConcentrationMass.swift
[35/35] Compiling FitnessUnits UnitDuration.swift
[36/59] Compiling AntMessageProtocol ArrayExtension.swift
[37/59] Compiling AntMessageProtocol CodingKeys.swift
[38/61] Compiling AntMessageProtocol SubSport.swift
[39/61] Compiling AntMessageProtocol TransmissionType.swift
[40/61] Compiling AntMessageProtocol Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Errors.swift:55:16: warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
26 |
27 | /// ANTMessage Error Reasons
28 | public enum ErrorReasons {
   |             `- note: consider making enum 'ErrorReasons' conform to the 'Sendable' protocol
29 |     /// Unsupported Message
30 |     case unsupportedMessage
   :
53 | public struct ANTMessageProtocolError: Error {
54 |
55 |     public let type: ErrorReasons
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
56 |
57 |     public init(_ type: ErrorReasons) {
[41/61] Compiling AntMessageProtocol EncodingProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Errors.swift:55:16: warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
26 |
27 | /// ANTMessage Error Reasons
28 | public enum ErrorReasons {
   |             `- note: consider making enum 'ErrorReasons' conform to the 'Sendable' protocol
29 |     /// Unsupported Message
30 |     case unsupportedMessage
   :
53 | public struct ANTMessageProtocolError: Error {
54 |
55 |     public let type: ErrorReasons
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
56 |
57 |     public init(_ type: ErrorReasons) {
[42/61] Compiling AntMessageProtocol ANTFSTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Errors.swift:55:16: warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
26 |
27 | /// ANTMessage Error Reasons
28 | public enum ErrorReasons {
   |             `- note: consider making enum 'ErrorReasons' conform to the 'Sendable' protocol
29 |     /// Unsupported Message
30 |     case unsupportedMessage
   :
53 | public struct ANTMessageProtocolError: Error {
54 |
55 |     public let type: ErrorReasons
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
56 |
57 |     public init(_ type: ErrorReasons) {
[43/61] Compiling AntMessageProtocol Battery.swift
[44/61] Compiling AntMessageProtocol ChannelType.swift
[45/61] Compiling AntMessageProtocol ComponentIdentifier.swift
[46/61] Compiling AntMessageProtocol FitnessEquipmentTypes.swift
[47/61] Compiling AntMessageProtocol Gender.swift
[48/61] Compiling AntMessageProtocol GenericCommand.swift
[49/61] Compiling AntMessageProtocol DataExtension.swift
[50/61] Compiling AntMessageProtocol DeltaExtentions.swift
[51/61] Emitting module AntMessageProtocol
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Errors.swift:55:16: warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
26 |
27 | /// ANTMessage Error Reasons
28 | public enum ErrorReasons {
   |             `- note: consider making enum 'ErrorReasons' conform to the 'Sendable' protocol
29 |     /// Unsupported Message
30 |     case unsupportedMessage
   :
53 | public struct ANTMessageProtocolError: Error {
54 |
55 |     public let type: ErrorReasons
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'ANTMessageProtocolError' has non-sendable type 'ErrorReasons'; this is an error in the Swift 6 language mode
56 |
57 |     public init(_ type: ErrorReasons) {
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/Manufacturer.swift:27:14: warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | import Foundation
 26 |
 27 | internal var allManufacturers: [Manufacturer] = [Manufacturer]()
    |              |- warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'allManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'allManufacturers' 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
 28 |
 29 | /// ANT Manufacturer
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/ManufacturerSupported.swift:31:16: warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// Supported Manufacturers
 31 |     static var supportedManufacturers: [Manufacturer] = {
    |                |- warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedManufacturers' 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
 32 |
 33 |         allManufacturers.append(.unknown)
[52/61] Compiling AntMessageProtocol DataTypes.swift
[53/61] Compiling AntMessageProtocol DateTime.swift
[54/61] Compiling AntMessageProtocol DeviceType.swift
[55/61] Compiling AntMessageProtocol NetworkType.swift
[56/61] Compiling AntMessageProtocol RadioMessageType.swift
[57/61] Compiling AntMessageProtocol Manufacturer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/Manufacturer.swift:27:14: warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | import Foundation
 26 |
 27 | internal var allManufacturers: [Manufacturer] = [Manufacturer]()
    |              |- warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'allManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'allManufacturers' 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
 28 |
 29 | /// ANT Manufacturer
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/ManufacturerSupported.swift:31:16: warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// Supported Manufacturers
 31 |     static var supportedManufacturers: [Manufacturer] = {
    |                |- warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedManufacturers' 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
 32 |
 33 |         allManufacturers.append(.unknown)
[58/61] Compiling AntMessageProtocol ManufacturerExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/Manufacturer.swift:27:14: warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | import Foundation
 26 |
 27 | internal var allManufacturers: [Manufacturer] = [Manufacturer]()
    |              |- warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'allManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'allManufacturers' 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
 28 |
 29 | /// ANT Manufacturer
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/ManufacturerSupported.swift:31:16: warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// Supported Manufacturers
 31 |     static var supportedManufacturers: [Manufacturer] = {
    |                |- warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedManufacturers' 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
 32 |
 33 |         allManufacturers.append(.unknown)
[59/61] Compiling AntMessageProtocol ManufacturerSupported.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/Manufacturer.swift:27:14: warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | import Foundation
 26 |
 27 | internal var allManufacturers: [Manufacturer] = [Manufacturer]()
    |              |- warning: var 'allManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'allManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'allManufacturers' 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
 28 |
 29 | /// ANT Manufacturer
/Users/admin/builder/spi-builder-workspace/Sources/ANTMessageProtocol/Types/Manufacturer/ManufacturerSupported.swift:31:16: warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// Supported Manufacturers
 31 |     static var supportedManufacturers: [Manufacturer] = {
    |                |- warning: static property 'supportedManufacturers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedManufacturers' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedManufacturers' 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
 32 |
 33 |         allManufacturers.append(.unknown)
[60/61] Compiling AntMessageProtocol SoftwareVersion.swift
[61/61] Compiling AntMessageProtocol Sport.swift
Build complete! (27.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "fitnessunits",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/FitnessKit/FitnessUnits"
    },
    {
      "identity" : "datadecoder",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/FitnessKit/DataDecoder"
    }
  ],
  "manifest_display_name" : "AntMessageProtocol",
  "name" : "AntMessageProtocol",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "AntMessageProtocol",
      "targets" : [
        "AntMessageProtocol"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AntMessageProtocolTests",
      "module_type" : "SwiftTarget",
      "name" : "AntMessageProtocolTests",
      "path" : "Tests/AntMessageProtocolTests",
      "sources" : [
        "AntMessageProtocol.swift",
        "ManufacturerTests.swift"
      ],
      "target_dependencies" : [
        "AntMessageProtocol"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AntMessageProtocol",
      "module_type" : "SwiftTarget",
      "name" : "AntMessageProtocol",
      "path" : "Sources",
      "product_dependencies" : [
        "FitnessUnits",
        "DataDecoder"
      ],
      "product_memberships" : [
        "AntMessageProtocol"
      ],
      "sources" : [
        "ANTMessageProtocol/Errors.swift",
        "ANTMessageProtocol/Protocols/EncodingProtocol.swift",
        "ANTMessageProtocol/Types/ANTFSTypes.swift",
        "ANTMessageProtocol/Types/Battery.swift",
        "ANTMessageProtocol/Types/ChannelType.swift",
        "ANTMessageProtocol/Types/ComponentIdentifier.swift",
        "ANTMessageProtocol/Types/DataTypes.swift",
        "ANTMessageProtocol/Types/DateTime.swift",
        "ANTMessageProtocol/Types/DeviceType.swift",
        "ANTMessageProtocol/Types/FitnessEquipmentTypes.swift",
        "ANTMessageProtocol/Types/Gender.swift",
        "ANTMessageProtocol/Types/GenericCommand.swift",
        "ANTMessageProtocol/Types/Manufacturer/Manufacturer.swift",
        "ANTMessageProtocol/Types/Manufacturer/ManufacturerExtension.swift",
        "ANTMessageProtocol/Types/Manufacturer/ManufacturerSupported.swift",
        "ANTMessageProtocol/Types/NetworkType.swift",
        "ANTMessageProtocol/Types/RadioMessageType.swift",
        "ANTMessageProtocol/Types/SoftwareVersion.swift",
        "ANTMessageProtocol/Types/Sport.swift",
        "ANTMessageProtocol/Types/SubSport.swift",
        "ANTMessageProtocol/Types/TransmissionType.swift",
        "ANTMessageProtocol/Utilities/ArrayExtension.swift",
        "ANTMessageProtocol/Utilities/CodingKeys.swift",
        "ANTMessageProtocol/Utilities/DataExtension.swift",
        "ANTMessageProtocol/Utilities/DeltaExtentions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.