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 Ciao, reference 2.1.2 (658361), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 09:31:52 UTC.

Swift 6 data race errors: 2

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/AlTavares/Ciao.git
Reference: 2.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AlTavares/Ciao
 * tag               2.1.2      -> FETCH_HEAD
HEAD is now at 658361c Update README.MD
Cloned https://github.com/AlTavares/Ciao.git
Revision (git rev-parse @):
658361c6d28c9f917178c23f9235fa40cd9090d0
SUCCESS checkout https://github.com/AlTavares/Ciao.git at 2.1.2
========================================
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": "ciao",
      "name": "Ciao",
      "url": "https://github.com/AlTavares/Ciao.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Ciao",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/AlTavares/Ciao.git
[1/595] Fetching ciao
Fetched https://github.com/AlTavares/Ciao.git from cache (0.78s)
Creating working copy for https://github.com/AlTavares/Ciao.git
Working copy of https://github.com/AlTavares/Ciao.git resolved at 2.1.2 (658361c)
warning: '.resolve-product-dependencies': dependency 'ciao' 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/AlTavares/Ciao.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Ciao",
  "name" : "Ciao",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Ciao",
      "targets" : [
        "Ciao"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CiaoTests",
      "module_type" : "SwiftTarget",
      "name" : "CiaoTests",
      "path" : "Tests/CiaoTests",
      "sources" : [
        "CiaoBrowserTests.swift",
        "CiaoServerTests.swift",
        "TestWithExpectation.swift"
      ],
      "target_dependencies" : [
        "Ciao"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Ciao",
      "module_type" : "SwiftTarget",
      "name" : "Ciao",
      "path" : "Sources/Ciao",
      "product_memberships" : [
        "Ciao"
      ],
      "sources" : [
        "CiaoBrowser.swift",
        "CiaoResolver.swift",
        "CiaoServer.swift",
        "Logger.swift",
        "NetServiceExtension.swift",
        "ServiceType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/9] Compiling Ciao NetServiceExtension.swift
[4/9] Compiling Ciao ServiceType.swift
[5/9] Compiling Ciao Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:34:12: warning: var 'LoggerLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public var LoggerLevel = Level.verbose
    |            |- warning: var 'LoggerLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'LoggerLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'LoggerLevel' 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
 35 |
 36 | struct Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:37:24: warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | struct Logger {
 37 |     private static var dateFormat = "yyyy-MM-dd hh:mm:ssSSS"
    |                        |- warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dateFormat' 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
 38 |     private static var dateFormatter: DateFormatter {
 39 |         let formatter = DateFormatter()
[6/9] Compiling Ciao CiaoResolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/CiaoResolver.swift:32:1: warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
30 |
31 | public typealias ErrorDictionary = [String: NSNumber]
32 | extension ErrorDictionary: Error {}
   | |- warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
33 |
34 | extension CiaoResolver {
[7/9] Compiling Ciao CiaoBrowser.swift
[8/9] Compiling Ciao CiaoServer.swift
[9/9] Emitting module Ciao
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/CiaoResolver.swift:32:1: warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
30 |
31 | public typealias ErrorDictionary = [String: NSNumber]
32 | extension ErrorDictionary: Error {}
   | |- warning: extension declares a conformance of imported type 'Dictionary' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
33 |
34 | extension CiaoResolver {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:34:12: warning: var 'LoggerLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 | }
 33 |
 34 | public var LoggerLevel = Level.verbose
    |            |- warning: var 'LoggerLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'LoggerLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'LoggerLevel' 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
 35 |
 36 | struct Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Ciao/Logger.swift:37:24: warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | struct Logger {
 37 |     private static var dateFormat = "yyyy-MM-dd hh:mm:ssSSS"
    |                        |- warning: static property 'dateFormat' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dateFormat' 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
 38 |     private static var dateFormatter: DateFormatter {
 39 |         let formatter = DateFormatter()
Build complete! (8.72s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Ciao",
  "name" : "Ciao",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Ciao",
      "targets" : [
        "Ciao"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CiaoTests",
      "module_type" : "SwiftTarget",
      "name" : "CiaoTests",
      "path" : "Tests/CiaoTests",
      "sources" : [
        "CiaoBrowserTests.swift",
        "CiaoServerTests.swift",
        "TestWithExpectation.swift"
      ],
      "target_dependencies" : [
        "Ciao"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Ciao",
      "module_type" : "SwiftTarget",
      "name" : "Ciao",
      "path" : "Sources/Ciao",
      "product_memberships" : [
        "Ciao"
      ],
      "sources" : [
        "CiaoBrowser.swift",
        "CiaoResolver.swift",
        "CiaoServer.swift",
        "Logger.swift",
        "NetServiceExtension.swift",
        "ServiceType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.