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

Swift 6 data race errors: 1

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/meilisearch/meilisearch-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/meilisearch/meilisearch-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 26f30d1 Update version for the next release (v0.16.0) (#440)
Cloned https://github.com/meilisearch/meilisearch-swift.git
Revision (git rev-parse @):
26f30d108132e1301adb31e119b0a9cfbe17d73e
SUCCESS checkout https://github.com/meilisearch/meilisearch-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/meilisearch/meilisearch-swift.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/48] Emitting module MeiliSearch
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[4/52] Compiling MeiliSearch WaitOptions.swift
[5/52] Compiling MeiliSearch CancelTasksQuery.swift
[6/52] Compiling MeiliSearch DeleteTasksQuery.swift
[7/52] Compiling MeiliSearch DocumentsQuery.swift
[8/52] Compiling MeiliSearch IndexesQuery.swift
[9/52] Compiling MeiliSearch TaskType.swift
[10/52] Compiling MeiliSearch TasksResults.swift
[11/52] Compiling MeiliSearch TypoTolerance.swift
[12/52] Compiling MeiliSearch TypoToleranceResult.swift
[13/52] Compiling MeiliSearch Version.swift
[14/52] Compiling MeiliSearch Keys.swift
[15/52] Compiling MeiliSearch DocumentsResults.swift
[16/52] Compiling MeiliSearch FacetStats.swift
[17/52] Compiling MeiliSearch Health.swift
[18/52] Compiling MeiliSearch Index.swift
[19/52] Compiling MeiliSearch IndexesResults.swift
[20/52] Compiling MeiliSearch Key.swift
[21/52] Compiling MeiliSearch KeyParams.swift
[22/52] Compiling MeiliSearch KeysResults.swift
[23/52] Compiling MeiliSearch PackageVersion.swift
[24/52] Compiling MeiliSearch Settings.swift
[25/52] Compiling MeiliSearch Stats.swift
[26/52] Compiling MeiliSearch System.swift
[27/52] Compiling MeiliSearch Tasks.swift
[28/52] Compiling MeiliSearch Documents.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[29/52] Compiling MeiliSearch Dumps.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[30/52] Compiling MeiliSearch Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[31/52] Compiling MeiliSearch Formatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[32/52] Compiling MeiliSearch Indexes.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
[33/52] Compiling MeiliSearch KeysQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Request.swift:212:53: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |     `- note: parameter 'completionHandler' is implicitly non-sendable
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
    |                                                     `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
213 |   }
214 | }
[34/52] Compiling MeiliSearch Queryable.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Request.swift:212:53: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |     `- note: parameter 'completionHandler' is implicitly non-sendable
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
    |                                                     `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
213 |   }
214 | }
[35/52] Compiling MeiliSearch TasksQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Request.swift:212:53: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |     `- note: parameter 'completionHandler' is implicitly non-sendable
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
    |                                                     `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
213 |   }
214 | }
[36/52] Compiling MeiliSearch Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Request.swift:212:53: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |     `- note: parameter 'completionHandler' is implicitly non-sendable
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
    |                                                     `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
213 |   }
214 | }
[37/52] Compiling MeiliSearch Search.swift
/Users/admin/builder/spi-builder-workspace/Sources/MeiliSearch/Request.swift:212:53: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |     `- note: parameter 'completionHandler' is implicitly non-sendable
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
    |                                                     `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
