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

Swift 6 data race errors: 2

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/binarybirds/timezones.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/binarybirds/timezones
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 03bb9fb license
Cloned https://github.com/binarybirds/timezones.git
Revision (git rev-parse @):
03bb9fbc72df1be9d6611cb8215db09711ebd378
SUCCESS checkout https://github.com/binarybirds/timezones.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/binarybirds/timezones.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Compiling TimeZones TimeZone+Location.swift
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:24:5: warning: 'public' modifier is redundant for static property declared in a public extension
 22 | public extension TimeZone {
 23 |
 24 |     public static var local: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 25 |         return TimeZone(identifier: NSTimeZone.local.identifier)!
 26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:28:5: warning: 'public' modifier is redundant for static property declared in a public extension
 26 |     }
 27 |
 28 |     public static var system: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 29 |         return TimeZone(identifier: NSTimeZone.system.identifier)!
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:33:23: warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |                       |- warning: static property 'knownTimeZoneCoordinates' 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 'knownTimeZoneCoordinates' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'knownTimeZoneCoordinates' 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
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:33:5: warning: 'public' modifier is redundant for static property declared in a public extension
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:492:23: warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |                       |- warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'GMT' 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
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
/Users/admin/builder/spi-builder-workspace/Sources/Coordinate.swift:13:15: note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct Coordinate: Codable {
   |               `- note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
14 |     public let latitude: Double
15 |     public let longitude: Double
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:492:5: warning: 'public' modifier is redundant for static property declared in a public extension
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
[4/6] Compiling TimeZones TimeZone+Abbrevation.swift
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:13:5: warning: 'public' modifier is redundant for enum declared in a public extension
11 |
12 |     //created from: TimeZone.abbreviationDictionary.keys
13 |     public enum Abbrevation: String {
   |     `- warning: 'public' modifier is redundant for enum declared in a public extension
14 |         case adt
15 |         case akdt
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:67:5: warning: 'public' modifier is redundant for initializer declared in a public extension
65 |     }
66 |
67 |     public init(abbrevation: TimeZone.Abbrevation) {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
68 |         self.init(abbreviation: abbrevation.rawValue.uppercased())!
69 |     }
[5/6] Compiling TimeZones Coordinate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Coordinate.swift:26:5: warning: 'public' modifier is redundant for property declared in a public extension
24 | #if canImport(CoreLocation)
25 | public extension Coordinate {
26 |     public var coreLocationCoordinate2D: CLLocationCoordinate2D {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
27 |         return CLLocationCoordinate2D(latitude: self.latitude, longitude: self.longitude)
28 |     }
[6/6] Emitting module TimeZones
/Users/admin/builder/spi-builder-workspace/Sources/Coordinate.swift:26:5: warning: 'public' modifier is redundant for property declared in a public extension
24 | #if canImport(CoreLocation)
25 | public extension Coordinate {
26 |     public var coreLocationCoordinate2D: CLLocationCoordinate2D {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
27 |         return CLLocationCoordinate2D(latitude: self.latitude, longitude: self.longitude)
28 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:13:5: warning: 'public' modifier is redundant for enum declared in a public extension
11 |
12 |     //created from: TimeZone.abbreviationDictionary.keys
13 |     public enum Abbrevation: String {
   |     `- warning: 'public' modifier is redundant for enum declared in a public extension
14 |         case adt
15 |         case akdt
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:67:5: warning: 'public' modifier is redundant for initializer declared in a public extension
65 |     }
66 |
67 |     public init(abbrevation: TimeZone.Abbrevation) {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
68 |         self.init(abbreviation: abbrevation.rawValue.uppercased())!
69 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:24:5: warning: 'public' modifier is redundant for static property declared in a public extension
 22 | public extension TimeZone {
 23 |
 24 |     public static var local: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 25 |         return TimeZone(identifier: NSTimeZone.local.identifier)!
 26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:28:5: warning: 'public' modifier is redundant for static property declared in a public extension
 26 |     }
 27 |
 28 |     public static var system: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 29 |         return TimeZone(identifier: NSTimeZone.system.identifier)!
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:33:23: warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |                       |- warning: static property 'knownTimeZoneCoordinates' 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 'knownTimeZoneCoordinates' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'knownTimeZoneCoordinates' 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
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:33:5: warning: 'public' modifier is redundant for static property declared in a public extension
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:492:23: warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |                       |- warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'GMT' 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
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
/Users/admin/builder/spi-builder-workspace/Sources/Coordinate.swift:13:15: note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct Coordinate: Codable {
   |               `- note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
14 |     public let latitude: Double
15 |     public let longitude: Double
/Users/admin/builder/spi-builder-workspace/Sources/TimeZone+Location.swift:492:5: warning: 'public' modifier is redundant for static property declared in a public extension
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
Build complete! (18.60s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TimeZones",
  "name" : "TimeZones",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TimeZones",
      "targets" : [
        "TimeZones"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TimeZonesTests",
      "module_type" : "SwiftTarget",
      "name" : "TimeZonesTests",
      "path" : "Tests/TimeZonesTests",
      "sources" : [
        "TimeZonesTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TimeZones"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TimeZones",
      "module_type" : "SwiftTarget",
      "name" : "TimeZones",
      "path" : "Sources",
      "product_memberships" : [
        "TimeZones"
      ],
      "sources" : [
        "Coordinate.swift",
        "TimeZone+Abbrevation.swift",
        "TimeZone+Location.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.