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 GPX, reference main (7b387b), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 10:57:36 UTC.

Swift 6 data race errors: 4

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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isklikas/iOS-GPX-Framework.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/isklikas/iOS-GPX-Framework
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7b387b4 Update README.md
Cloned https://github.com/isklikas/iOS-GPX-Framework.git
Revision (git rev-parse @):
7b387b48b04786a0856aec4e933be7acb914a776
SUCCESS checkout https://github.com/isklikas/iOS-GPX-Framework.git at main
========================================
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": "ios-gpx-framework",
      "name": "GPX",
      "url": "https://github.com/isklikas/iOS-GPX-Framework.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iOS-GPX-Framework",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/isklikas/iOS-GPX-Framework.git
[1/538] Fetching ios-gpx-framework
Fetched https://github.com/isklikas/iOS-GPX-Framework.git from cache (0.75s)
Creating working copy for https://github.com/isklikas/iOS-GPX-Framework.git
Working copy of https://github.com/isklikas/iOS-GPX-Framework.git resolved at main (7b387b4)
warning: '.resolve-product-dependencies': dependency 'ios-gpx-framework' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/isklikas/iOS-GPX-Framework.git
https://github.com/isklikas/iOS-GPX-Framework.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GPX",
  "name" : "GPX",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "GPX",
      "targets" : [
        "GPX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GPXTests",
      "module_type" : "SwiftTarget",
      "name" : "GPXTests",
      "path" : "Tests/GPXTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GPXTests/mystic_basin_trail.gpx",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GPXTests/sample.gpx",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "GPXTests.swift"
      ],
      "target_dependencies" : [
        "GPX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GPX",
      "module_type" : "SwiftTarget",
      "name" : "GPX",
      "path" : "Sources/GPX",
      "product_memberships" : [
        "GPX"
      ],
      "sources" : [
        "Element/GPXAuthor.swift",
        "Element/GPXBounds.swift",
        "Element/GPXCopyright.swift",
        "Element/GPXElement.swift",
        "Element/GPXEmail.swift",
        "Element/GPXExtensions.swift",
        "Element/GPXLink.swift",
        "Element/GPXMetadata.swift",
        "Element/GPXPerson.swift",
        "Element/GPXPoint.swift",
        "Element/GPXPointSegment.swift",
        "Element/GPXRoot.swift",
        "Element/GPXRoute.swift",
        "Element/GPXRoutePoint.swift",
        "Element/GPXTrack.swift",
        "Element/GPXTrackPoint.swift",
        "Element/GPXTrackPointExtensions.swift",
        "Element/GPXTrackSegment.swift",
        "Element/GPXTrailsTrackExtensions.swift",
        "Element/GPXTrailsTrackPointExtensions.swift",
        "Element/GPXWaypoint.swift",
        "GPX-Extensions.swift",
        "GPXLogger.swift",
        "GPXParser.swift",
        "GPXType.swift",
        "GPXXMLParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/27] Emitting module GPX
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPX-Extensions.swift:15:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | public extension DispatchQueue {
14 |
15 |     private static var _onceTracker = [String]()
   |                        |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:23:16: warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | class GPXType: NSObject {
 22 |     static let pred = NSUUID().uuidString
 23 |     static var dateFormatter_ssZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ssZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ssZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:25:16: warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |     static var dateFormatter_ssZ: DateFormatter?
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ss_SSSZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ss_SSSZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:27:16: warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
    |                |- warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_sszzzz' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_sszzzz' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |
[4/29] Compiling GPX GPXType.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:23:16: warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | class GPXType: NSObject {
 22 |     static let pred = NSUUID().uuidString
 23 |     static var dateFormatter_ssZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ssZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ssZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:25:16: warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |     static var dateFormatter_ssZ: DateFormatter?
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ss_SSSZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ss_SSSZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:27:16: warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
    |                |- warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_sszzzz' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_sszzzz' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |
[5/29] Compiling GPX GPXXMLParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:23:16: warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | class GPXType: NSObject {
 22 |     static let pred = NSUUID().uuidString
 23 |     static var dateFormatter_ssZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ssZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ssZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ssZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:25:16: warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |     static var dateFormatter_ssZ: DateFormatter?
 24 |     static let pred_ss_SSSZ = NSUUID().uuidString
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
    |                |- warning: static property 'dateFormatter_ss_SSSZ' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_ss_SSSZ' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_ss_SSSZ' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXType.swift:27:16: warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     static var dateFormatter_ss_SSSZ: DateFormatter?
 26 |     static let pred_sszzzz = NSUUID().uuidString
 27 |     static var dateFormatter_sszzzz: DateFormatter?
    |                |- warning: static property 'dateFormatter_sszzzz' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'dateFormatter_sszzzz' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'dateFormatter_sszzzz' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |
[6/29] Compiling GPX GPXAuthor.swift
[7/29] Compiling GPX GPXBounds.swift
[8/29] Compiling GPX GPXCopyright.swift
[9/29] Compiling GPX GPXLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXParser.swift:106:34: warning: sending 'parsedElement' risks causing data races; this is an error in the Swift 6 language mode
104 |                     continuation.resume(throwing: error);
105 |                 case .success(let parsedElement):
106 |                     continuation.resume(returning: parsedElement);
    |                                  |- warning: sending 'parsedElement' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'parsedElement' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
107 |                 }
108 |             })
[10/29] Compiling GPX GPXParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPXParser.swift:106:34: warning: sending 'parsedElement' risks causing data races; this is an error in the Swift 6 language mode
104 |                     continuation.resume(throwing: error);
105 |                 case .success(let parsedElement):
106 |                     continuation.resume(returning: parsedElement);
    |                                  |- warning: sending 'parsedElement' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'parsedElement' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
107 |                 }
108 |             })
[11/29] Compiling GPX GPXWaypoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPX-Extensions.swift:15:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | public extension DispatchQueue {
14 |
15 |     private static var _onceTracker = [String]()
   |                        |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /**
[12/29] Compiling GPX GPX-Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/GPX/GPX-Extensions.swift:15:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | public extension DispatchQueue {
14 |
15 |     private static var _onceTracker = [String]()
   |                        |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /**
[13/29] Compiling GPX GPXTrackPoint.swift
[14/29] Compiling GPX GPXTrackPointExtensions.swift
[15/29] Compiling GPX GPXTrackSegment.swift
[16/29] Compiling GPX GPXLink.swift
[17/29] Compiling GPX GPXMetadata.swift
[18/29] Compiling GPX GPXPerson.swift
[19/29] Compiling GPX GPXRoute.swift
[20/29] Compiling GPX GPXRoutePoint.swift
[21/29] Compiling GPX GPXTrack.swift
[22/29] Compiling GPX GPXElement.swift
[23/29] Compiling GPX GPXEmail.swift
[24/29] Compiling GPX GPXExtensions.swift
[25/29] Compiling GPX GPXTrailsTrackExtensions.swift
[26/29] Compiling GPX GPXTrailsTrackPointExtensions.swift
[27/29] Compiling GPX GPXPoint.swift
[28/29] Compiling GPX GPXPointSegment.swift
[29/29] Compiling GPX GPXRoot.swift
Build complete! (6.48s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GPX",
  "name" : "GPX",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "GPX",
      "targets" : [
        "GPX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GPXTests",
      "module_type" : "SwiftTarget",
      "name" : "GPXTests",
      "path" : "Tests/GPXTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GPXTests/mystic_basin_trail.gpx",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/GPXTests/sample.gpx",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "GPXTests.swift"
      ],
      "target_dependencies" : [
        "GPX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GPX",
      "module_type" : "SwiftTarget",
      "name" : "GPX",
      "path" : "Sources/GPX",
      "product_memberships" : [
        "GPX"
      ],
      "sources" : [
        "Element/GPXAuthor.swift",
        "Element/GPXBounds.swift",
        "Element/GPXCopyright.swift",
        "Element/GPXElement.swift",
        "Element/GPXEmail.swift",
        "Element/GPXExtensions.swift",
        "Element/GPXLink.swift",
        "Element/GPXMetadata.swift",
        "Element/GPXPerson.swift",
        "Element/GPXPoint.swift",
        "Element/GPXPointSegment.swift",
        "Element/GPXRoot.swift",
        "Element/GPXRoute.swift",
        "Element/GPXRoutePoint.swift",
        "Element/GPXTrack.swift",
        "Element/GPXTrackPoint.swift",
        "Element/GPXTrackPointExtensions.swift",
        "Element/GPXTrackSegment.swift",
        "Element/GPXTrailsTrackExtensions.swift",
        "Element/GPXTrailsTrackPointExtensions.swift",
        "Element/GPXWaypoint.swift",
        "GPX-Extensions.swift",
        "GPXLogger.swift",
        "GPXParser.swift",
        "GPXType.swift",
        "GPXXMLParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.