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 CoreGPX, reference 0.9.3 (42662c), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 02:25:37 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vincentneo/CoreGPX.git
Reference: 0.9.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vincentneo/CoreGPX
 * tag               0.9.3      -> FETCH_HEAD
HEAD is now at 42662cc iOS minimum deployment is now set to v12.
Cloned https://github.com/vincentneo/CoreGPX.git
Revision (git rev-parse @):
42662cc9235d385bdd0356c8f4cb7b581da24e39
SUCCESS checkout https://github.com/vincentneo/CoreGPX.git at 0.9.3
========================================
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": "coregpx",
      "name": "CoreGPX",
      "url": "https://github.com/vincentneo/CoreGPX.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreGPX",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/vincentneo/CoreGPX.git
[1/4067] Fetching coregpx
Fetched https://github.com/vincentneo/CoreGPX.git from cache (1.26s)
Creating working copy for https://github.com/vincentneo/CoreGPX.git
Working copy of https://github.com/vincentneo/CoreGPX.git resolved at 0.9.3 (42662cc)
warning: '.resolve-product-dependencies': dependency 'coregpx' 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/vincentneo/CoreGPX.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CoreGPX",
  "name" : "CoreGPX",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CoreGPX",
      "targets" : [
        "CoreGPX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoreGPXTests",
      "module_type" : "SwiftTarget",
      "name" : "CoreGPXTests",
      "path" : "Example/Tests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "CoreGPX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CoreGPX",
      "module_type" : "SwiftTarget",
      "name" : "CoreGPX",
      "path" : "Classes",
      "product_memberships" : [
        "CoreGPX"
      ],
      "sources" : [
        "Converters.swift",
        "DateTimeParsers.swift",
        "GPXAuthor.swift",
        "GPXBounds.swift",
        "GPXCompression.swift",
        "GPXCopyright.swift",
        "GPXElement.swift",
        "GPXEmail.swift",
        "GPXError.swift",
        "GPXExtensions.swift",
        "GPXExtensionsElement.swift",
        "GPXFix.swift",
        "GPXLegacy.swift",
        "GPXLink.swift",
        "GPXMetadata.swift",
        "GPXParser.swift",
        "GPXPerson.swift",
        "GPXPoint.swift",
        "GPXPointSegment.swift",
        "GPXRawElement.swift",
        "GPXRoot.swift",
        "GPXRoute.swift",
        "GPXRoutePoint.swift",
        "GPXRouteProtocol.swift",
        "GPXTrack.swift",
        "GPXTrackPoint.swift",
        "GPXTrackSegment.swift",
        "GPXWaypoint.swift",
        "GPXWaypointProtocol.swift",
        "NSMutableString+XML.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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 -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--7754E27361AE5C74.txt
[3/30] Emitting module CoreGPX
/Users/admin/builder/spi-builder-workspace/Classes/DateTimeParsers.swift:27:24: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     #if !os(Linux)
 26 |     /// Caching Calendar such that it can be used repeatedly without reinitializing it.
 27 |     private static var calendarCache = [Int : Calendar]()
    |                        |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'calendarCache' 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 |     /// Components of Date stored together
 29 |     private var components = DateComponents()
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:16:14: warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
14 |     public enum coordinates: Error {
15 |         /// when lat is outside range (-90˚ to 90˚)
16 |         case invalidLatitude(dueTo: reason)
   |              `- warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:18:14: warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
16 |         case invalidLatitude(dueTo: reason)
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
   |              `- warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
[4/33] Compiling CoreGPX GPXWaypoint.swift
[5/33] Compiling CoreGPX GPXWaypointProtocol.swift
[6/33] Compiling CoreGPX NSMutableString+XML.swift
[7/33] Compiling CoreGPX Converters.swift
/Users/admin/builder/spi-builder-workspace/Classes/DateTimeParsers.swift:27:24: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     #if !os(Linux)
 26 |     /// Caching Calendar such that it can be used repeatedly without reinitializing it.
 27 |     private static var calendarCache = [Int : Calendar]()
    |                        |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'calendarCache' 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 |     /// Components of Date stored together
 29 |     private var components = DateComponents()
[8/33] Compiling CoreGPX DateTimeParsers.swift
/Users/admin/builder/spi-builder-workspace/Classes/DateTimeParsers.swift:27:24: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     #if !os(Linux)
 26 |     /// Caching Calendar such that it can be used repeatedly without reinitializing it.
 27 |     private static var calendarCache = [Int : Calendar]()
    |                        |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'calendarCache' 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 |     /// Components of Date stored together
 29 |     private var components = DateComponents()
[9/33] Compiling CoreGPX GPXAuthor.swift
/Users/admin/builder/spi-builder-workspace/Classes/DateTimeParsers.swift:27:24: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |     #if !os(Linux)
 26 |     /// Caching Calendar such that it can be used repeatedly without reinitializing it.
 27 |     private static var calendarCache = [Int : Calendar]()
    |                        |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'calendarCache' 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 |     /// Components of Date stored together
 29 |     private var components = DateComponents()
[10/33] Compiling CoreGPX GPXRoute.swift
[11/33] Compiling CoreGPX GPXRoutePoint.swift
[12/33] Compiling CoreGPX GPXRouteProtocol.swift
[13/33] Compiling CoreGPX GPXExtensions.swift
[14/33] Compiling CoreGPX GPXExtensionsElement.swift
[15/33] Compiling CoreGPX GPXFix.swift
[16/33] Compiling CoreGPX GPXParser.swift
[17/33] Compiling CoreGPX GPXPerson.swift
[18/33] Compiling CoreGPX GPXPoint.swift
[19/33] Compiling CoreGPX GPXPointSegment.swift
[20/33] Compiling CoreGPX GPXRawElement.swift
[21/33] Compiling CoreGPX GPXRoot.swift
[22/33] Compiling CoreGPX GPXElement.swift
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:16:14: warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
14 |     public enum coordinates: Error {
15 |         /// when lat is outside range (-90˚ to 90˚)
16 |         case invalidLatitude(dueTo: reason)
   |              `- warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:18:14: warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
16 |         case invalidLatitude(dueTo: reason)
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
   |              `- warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
[23/33] Compiling CoreGPX GPXEmail.swift
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:16:14: warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
14 |     public enum coordinates: Error {
15 |         /// when lat is outside range (-90˚ to 90˚)
16 |         case invalidLatitude(dueTo: reason)
   |              `- warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:18:14: warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
16 |         case invalidLatitude(dueTo: reason)
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
   |              `- warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
[24/33] Compiling CoreGPX GPXError.swift
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:16:14: warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
14 |     public enum coordinates: Error {
15 |         /// when lat is outside range (-90˚ to 90˚)
16 |         case invalidLatitude(dueTo: reason)
   |              `- warning: associated value 'invalidLatitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
/Users/admin/builder/spi-builder-workspace/Classes/GPXError.swift:18:14: warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
16 |         case invalidLatitude(dueTo: reason)
17 |         /// when lon is outside range (-180˚ to 180˚)
18 |         case invalidLongitude(dueTo: reason)
   |              `- warning: associated value 'invalidLongitude(dueTo:)' of 'Sendable'-conforming enum 'coordinates' has non-sendable type 'GPXError.coordinates.reason'; this is an error in the Swift 6 language mode
19 |
20 |         /// reason of why a coordinate error is thrown.
21 |         public enum reason {
   |                     `- note: consider making enum 'reason' conform to the 'Sendable' protocol
22 |             /// < -90˚ (lat) / < -180˚ (lon)
23 |             case underLimit
[25/33] Compiling CoreGPX GPXLegacy.swift
[26/33] Compiling CoreGPX GPXLink.swift
[27/33] Compiling CoreGPX GPXMetadata.swift
[28/33] Compiling CoreGPX GPXTrack.swift
[29/33] Compiling CoreGPX GPXTrackPoint.swift
[30/33] Compiling CoreGPX GPXTrackSegment.swift
[31/33] Compiling CoreGPX GPXBounds.swift
[32/33] Compiling CoreGPX GPXCompression.swift
[33/33] Compiling CoreGPX GPXCopyright.swift
Build complete! (21.32s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CoreGPX",
  "name" : "CoreGPX",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CoreGPX",
      "targets" : [
        "CoreGPX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoreGPXTests",
      "module_type" : "SwiftTarget",
      "name" : "CoreGPXTests",
      "path" : "Example/Tests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "CoreGPX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CoreGPX",
      "module_type" : "SwiftTarget",
      "name" : "CoreGPX",
      "path" : "Classes",
      "product_memberships" : [
        "CoreGPX"
      ],
      "sources" : [
        "Converters.swift",
        "DateTimeParsers.swift",
        "GPXAuthor.swift",
        "GPXBounds.swift",
        "GPXCompression.swift",
        "GPXCopyright.swift",
        "GPXElement.swift",
        "GPXEmail.swift",
        "GPXError.swift",
        "GPXExtensions.swift",
        "GPXExtensionsElement.swift",
        "GPXFix.swift",
        "GPXLegacy.swift",
        "GPXLink.swift",
        "GPXMetadata.swift",
        "GPXParser.swift",
        "GPXPerson.swift",
        "GPXPoint.swift",
        "GPXPointSegment.swift",
        "GPXRawElement.swift",
        "GPXRoot.swift",
        "GPXRoute.swift",
        "GPXRoutePoint.swift",
        "GPXRouteProtocol.swift",
        "GPXTrack.swift",
        "GPXTrackPoint.swift",
        "GPXTrackSegment.swift",
        "GPXWaypoint.swift",
        "GPXWaypointProtocol.swift",
        "NSMutableString+XML.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.