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 swift-google-drive-client, reference main (3ca487), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 18:04:35 UTC.

Swift 6 data race errors: 4

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/darrarski/swift-google-drive-client.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/darrarski/swift-google-drive-client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3ca4874 Merge pull request #23 from darrarski/fix/example-app-preview-client-get-about
Cloned https://github.com/darrarski/swift-google-drive-client.git
Revision (git rev-parse @):
3ca48747bbc4d82fcf68a978c42a6f225d92ea03
SUCCESS checkout https://github.com/darrarski/swift-google-drive-client.git at main
========================================
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": "swift-google-drive-client",
      "name": "swift-google-drive-client",
      "url": "https://github.com/darrarski/swift-google-drive-client.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-google-drive-client",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/darrarski/swift-google-drive-client.git
[8/753] Fetching swift-google-drive-client
Fetched https://github.com/darrarski/swift-google-drive-client.git from cache (0.83s)
Creating working copy for https://github.com/darrarski/swift-google-drive-client.git
Working copy of https://github.com/darrarski/swift-google-drive-client.git resolved at main (3ca4874)
warning: '.resolve-product-dependencies': dependency 'swift-google-drive-client' 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/darrarski/swift-google-drive-client.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/24] Compiling GoogleDriveClient HTTPClient.swift
[4/24] Compiling GoogleDriveClient Keychain.swift
[5/26] Compiling GoogleDriveClient StorageQuota.swift
[6/26] Compiling GoogleDriveClient UUIDGenerator.swift
[7/26] Compiling GoogleDriveClient DeleteFile.swift
[8/26] Compiling GoogleDriveClient File.swift
[9/26] Compiling GoogleDriveClient Credentials.swift
[10/26] Compiling GoogleDriveClient CurrentValueAsyncSequence.swift
[11/26] Compiling GoogleDriveClient DateGenerator.swift
[12/26] Compiling GoogleDriveClient FilesList.swift
[13/26] Compiling GoogleDriveClient GetAbout.swift
[14/26] Compiling GoogleDriveClient Coding.swift
[15/26] Compiling GoogleDriveClient Config.swift
[16/26] Compiling GoogleDriveClient CreateFile.swift
[17/26] Compiling GoogleDriveClient UpdateFileData.swift
[18/26] Compiling GoogleDriveClient User.swift
[19/26] Compiling GoogleDriveClient GetFile.swift
[20/26] Compiling GoogleDriveClient GetFileData.swift
[21/26] Compiling GoogleDriveClient About.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
_Concurrency.AsyncStream:3:19: note: struct 'Iterator' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 2 | extension AsyncStream : AsyncSequence {
 3 |     public struct Iterator : AsyncIteratorProtocol {
   |                   `- note: struct 'Iterator' does not conform to the 'Sendable' protocol
 4 |         public mutating func next() async -> Element?
 5 |         @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:85:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |           return AsyncStream {
 84 |             if iterator == nil {
 85 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 86 |             }
 87 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:87:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
 87 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |           }
 89 |         }()
[22/26] Compiling GoogleDriveClient Auth.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
_Concurrency.AsyncStream:3:19: note: struct 'Iterator' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 2 | extension AsyncStream : AsyncSequence {
 3 |     public struct Iterator : AsyncIteratorProtocol {
   |                   `- note: struct 'Iterator' does not conform to the 'Sendable' protocol
 4 |         public mutating func next() async -> Element?
 5 |         @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:85:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |           return AsyncStream {
 84 |             if iterator == nil {
 85 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 86 |             }
 87 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:87:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
 87 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |           }
 89 |         }()
[23/26] Compiling GoogleDriveClient Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
_Concurrency.AsyncStream:3:19: note: struct 'Iterator' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 2 | extension AsyncStream : AsyncSequence {
 3 |     public struct Iterator : AsyncIteratorProtocol {
   |                   `- note: struct 'Iterator' does not conform to the 'Sendable' protocol
 4 |         public mutating func next() async -> Element?
 5 |         @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:85:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |           return AsyncStream {
 84 |             if iterator == nil {
 85 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 86 |             }
 87 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:87:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
 87 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |           }
 89 |         }()
[24/26] Compiling GoogleDriveClient ListFiles.swift
[25/26] Compiling GoogleDriveClient OpenURL.swift
[26/26] Emitting module GoogleDriveClient
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: capture of 'iterator' with non-sendable type 'AsyncStream<Bool>.Iterator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
_Concurrency.AsyncStream:3:19: note: struct 'Iterator' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 2 | extension AsyncStream : AsyncSequence {
 3 |     public struct Iterator : AsyncIteratorProtocol {
   |                   `- note: struct 'Iterator' does not conform to the 'Sendable' protocol
 4 |         public mutating func next() async -> Element?
 5 |         @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:84:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |           var iterator: AsyncStream<Bool>.Iterator?
 83 |           return AsyncStream {
 84 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:85:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |           return AsyncStream {
 84 |             if iterator == nil {
 85 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 86 |             }
 87 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/GoogleDriveClient/Auth.swift:87:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |               iterator = isSignedIn.makeAsyncIterator()
 86 |             }
 87 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |           }
 89 |         }()
Build complete! (21.49s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-google-drive-client",
  "name" : "swift-google-drive-client",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "GoogleDriveClient",
      "targets" : [
        "GoogleDriveClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GoogleDriveClientTests",
      "module_type" : "SwiftTarget",
      "name" : "GoogleDriveClientTests",
      "path" : "Tests/GoogleDriveClientTests",
      "sources" : [
        "ActorIsolated.swift",
        "AuthTests.swift",
        "CreateFileTests.swift",
        "DeleteFileTests.swift",
        "GetAboutTests.swift",
        "GetFileDataTests.swift",
        "GetFileTests.swift",
        "ListFilesTests.swift",
        "TestHelpers.swift",
        "UpdateFileDataTests.swift"
      ],
      "target_dependencies" : [
        "GoogleDriveClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoogleDriveClient",
      "module_type" : "SwiftTarget",
      "name" : "GoogleDriveClient",
      "path" : "Sources/GoogleDriveClient",
      "product_memberships" : [
        "GoogleDriveClient"
      ],
      "sources" : [
        "About.swift",
        "Auth.swift",
        "Client.swift",
        "Coding.swift",
        "Config.swift",
        "CreateFile.swift",
        "Credentials.swift",
        "CurrentValueAsyncSequence.swift",
        "DateGenerator.swift",
        "DeleteFile.swift",
        "File.swift",
        "FilesList.swift",
        "GetAbout.swift",
        "GetFile.swift",
        "GetFileData.swift",
        "HTTPClient.swift",
        "Keychain.swift",
        "ListFiles.swift",
        "OpenURL.swift",
        "StorageQuota.swift",
        "UUIDGenerator.swift",
        "UpdateFileData.swift",
        "User.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.