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

Swift 6 data race errors: 4

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/darrarski/swift-dropbox-client.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/darrarski/swift-dropbox-client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7871de Merge pull request #10 from darrarski/fix/metadata-model
Cloned https://github.com/darrarski/swift-dropbox-client.git
Revision (git rev-parse @):
b7871defa289f636baedc61b4b45af9c13888ea4
SUCCESS checkout https://github.com/darrarski/swift-dropbox-client.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/darrarski/swift-dropbox-client.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/21] Compiling DropboxClient ListFolder.swift
[4/21] Compiling DropboxClient Metadata.swift
[5/22] Compiling DropboxClient CurrentValueAsyncSequence.swift
[6/22] Compiling DropboxClient DateGenerator.swift
[7/22] Compiling DropboxClient Config.swift
[8/22] Compiling DropboxClient Credentials.swift
[9/22] Emitting module DropboxClient
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81: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
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             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
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
_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 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:82:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 80 |           return AsyncStream {
 81 |             if iterator == nil {
 82 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |             }
 84 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:84:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
 84 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |           }
 86 |         }()
[10/22] Compiling DropboxClient DeleteFile.swift
[11/22] Compiling DropboxClient DownloadFile.swift
[12/22] Compiling DropboxClient ActorIsolated.swift
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81: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
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             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
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
_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 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:82:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 80 |           return AsyncStream {
 81 |             if iterator == nil {
 82 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |             }
 84 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:84:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
 84 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |           }
 86 |         }()
[13/22] Compiling DropboxClient Auth.swift
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81: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
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             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
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
_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 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:81:16: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 79 |           var iterator: AsyncStream<Bool>.Iterator?
 80 |           return AsyncStream {
 81 |             if iterator == nil {
    |                `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:82:15: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 80 |           return AsyncStream {
 81 |             if iterator == nil {
 82 |               iterator = isSignedIn.makeAsyncIterator()
    |               `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 83 |             }
 84 |             return await iterator?.next()
/Users/admin/builder/spi-builder-workspace/Sources/DropboxClient/Auth.swift:84:26: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 82 |               iterator = isSignedIn.makeAsyncIterator()
 83 |             }
 84 |             return await iterator?.next()
    |                          `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
 85 |           }
 86 |         }()
[14/22] Compiling DropboxClient UploadFile.swift
[15/22] Compiling DropboxClient FileMetadata.swift
[16/22] Compiling DropboxClient GetMetadata.swift
[17/22] Compiling DropboxClient OpenURL.swift
[18/22] Compiling DropboxClient PKCEUtils.swift
[19/22] Compiling DropboxClient Client.swift
[20/22] Compiling DropboxClient Coding.swift
[21/22] Compiling DropboxClient HTTPClient.swift
[22/22] Compiling DropboxClient Keychain.swift
Build complete! (36.54s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-dropbox-client",
  "name" : "swift-dropbox-client",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "DropboxClient",
      "targets" : [
        "DropboxClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DropboxClientTests",
      "module_type" : "SwiftTarget",
      "name" : "DropboxClientTests",
      "path" : "Tests/DropboxClientTests",
      "sources" : [
        "AuthTests.swift",
        "DeleteFileTests.swift",
        "DownloadFileTests.swift",
        "GetMetadataTests.swift",
        "ListFolderTests.swift",
        "TestHelpers.swift",
        "UploadFileTests.swift"
      ],
      "target_dependencies" : [
        "DropboxClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DropboxClient",
      "module_type" : "SwiftTarget",
      "name" : "DropboxClient",
      "path" : "Sources/DropboxClient",
      "product_memberships" : [
        "DropboxClient"
      ],
      "sources" : [
        "ActorIsolated.swift",
        "Auth.swift",
        "Client.swift",
        "Coding.swift",
        "Config.swift",
        "Credentials.swift",
        "CurrentValueAsyncSequence.swift",
        "DateGenerator.swift",
        "DeleteFile.swift",
        "DownloadFile.swift",
        "FileMetadata.swift",
        "GetMetadata.swift",
        "HTTPClient.swift",
        "Keychain.swift",
        "ListFolder.swift",
        "Metadata.swift",
        "OpenURL.swift",
        "PKCEUtils.swift",
        "UploadFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.