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 Prch, reference 1.0.0-alpha.2 (b9329b), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 12:57:48 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: 1.0.0-alpha.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/brightdigit/Prch
 * tag               1.0.0-alpha.2 -> FETCH_HEAD
HEAD is now at b9329ba Allow Status Code Decoding (#30)
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
b9329bab762886dbc478c9f6850a63bfde7fde93
SUCCESS checkout https://github.com/brightdigit/Prch.git at 1.0.0-alpha.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": "prch",
      "name": "Prch",
      "url": "https://github.com/brightdigit/Prch.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Prch",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/brightdigit/Prch.git
[1/2495] Fetching prch
Fetched https://github.com/brightdigit/Prch.git from cache (1.01s)
Creating working copy for https://github.com/brightdigit/Prch.git
Working copy of https://github.com/brightdigit/Prch.git resolved at 1.0.0-alpha.2 (b9329ba)
warning: '.resolve-product-dependencies': dependency 'prch' 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/brightdigit/Prch.git
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/22] Compiling PrchModel API.swift
[5/22] Compiling PrchModel Array.swift
[6/23] Compiling PrchModel Encodable.swift
[7/23] Compiling PrchModel EncodableValue.swift
[8/23] Compiling PrchModel Encoder.swift
[9/23] Compiling PrchModel JSONDecoder.swift
[10/23] Compiling PrchModel Dictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'value' 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
20 |
21 |   private init() {}
[11/23] Compiling PrchModel Empty.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'value' 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
20 |
21 |   private init() {}
[12/23] Compiling PrchModel ContentDecodable.swift
[13/23] Compiling PrchModel ContentEncodable.swift
[14/23] Compiling PrchModel Decodable.swift
[15/23] Compiling PrchModel Decoder.swift
[16/23] Compiling PrchModel CustomServiceDecoding.swift
[17/23] Compiling PrchModel CustomServiceEncoding.swift
[18/23] Emitting module PrchModel
/Users/admin/builder/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'value' 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
20 |
21 |   private init() {}
[19/23] Compiling PrchModel CoderError.swift
[20/23] Compiling PrchModel Content.swift
[21/23] Compiling PrchModel JSONEncoder.swift
[22/23] Compiling PrchModel RequestMethod.swift
[23/23] Compiling PrchModel ServiceCall.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'value' 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
20 |
21 |   private init() {}
[24/35] Compiling Prch URLSession.swift
[25/35] Compiling Prch URLRequest.swift
[26/36] Compiling Prch SessionAuthorization.swift
[27/36] Compiling Prch SessionRequest.swift
[28/36] Compiling Prch Service.swift
[29/36] Compiling Prch ServiceProtocol.swift
[30/36] Compiling Prch SessionResponse.swift
[31/36] Compiling Prch Session.swift
[32/36] Compiling Prch AuthorizationManager.swift
[33/36] Compiling Prch NullAuthorizationManager.swift
[34/36] Emitting module Prch
[35/36] Compiling Prch RequestError.swift
[36/36] Compiling Prch URLSessionResponse.swift
Build complete! (14.28s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prch",
  "name" : "Prch",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Prch",
      "targets" : [
        "Prch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PrchModel",
      "targets" : [
        "PrchModel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrchTests",
      "module_type" : "SwiftTarget",
      "name" : "PrchTests",
      "path" : "Tests/PrchTests",
      "sources" : [
        "PrchTests.swift",
        "ServiceImplTests.swift",
        "URLComponents.swift"
      ],
      "target_dependencies" : [
        "Prch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PrchModel",
      "module_type" : "SwiftTarget",
      "name" : "PrchModel",
      "path" : "Sources/PrchModel",
      "product_memberships" : [
        "Prch",
        "PrchModel"
      ],
      "sources" : [
        "API.swift",
        "Array.swift",
        "CoderError.swift",
        "Content.swift",
        "ContentDecodable.swift",
        "ContentEncodable.swift",
        "CustomServiceDecoding.swift",
        "CustomServiceEncoding.swift",
        "Decodable.swift",
        "Decoder.swift",
        "Dictionary.swift",
        "Empty.swift",
        "Encodable.swift",
        "EncodableValue.swift",
        "Encoder.swift",
        "JSONDecoder.swift",
        "JSONEncoder.swift",
        "RequestMethod.swift",
        "ServiceCall.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Prch",
      "module_type" : "SwiftTarget",
      "name" : "Prch",
      "path" : "Sources/Prch",
      "product_memberships" : [
        "Prch"
      ],
      "sources" : [
        "AuthorizationManager.swift",
        "NullAuthorizationManager.swift",
        "Service.swift",
        "ServiceProtocol.swift",
        "Session/RequestError.swift",
        "Session/Session.swift",
        "Session/SessionAuthorization.swift",
        "Session/SessionRequest.swift",
        "Session/SessionResponse.swift",
        "Session/URLSession/URLRequest.swift",
        "Session/URLSession/URLSession.swift",
        "Session/URLSession/URLSessionResponse.swift"
      ],
      "target_dependencies" : [
        "PrchModel"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.