213 |   }
214 | }
[38/52] Compiling MeiliSearch Pagination.swift
[39/52] Compiling MeiliSearch SearchParameters.swift
[40/52] Compiling MeiliSearch SearchResult.swift
[41/52] Compiling MeiliSearch Setting.swift
[42/52] Compiling MeiliSearch SettingResult.swift
[43/52] Compiling MeiliSearch Stat.swift
[44/52] Compiling MeiliSearch Task.swift
[45/52] Compiling MeiliSearch TaskDetails.swift
[46/52] Compiling MeiliSearch TaskInfo.swift
[47/52] Compiling MeiliSearch TaskStatus.swift
[48/52] Compiling MeiliSearch Client+async.swift
[49/52] Compiling MeiliSearch Indexes+async.swift
[50/52] Compiling MeiliSearch Client.swift
[51/52] Compiling MeiliSearch Config.swift
[52/52] Compiling MeiliSearch Constants.swift
Build complete! (24.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "meilisearch-swift",
  "name" : "meilisearch-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MeiliSearch",
      "targets" : [
        "MeiliSearch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MeiliSearchUnitTests",
      "module_type" : "SwiftTarget",
      "name" : "MeiliSearchUnitTests",
      "path" : "Tests/MeiliSearchUnitTests",
      "sources" : [
        "ClientTests.swift",
        "DocumentsTests.swift",
        "DumpsTests.swift",
        "FormatterTests.swift",
        "IndexesTests.swift",
        "KeyParamsTests.swift",
        "KeysTests.swift",
        "MockURLSession.swift",
        "PackageVersionTests.swift",
        "QueryParameters/DocumentsQueryTests.swift",
        "QueryParameters/IndexesQueryTests.swift",
        "QueryParameters/KeysQueryTests.swift",
        "QueryParameters/TasksQueryTests.swift",
        "SearchTests.swift",
        "SettingsTests.swift",
        "StatsTests.swift",
        "SystemTests.swift",
        "TasksTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "MeiliSearch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MeiliSearchIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "MeiliSearchIntegrationTests",
      "path" : "Tests/MeiliSearchIntegrationTests",
      "sources" : [
        "DocumentsTests.swift",
        "DumpsTests.swift",
        "IndexesTests.swift",
        "KeysTests.swift",
        "SearchTests.swift",
        "SettingsTests.swift",
        "Support/Book.swift",
        "Support/Movie.swift",
        "Support/NestedBook.swift",
        "TaskTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "MeiliSearch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MeiliSearch",
      "module_type" : "SwiftTarget",
      "name" : "MeiliSearch",
      "path" : "Sources/MeiliSearch",
      "product_memberships" : [
        "MeiliSearch"
      ],
      "sources" : [
        "Async/Client+async.swift",
        "Async/Indexes+async.swift",
        "Client.swift",
        "Config.swift",
        "Constants.swift",
        "Documents.swift",
        "Dumps.swift",
        "Error.swift",
        "Formatter.swift",
        "Indexes.swift",
        "Keys.swift",
        "Model/DocumentsResults.swift",
        "Model/FacetStats.swift",
        "Model/Health.swift",
        "Model/Index.swift",
        "Model/IndexesResults.swift",
        "Model/Key.swift",
        "Model/KeyParams.swift",
        "Model/KeysResults.swift",
        "Model/PackageVersion.swift",
        "Model/Pagination.swift",
        "Model/SearchParameters.swift",
        "Model/SearchResult.swift",
        "Model/Setting.swift",
        "Model/SettingResult.swift",
        "Model/Stat.swift",
        "Model/Task/Task.swift",
        "Model/Task/TaskDetails.swift",
        "Model/Task/TaskInfo.swift",
        "Model/Task/TaskStatus.swift",
        "Model/Task/TaskType.swift",
        "Model/Task/TasksResults.swift",
        "Model/TypoTolerance.swift",
        "Model/TypoToleranceResult.swift",
        "Model/Version.swift",
        "Model/WaitOptions.swift",
        "QueryParameters/CancelTasksQuery.swift",
        "QueryParameters/DeleteTasksQuery.swift",
        "QueryParameters/DocumentsQuery.swift",
        "QueryParameters/IndexesQuery.swift",
        "QueryParameters/KeysQuery.swift",
        "QueryParameters/Queryable.swift",
        "QueryParameters/TasksQuery.swift",
        "Request.swift",
        "Search.swift",
        "Settings.swift",
        "Stats.swift",
        "System.swift",
        "Tasks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.