Build Information
Successful build of meilisearch-swift with Swift 6.0 for Linux.
Swift 6 data race errors: 4
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/meilisearch/meilisearch-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/46] Emitting module MeiliSearch
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
/host/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 Error.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[5/52] Compiling MeiliSearch Formatter.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[6/52] Compiling MeiliSearch Indexes.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[7/52] Compiling MeiliSearch Keys.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[8/52] Compiling MeiliSearch DocumentsResults.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[9/52] Compiling MeiliSearch FacetStats.swift
/host/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.
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[10/52] Compiling MeiliSearch DeleteTasksQuery.swift
[11/52] Compiling MeiliSearch DocumentsQuery.swift
[12/52] Compiling MeiliSearch IndexesQuery.swift
[13/52] Compiling MeiliSearch KeysQuery.swift
[14/52] Compiling MeiliSearch Queryable.swift
[15/52] Compiling MeiliSearch TasksQuery.swift
[16/52] Compiling MeiliSearch Stat.swift
[17/52] Compiling MeiliSearch Task.swift
[18/52] Compiling MeiliSearch TaskDetails.swift
[19/52] Compiling MeiliSearch TaskInfo.swift
[20/52] Compiling MeiliSearch TaskStatus.swift
[21/52] Compiling MeiliSearch TaskType.swift
[22/52] Compiling MeiliSearch Client+async.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[23/52] Compiling MeiliSearch Indexes+async.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[24/52] Compiling MeiliSearch Client.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[25/52] Compiling MeiliSearch Config.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[26/52] Compiling MeiliSearch Constants.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[27/52] Compiling MeiliSearch Documents.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[28/52] Compiling MeiliSearch Dumps.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:7:14: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/MeiliSearch/Formatter.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | extension Formatter {
7 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
8 | let formatter = DateFormatter()
9 | formatter.calendar = Calendar(identifier: .iso8601)
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:13:14: warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
11 | }()
12 |
13 | static let customJSONEecoder: JSONEncoder = {
| |- warning: static property 'customJSONEecoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'customJSONEecoder' 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
14 | let encoder = JSONEncoder()
15 | encoder.dateEncodingStrategy = JSONEncoder.DateEncodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
[29/52] Compiling MeiliSearch PackageVersion.swift
[30/52] Compiling MeiliSearch Pagination.swift
[31/52] Compiling MeiliSearch SearchParameters.swift
[32/52] Compiling MeiliSearch SearchResult.swift
[33/52] Compiling MeiliSearch Setting.swift
[34/52] Compiling MeiliSearch SettingResult.swift
[35/52] Compiling MeiliSearch Health.swift
[36/52] Compiling MeiliSearch Index.swift
[37/52] Compiling MeiliSearch IndexesResults.swift
[38/52] Compiling MeiliSearch Key.swift
[39/52] Compiling MeiliSearch KeyParams.swift
[40/52] Compiling MeiliSearch KeysResults.swift
[41/52] Compiling MeiliSearch TasksResults.swift
[42/52] Compiling MeiliSearch TypoTolerance.swift
[43/52] Compiling MeiliSearch TypoToleranceResult.swift
[44/52] Compiling MeiliSearch Version.swift
[45/52] Compiling MeiliSearch WaitOptions.swift
[46/52] Compiling MeiliSearch CancelTasksQuery.swift
[47/52] Compiling MeiliSearch Request.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
[48/52] Compiling MeiliSearch Search.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
[49/52] Compiling MeiliSearch Settings.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
[50/52] Compiling MeiliSearch Stats.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
[51/52] Compiling MeiliSearch System.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
[52/52] Compiling MeiliSearch Tasks.swift
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:7:14: warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| `- warning: static property 'customJSONDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
/host/spi-builder-workspace/Sources/MeiliSearch/Constants.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | #if canImport(FoundationNetworking)
3 | import FoundationNetworking
:
5 |
6 | struct Constants {
7 | static let customJSONDecoder: JSONDecoder = {
| |- note: annotate 'customJSONDecoder' 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
8 | let decoder = JSONDecoder()
9 | decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.formatted(Formatter.iso8601)
Build complete! (11.94s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "meilisearch-swift",
"name" : "meilisearch-swift",
"path" : "/host/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.