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 Hover, reference master (6db375), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 01:30:09 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/onurhuseyincantay/Hover.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/onurhuseyincantay/Hover
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6db3753 Update README.md
Cloned https://github.com/onurhuseyincantay/Hover.git
Revision (git rev-parse @):
6db37532b96f111b5b081d33994328069f8f6e03
SUCCESS checkout https://github.com/onurhuseyincantay/Hover.git at master
========================================
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": "hover",
      "name": "Hover",
      "url": "https://github.com/onurhuseyincantay/Hover.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hover",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/onurhuseyincantay/Hover.git
[1/966] Fetching hover
Fetched https://github.com/onurhuseyincantay/Hover.git from cache (1.42s)
Creating working copy for https://github.com/onurhuseyincantay/Hover.git
Working copy of https://github.com/onurhuseyincantay/Hover.git resolved at master (6db3753)
warning: '.resolve-product-dependencies': dependency 'hover' 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/onurhuseyincantay/Hover.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/17] Compiling Hover NetworkTarget.swift
[4/17] Compiling Hover ProviderError.swift
[5/17] Compiling Hover URL+GenerateURLQuery.swift
[6/17] Compiling Hover URLRequest+prepareRequest.swift
[7/17] Compiling Hover HoverDebugger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |   // MARK: Public Variables
 17 |
 18 |   public static var prefference = Prefference()
    |                     |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'prefference' 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
 19 |
 20 |   public let environment: HoverEnvironment
[8/17] Compiling Hover Preferrence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |   // MARK: Public Variables
 17 |
 18 |   public static var prefference = Prefference()
    |                     |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'prefference' 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
 19 |
 20 |   public let environment: HoverEnvironment
