Build Information
Successful build of UBJSONSerialization, reference 2.0.4 (3da015
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 19:57:08 UTC.
Swift 6 data race errors: 18
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frizlab/ubjsonserialization.git
Reference: 2.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/frizlab/ubjsonserialization
* tag 2.0.4 -> FETCH_HEAD
HEAD is now at 3da0153 Fix writing to OutputStream
Cloned https://github.com/frizlab/ubjsonserialization.git
Revision (git rev-parse @):
3da0153f9f9e3eaa05e1efa2e087d6eba64c92b0
SUCCESS checkout https://github.com/frizlab/ubjsonserialization.git at 2.0.4
Fetching https://github.com/Frizlab/stream-reader.git
Fetching https://github.com/apple/swift-system.git from cache
[1/1051] Fetching stream-reader
Fetched https://github.com/apple/swift-system.git from cache (0.55s)
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.74s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.2.3 (1.32s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.0.0 (0.57s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.0.0
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.2.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "ubjsonserialization",
"name": "UBJSONSerialization",
"url": "https://github.com/frizlab/ubjsonserialization.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ubjsonserialization",
"dependencies": [
{
"identity": "stream-reader",
"name": "stream-reader",
"url": "https://github.com/Frizlab/stream-reader.git",
"version": "3.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stream-reader",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/frizlab/ubjsonserialization.git
[1/351] Fetching ubjsonserialization
Fetched https://github.com/frizlab/ubjsonserialization.git from cache (0.71s)
Fetching https://github.com/Frizlab/stream-reader.git from cache
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.44s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.6.1 (0.92s)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.6.1
Creating working copy for https://github.com/frizlab/ubjsonserialization.git
Working copy of https://github.com/frizlab/ubjsonserialization.git resolved at 2.0.4 (3da0153)
warning: '.resolve-product-dependencies': dependency 'ubjsonserialization' is not used by any target
Found 1 product dependencies
- stream-reader
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/frizlab/ubjsonserialization.git
https://github.com/frizlab/ubjsonserialization.git
{
"dependencies" : [
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/stream-reader.git"
}
],
"manifest_display_name" : "UBJSONSerialization",
"name" : "UBJSONSerialization",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "UBJSONSerialization",
"targets" : [
"UBJSONSerialization"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UBJSONSerializationTests",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerializationTests",
"path" : "Tests/UBJSONSerializationTests",
"sources" : [
"HighPrecisionNumberTests.swift",
"TestHelpers.swift",
"UBJSONSerializationTests.swift",
"UBJSONSpec8SerializationTests.swift"
],
"target_dependencies" : [
"UBJSONSerialization"
],
"type" : "test"
},
{
"c99name" : "UBJSONSerialization",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerialization",
"path" : "Sources/UBJSONSerialization",
"product_dependencies" : [
"StreamReader"
],
"product_memberships" : [
"UBJSONSerialization"
],
"sources" : [
"HighPrecisionNumber.swift",
"Nop.swift",
"UBJSONSerialization.swift",
"UBJSONSerializationErrors.swift",
"UBJSONSpec8Serialization.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/26] Emitting module SystemPackage
[7/28] Compiling SystemPackage Util.swift
[8/28] Compiling SystemPackage UtilConsumers.swift
[9/28] Compiling SystemPackage Errno.swift
[10/28] Compiling SystemPackage FileDescriptor.swift
[11/28] Compiling SystemPackage FileHelpers.swift
[12/28] Compiling SystemPackage FileOperations.swift
[13/28] Compiling SystemPackage FilePath.swift
[14/28] Compiling SystemPackage FilePathComponentView.swift
[15/28] Compiling SystemPackage Syscalls.swift
[16/28] Compiling SystemPackage WindowsSyscallAdapters.swift
[17/28] Compiling SystemPackage FilePathString.swift
[18/28] Compiling SystemPackage FilePathSyntax.swift
[19/28] Compiling SystemPackage CInterop.swift
[20/28] Compiling SystemPackage Constants.swift
[21/28] Compiling SystemPackage PlatformString.swift
[22/28] Compiling SystemPackage SystemString.swift
[23/28] Compiling SystemPackage FilePathWindows.swift
[24/28] Compiling SystemPackage FilePermissions.swift
[25/28] Compiling SystemPackage FilePathComponents.swift
[26/28] Compiling SystemPackage FilePathParsing.swift
[27/28] Compiling SystemPackage Exports.swift
[28/28] Compiling SystemPackage Mocking.swift
[29/37] Compiling StreamReader DataReader.swift
[30/37] Compiling StreamReader StreamReaderError.swift
[31/37] Compiling StreamReader Utils.swift
[32/37] Compiling StreamReader GenericStreamReader.swift
[33/37] Emitting module StreamReader
[34/37] Compiling StreamReader FileHandleReader.swift
[35/37] Compiling StreamReader StreamReader.swift
[36/37] Compiling StreamReader FileDescriptorReader.swift
[37/37] Compiling StreamReader InputStreamReader.swift
[38/44] Compiling UBJSONSerialization Utils.swift
[39/44] Compiling UBJSONSerialization UBJSONSpec8Serialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepIntPrecision' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allowHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'returnNopElements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
56 | `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
57 | (`No-Op` is invalid in a dictionary whose size is known). */
58 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
71 | Normalize the representation of high precisions numbers before serialization.
72 | See the doc of HighPrecisionNumber for more information about normalization. */
73 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'normalizeHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |
75 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
78 | - Note: This option is always on for `Int` objects.
79 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
80 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'optimizeIntsForSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
86 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
87 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
88 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 |
90 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
91 | Declare the containers to have an unknown size in the serialized data.
92 | Mostly useful if we want to implement proper streaming support later. */
93 | public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'declareContainerWithUnknownSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 |
95 | public init(rawValue v: Int) {
[40/44] Compiling UBJSONSerialization HighPrecisionNumber.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
89 | }
90 |
91 | mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
92 | engine = Parser.waitStart
93 |
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:109:28: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |
108 | var parser = Parser(parsedString: String(stringValue[startIndex...]), allowLeadingZeroOrPlus: allowLeadingZeroOrPlus)
109 | let parseOffset: String.IndexDistance; (hasNegativeSign, unsignedIntPart, parseOffset) = parser.parse()
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
110 | startIndex = stringValue.index(startIndex, offsetBy: parseOffset)
111 |
[41/44] Compiling UBJSONSerialization Nop.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
| `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | public static let sharedNop = Nop()
| |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedNop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public static func ==(lhs: Nop, rhs: Nop) -> Bool {return true}
[42/44] Compiling UBJSONSerialization UBJSONSerializationErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | An invalid UBJSON object was given to be serialized.
48 | The invalid element is passed in argument to this error. */
49 | case invalidUBJSONObject(invalidElement: Any)
| `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | /* Spec 8 error */
[43/44] Emitting module UBJSONSerialization
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
89 | }
90 |
91 | mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
92 | engine = Parser.waitStart
93 |
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
| `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | public static let sharedNop = Nop()
| |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedNop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public static func ==(lhs: Nop, rhs: Nop) -> Bool {return true}
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepIntPrecision' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allowHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'returnNopElements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
55 | - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
56 | (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
57 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
70 | Normalize the representation of high precisions numbers before serialization.
71 | See ``HighPrecisionNumber`` for more information about normalization. */
72 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'normalizeHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
77 | - Note: This option is always on for `Int` objects.
78 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
79 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'optimizeIntsForSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 |
81 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
85 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
86 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
87 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |
89 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
96 | (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
97 | I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
98 | public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enableContainerOptimization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 |
100 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | An invalid UBJSON object was given to be serialized.
48 | The invalid element is passed in argument to this error. */
49 | case invalidUBJSONObject(invalidElement: Any)
| `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | /* Spec 8 error */
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepIntPrecision' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allowHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'returnNopElements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
56 | `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
57 | (`No-Op` is invalid in a dictionary whose size is known). */
58 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
71 | Normalize the representation of high precisions numbers before serialization.
72 | See the doc of HighPrecisionNumber for more information about normalization. */
73 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'normalizeHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |
75 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
78 | - Note: This option is always on for `Int` objects.
79 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
80 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'optimizeIntsForSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
86 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
87 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
88 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 |
90 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
91 | Declare the containers to have an unknown size in the serialized data.
92 | Mostly useful if we want to implement proper streaming support later. */
93 | public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'declareContainerWithUnknownSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 |
95 | public init(rawValue v: Int) {
[44/44] Compiling UBJSONSerialization UBJSONSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepIntPrecision' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allowHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'returnNopElements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
55 | - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
56 | (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
57 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'keepNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
70 | Normalize the representation of high precisions numbers before serialization.
71 | See ``HighPrecisionNumber`` for more information about normalization. */
72 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'normalizeHighPrecisionNumbers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
77 | - Note: This option is always on for `Int` objects.
78 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
79 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'optimizeIntsForSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 |
81 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
85 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
86 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
87 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipNopElementsInArrays' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |
89 | /**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
96 | (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
97 | I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
98 | public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'enableContainerOptimization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 |
100 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:877:10: warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
875 | case _ as Nop: return nil
876 |
877 | case nil: newType = .null
| `- warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
878 | case let b as Bool where b: newType = .`true`
879 | case let b as Bool where !b: newType = .`false`
Build complete! (8.34s)
Build complete.
{
"dependencies" : [
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/stream-reader.git"
}
],
"manifest_display_name" : "UBJSONSerialization",
"name" : "UBJSONSerialization",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "UBJSONSerialization",
"targets" : [
"UBJSONSerialization"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UBJSONSerializationTests",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerializationTests",
"path" : "Tests/UBJSONSerializationTests",
"sources" : [
"HighPrecisionNumberTests.swift",
"TestHelpers.swift",
"UBJSONSerializationTests.swift",
"UBJSONSpec8SerializationTests.swift"
],
"target_dependencies" : [
"UBJSONSerialization"
],
"type" : "test"
},
{
"c99name" : "UBJSONSerialization",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerialization",
"path" : "Sources/UBJSONSerialization",
"product_dependencies" : [
"StreamReader"
],
"product_memberships" : [
"UBJSONSerialization"
],
"sources" : [
"HighPrecisionNumber.swift",
"Nop.swift",
"UBJSONSerialization.swift",
"UBJSONSerializationErrors.swift",
"UBJSONSpec8Serialization.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.