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

Swift 6 data race errors: 0

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/JustinGuedes/prelude.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/JustinGuedes/prelude
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cf08b07 Add support for Apple Watch
Cloned https://github.com/JustinGuedes/prelude.git
Revision (git rev-parse @):
cf08b076457a55b193ff54881a277391a0c3e1dd
SUCCESS checkout https://github.com/JustinGuedes/prelude.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/JustinGuedes/prelude.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/17] Compiling Prelude DefaultCodable.swift
[4/17] Compiling Prelude XMLDecoder.swift
[5/18] Compiling Prelude DefaultArray.swift
[6/18] Compiling Prelude DefaultBool.swift
[7/18] Compiling Prelude XMLElement.swift
[8/18] Compiling Prelude XMLDecoderUnkeyedDecodingContainer.swift
[9/18] Compiling Prelude XMLDecoderSingleValueDecodingContainer.swift
[10/18] Compiling Prelude XMLDecoderKeyedDecodingContainer.swift
[11/18] Compiling Prelude UIDevice.swift
[12/18] Compiling Prelude Default.swift
[13/18] Compiling Prelude Array.swift
[14/18] Compiling Prelude Date.swift
[15/18] Emitting module Prelude
[16/18] Compiling Prelude Sequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:10:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 6 | public extension Sequence {
 7 |
 8 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> T?) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 9 |         var result: [T] = []
10 |         try await withThrowingTaskGroup(of: Optional<T>.self) { group in
   |                   `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:12:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 6 | public extension Sequence {
 7 |
 8 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> T?) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 9 |         var result: [T] = []
10 |         try await withThrowingTaskGroup(of: Optional<T>.self) { group in
11 |             for element in self {
12 |                 group.addTask {
   |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |                     try await transform(element)
14 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:13:31: warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
13 |                     try await transform(element)
   |                               |- warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
14 |                 }
15 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:13:41: warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
13 |                     try await transform(element)
   |                                         `- warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |                 }
15 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:29:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 |     }
26 |
27 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> [T]) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |         var result: [T] = []
29 |         try await withThrowingTaskGroup(of: Array<T>.self) { group in
   |                   `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:31:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 |     }
26 |
27 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> [T]) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |         var result: [T] = []
29 |         try await withThrowingTaskGroup(of: Array<T>.self) { group in
30 |             for element in self {
31 |                 group.addTask {
   |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
32 |                     try await transform(element)
33 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:32:31: warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> [T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
32 |                     try await transform(element)
   |                               |- warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> [T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 |                 }
34 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:32:41: warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
32 |                     try await transform(element)
   |                                         `- warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |                 }
34 |             }
[17/18] Compiling Prelude String.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:10:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 6 | public extension Sequence {
 7 |
 8 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> T?) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 9 |         var result: [T] = []
10 |         try await withThrowingTaskGroup(of: Optional<T>.self) { group in
   |                   `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:12:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 6 | public extension Sequence {
 7 |
 8 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> T?) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 9 |         var result: [T] = []
10 |         try await withThrowingTaskGroup(of: Optional<T>.self) { group in
11 |             for element in self {
12 |                 group.addTask {
   |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |                     try await transform(element)
14 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:13:31: warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
13 |                     try await transform(element)
   |                               |- warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
14 |                 }
15 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:13:41: warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |             for element in self {
12 |                 group.addTask {
13 |                     try await transform(element)
   |                                         `- warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |                 }
15 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:29:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 |     }
26 |
27 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> [T]) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |         var result: [T] = []
29 |         try await withThrowingTaskGroup(of: Array<T>.self) { group in
   |                   `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:31:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 |     }
26 |
27 |     func flatMap<T>(_ transform: @escaping (Element) async throws -> [T]) async rethrows -> [T] {
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 |         var result: [T] = []
29 |         try await withThrowingTaskGroup(of: Array<T>.self) { group in
30 |             for element in self {
31 |                 group.addTask {
   |                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
32 |                     try await transform(element)
33 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:32:31: warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> [T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
32 |                     try await transform(element)
   |                               |- warning: capture of 'transform' with non-sendable type '(Self.Element) async throws -> [T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 |                 }
34 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Prelude/Extensions/Sequence.swift:32:41: warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             for element in self {
31 |                 group.addTask {
32 |                     try await transform(element)
   |                                         `- warning: capture of 'element' with non-sendable type 'Self.Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |                 }
34 |             }
[18/18] Compiling Prelude XMLParser.swift
Build complete! (21.72s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prelude",
  "name" : "Prelude",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Prelude",
      "targets" : [
        "Prelude"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PreludeTests",
      "module_type" : "SwiftTarget",
      "name" : "PreludeTests",
      "path" : "Tests/PreludeTests",
      "sources" : [
        "Extensions/SequenceTests.swift"
      ],
      "target_dependencies" : [
        "Prelude"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prelude",
      "module_type" : "SwiftTarget",
      "name" : "Prelude",
      "path" : "Sources/Prelude",
      "product_memberships" : [
        "Prelude"
      ],
      "sources" : [
        "Extensions/Array.swift",
        "Extensions/Date.swift",
        "Extensions/Sequence.swift",
        "Extensions/String.swift",
        "Extensions/UIDevice.swift",
        "PropertyWrappers/Default/Default.swift",
        "PropertyWrappers/Default/DefaultArray.swift",
        "PropertyWrappers/Default/DefaultBool.swift",
        "PropertyWrappers/Default/DefaultCodable.swift",
        "Utilities/XMLDecoder/XMLDecoder.swift",
        "Utilities/XMLDecoder/XMLDecoderKeyedDecodingContainer.swift",
        "Utilities/XMLDecoder/XMLDecoderSingleValueDecodingContainer.swift",
        "Utilities/XMLDecoder/XMLDecoderUnkeyedDecodingContainer.swift",
        "Utilities/XMLDecoder/XMLElement.swift",
        "Utilities/XMLDecoder/XMLParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.