[9/17] Compiling Hover MethodType.swift
[10/17] Compiling Hover AuthProviderType.swift
[11/17] Compiling Hover ContentType.swift
[12/17] Compiling Hover Response.swift
[13/17] Compiling Hover HoverProtocol.swift
[14/17] Compiling Hover HttpUrlResponse+IsSuccesful.swift
[15/17] Compiling Hover Hover.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |   // MARK: Public Variables
 17 |
 18 |   public static var prefference = Prefference()
    |                     |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'prefference' 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
 19 |
 20 |   public let environment: HoverEnvironment
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:230:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 |       guard error == nil else {
229 |         let error = ProviderError.connectionError(error!)
230 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
231 |         result(.failure(error))
232 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:231:9: warning: capture of 'result' with non-sendable type '(Result<D, ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         let error = ProviderError.connectionError(error!)
230 |         printDebugDescriptionIfNeeded(urlRequest, error)
231 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<D, ProviderError>) -> Void' 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'
232 |         return
233 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:275:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 |       guard error == nil else {
274 |         let error = ProviderError.connectionError(error!)
275 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
276 |         result(.failure(error))
277 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:276:9: warning: capture of 'result' with non-sendable type 'VoidResultCompletion' (aka '(Result<Response, ProviderError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |         let error = ProviderError.connectionError(error!)
275 |         printDebugDescriptionIfNeeded(urlRequest, error)
276 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type 'VoidResultCompletion' (aka '(Result<Response, ProviderError>) -> ()') 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'
277 |         return
278 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:316:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
314 |       guard error == nil else {
315 |         let error = ProviderError.underlying(error!)
316 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
317 |         result(.failure(error))
318 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:317:9: warning: capture of 'result' with non-sendable type '(Result<(HTTPURLResponse, Data?), ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
315 |         let error = ProviderError.underlying(error!)
316 |         printDebugDescriptionIfNeeded(urlRequest, error)
317 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<(HTTPURLResponse, Data?), ProviderError>) -> Void' 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'
318 |         return
319 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:350:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |       guard error == nil else {
349 |         let error = ProviderError.underlying(error!)
350 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
351 |         result(.failure(error))
352 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:351:9: warning: capture of 'result' with non-sendable type '(Result<HTTPURLResponse, ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 |         let error = ProviderError.underlying(error!)
350 |         printDebugDescriptionIfNeeded(urlRequest, error)
351 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<HTTPURLResponse, ProviderError>) -> Void' 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'
352 |         return
353 |       }
[16/17] Compiling Hover HoverEnvironment.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |   // MARK: Public Variables
 17 |
 18 |   public static var prefference = Prefference()
    |                     |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'prefference' 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
 19 |
 20 |   public let environment: HoverEnvironment
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:230:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 |       guard error == nil else {
229 |         let error = ProviderError.connectionError(error!)
230 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
231 |         result(.failure(error))
232 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:231:9: warning: capture of 'result' with non-sendable type '(Result<D, ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         let error = ProviderError.connectionError(error!)
230 |         printDebugDescriptionIfNeeded(urlRequest, error)
231 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<D, ProviderError>) -> Void' 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'
232 |         return
233 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:275:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 |       guard error == nil else {
274 |         let error = ProviderError.connectionError(error!)
275 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
276 |         result(.failure(error))
277 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:276:9: warning: capture of 'result' with non-sendable type 'VoidResultCompletion' (aka '(Result<Response, ProviderError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |         let error = ProviderError.connectionError(error!)
275 |         printDebugDescriptionIfNeeded(urlRequest, error)
276 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type 'VoidResultCompletion' (aka '(Result<Response, ProviderError>) -> ()') 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'
277 |         return
278 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:316:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
314 |       guard error == nil else {
315 |         let error = ProviderError.underlying(error!)
316 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
317 |         result(.failure(error))
318 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:317:9: warning: capture of 'result' with non-sendable type '(Result<(HTTPURLResponse, Data?), ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
315 |         let error = ProviderError.underlying(error!)
316 |         printDebugDescriptionIfNeeded(urlRequest, error)
317 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<(HTTPURLResponse, Data?), ProviderError>) -> Void' 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'
318 |         return
319 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:350:9: warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |       guard error == nil else {
349 |         let error = ProviderError.underlying(error!)
350 |         printDebugDescriptionIfNeeded(urlRequest, error)
    |         |- warning: capture of 'printDebugDescriptionIfNeeded' with non-sendable type '(URLRequest, (any Error)?) -> Void' 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'
351 |         result(.failure(error))
352 |         return
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:351:9: warning: capture of 'result' with non-sendable type '(Result<HTTPURLResponse, ProviderError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 |         let error = ProviderError.underlying(error!)
350 |         printDebugDescriptionIfNeeded(urlRequest, error)
351 |         result(.failure(error))
    |         |- warning: capture of 'result' with non-sendable type '(Result<HTTPURLResponse, ProviderError>) -> Void' 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'
352 |         return
353 |       }
[17/17] Emitting module Hover
/Users/admin/builder/spi-builder-workspace/Sources/Hover/Base/Hover.swift:18:21: warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |   // MARK: Public Variables
 17 |
 18 |   public static var prefference = Prefference()
    |                     |- warning: static property 'prefference' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'prefference' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'prefference' 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
 19 |
 20 |   public let environment: HoverEnvironment
[18/18] Compiling Hover WorkType.swift
Build complete! (13.72s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Hover/Info.plist': File not found.
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Hover",
  "name" : "Hover",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Hover",
      "targets" : [
        "Hover"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HoverTests",
      "module_type" : "SwiftTarget",
      "name" : "HoverTests",
      "path" : "Sources/HoverTests",
      "sources" : [
        "AsyncAwaitTests/AsyncAwaitTests.swift",
        "CompletionBlockTests/CompletionBlockFailingTests.swift",
        "CompletionBlockTests/CompletionBlockTests.swift",
        "DataTaskPublisherTests/DataTaskPublisherFailingTests.swift",
        "DataTaskPublisherTests/DataTaskPublisherTests.swift",
        "ResponseTests.swift",
        "Test Source/CommentSubscriber.swift",
        "Test Source/Response/CommentsResponse.swift",
        "Test Source/Response/PostsResponse.swift",
        "Test Source/TestClass.swift",
        "Test Source/TestTarget.swift"
      ],
      "target_dependencies" : [
        "Hover"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hover",
      "module_type" : "SwiftTarget",
      "name" : "Hover",
      "path" : "Sources/Hover",
      "product_memberships" : [
        "Hover"
      ],
      "sources" : [
        "Base/Hover.swift",
        "Base/HoverEnvironment.swift",
        "Base/HoverProtocol.swift",
        "Extensions/HttpUrlResponse+IsSuccesful.swift",
        "Extensions/URL+GenerateURLQuery.swift",
        "Extensions/URLRequest+prepareRequest.swift",
        "Helpers/HoverDebugger.swift",
        "Helpers/Preferrence.swift",
        "NetworkTarget.swift",
        "ProviderError.swift",
        "Response.swift",
        "Types/AuthProviderType.swift",
        "Types/ContentType.swift",
        "Types/MethodType.swift",
        "Types/WorkType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Hover/Info.plist': File not found.
Done.