This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/FitnessKit/AntMessageProtocol.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[5/33] Compiling DataDecoder Nibble.swift
[6/33] Compiling FitnessUnits UnitCadence.swift
[7/33] Compiling FitnessUnits UnitCount.swift
[8/33] Compiling FitnessUnits UnitMagneticField.swift
[9/33] Compiling FitnessUnits UnitMass.swift
[10/33] Compiling FitnessUnits UnitRadioactivity.swift
[11/35] Compiling DataDecoder MACAddress.swift
[12/35] Compiling FitnessUnits UnitPercent.swift
[13/35] Compiling FitnessUnits MeasurementZone.swift
[14/35] Compiling DataDecoder ANTToggleByte.swift
[15/35] Compiling DataDecoder DataExtension.swift
[16/35] Compiling FitnessUnits UnitEnergy.swift
[17/35] Compiling FitnessUnits UnitForce.swift
[18/35] Compiling FitnessUnits UnitLinearDensity.swift
[19/35] Compiling FitnessUnits StringMeasurement.swift
[20/35] Compiling FitnessUnits ValidatedBinaryFloatingPoint.swift
[21/35] Compiling FitnessUnits Color.swift
[22/35] Compiling FitnessUnits UnitAcceleration.swift
[23/35] Compiling FitnessUnits UnitAngle.swift
[24/35] Compiling FitnessUnits UnitAngularVelocity.swift
[25/35] Compiling FitnessUnits UnitConcentrationMass.swift
[26/35] Compiling FitnessUnits UnitDuration.swift
[27/35] Compiling FitnessUnits UnitSpeed.swift
[28/35] Compiling FitnessUnits UnitTorque.swift
[29/35] Emitting module FitnessUnits
[30/35] Compiling FitnessUnits UnitGender.swift
[31/35] Compiling FitnessUnits UnitOxygenConsumption.swift
[32/35] Compiling DataDecoder Decoder.swift
[33/35] Emitting module DataDecoder
[34/35] Compiling FitnessUnits ValidatedBinaryInteger.swift
[35/35] Compiling FitnessUnits ValidatedMeasurement.swift
[36/59] Compiling AntMessageProtocol SoftwareVersion.swift
[37/59] Compiling AntMessageProtocol Sport.swift
[38/61] Compiling AntMessageProtocol ArrayExtension.swift
[39/61] Compiling AntMessageProtocol CodingKeys.swift
[40/61] Compiling AntMessageProtocol SubSport.swift
[41/61] Compiling AntMessageProtocol TransmissionType.swift
[42/61] Compiling AntMessageProtocol FitnessEquipmentTypes.swift
[43/61] Compiling AntMessageProtocol Gender.swift
[44/61] Compiling AntMessageProtocol GenericCommand.swift
[45/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) {
[46/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) {
[47/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) {
[48/61] Compiling AntMessageProtocol Battery.swift
[49/61] Compiling AntMessageProtocol ChannelType.swift
[50/61] Compiling AntMessageProtocol ComponentIdentifier.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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 DataExtension.swift
[61/61] Compiling AntMessageProtocol DeltaExtentions.swift
Build complete! (36.26s)
Fetching https://github.com/FitnessKit/DataDecoder
Fetching https://github.com/FitnessKit/FitnessUnits
[1/417] Fetching datadecoder
[22/1175] Fetching datadecoder, fitnessunits
Fetched https://github.com/FitnessKit/FitnessUnits from cache (1.08s)
Fetched https://github.com/FitnessKit/DataDecoder from cache (1.08s)
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
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.