Build Information
Successful build of ContentstackSwift, reference v2.3.3-beta.1 (3daa60), with Swift 6.1 for macOS (SPM) on 5 Feb 2026 00:02:51 UTC.
Swift 6 data race errors: 27
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 InferSendableFromCapturesBuild Log
152 | ///
:
161 |
162 | /// To include count in the response.
163 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:165:27: warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
163 | public static let count: Include = Include(rawValue: 1 << 0)
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:168:27: warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dimension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:170:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:172:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:174:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 | .relativeURL,
176 | .dimension,
/Users/admin/builder/spi-builder-workspace/Sources/QueryProtocols.swift:11:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// A base Query protocol which holds the essentials shared by all query types in the SDK which enable
10 | /// querying against content types, entries and assets.
11 | public protocol QueryProtocol: class, CachePolicyAccessible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | associatedtype ResourceType
13 | /// The Stack instance to perform operation,
[50/79] Compiling ContentstackSwift QueryParameter.swift
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:115:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
113 | switch self {
114 | case .equals(let value):
115 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
116 | return value
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:120:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
118 | return value.stringValue
119 | case .notEquals(let value):
120 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
121 | return value
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:127:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
125 | case .excludes(let value): return value
126 | case .isLessThan(let value):
127 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
128 | return value
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:132:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
130 | return value.stringValue
131 | case .isLessThanOrEqual(let value):
132 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
133 | return value
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:137:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
135 | return value.stringValue
136 | case .isGreaterThan(let value):
137 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
138 | return value
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:142:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
140 | return value.stringValue
141 | case .isGreaterThanOrEqual(let value):
142 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
143 | return value
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:94:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
92 |
93 | /// To include `count` in the response.
94 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:96:27: warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
94 | public static let count: Include = Include(rawValue: 1 << 0)
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unpublished' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:98:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:100:27: warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalField' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:102:27: warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'refContentTypeUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:104:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:106:27: warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
| |- warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'embeddedItems' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:109:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
109 | public static let metadata: Include = Include(rawValue: 1 << 7)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | /// To inclide all `Query.Include` values.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:112:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
110 |
111 | /// To inclide all `Query.Include` values.
112 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | .unpublished,
114 | .contentType,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:138:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
136 |
137 | /// To include count in the response.
138 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:140:27: warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
138 | public static let count: Include = Include(rawValue: 1 << 0)
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalFields' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:142:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | .globalFields]
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:163:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
161 |
162 | /// To include count in the response.
163 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:165:27: warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
163 | public static let count: Include = Include(rawValue: 1 << 0)
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:168:27: warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dimension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:170:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:172:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:174:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 | .relativeURL,
176 | .dimension,
/Users/admin/builder/spi-builder-workspace/Sources/QueryProtocols.swift:11:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// A base Query protocol which holds the essentials shared by all query types in the SDK which enable
10 | /// querying against content types, entries and assets.
11 | public protocol QueryProtocol: class, CachePolicyAccessible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | associatedtype ResourceType
13 | /// The Stack instance to perform operation,
[51/79] Compiling ContentstackSwift QueryProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:115:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
113 | switch self {
114 | case .equals(let value):
115 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
116 | return value
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:120:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
118 | return value.stringValue
119 | case .notEquals(let value):
120 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
121 | return value
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:127:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
125 | case .excludes(let value): return value
126 | case .isLessThan(let value):
127 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
128 | return value
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:132:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
130 | return value.stringValue
131 | case .isLessThanOrEqual(let value):
132 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
133 | return value
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:137:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
135 | return value.stringValue
136 | case .isGreaterThan(let value):
137 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
138 | return value
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryOperation.swift:142:42: warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
140 | return value.stringValue
141 | case .isGreaterThanOrEqual(let value):
142 | if value is Int || value is Float || value is Double || value is Bool {
| `- warning: cast from 'any QueryableRange' to unrelated type 'Float' always fails
143 | return value
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:94:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
92 |
93 | /// To include `count` in the response.
94 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:96:27: warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
94 | public static let count: Include = Include(rawValue: 1 << 0)
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unpublished' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:98:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:100:27: warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalField' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:102:27: warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'refContentTypeUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:104:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:106:27: warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
| |- warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'embeddedItems' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:109:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
109 | public static let metadata: Include = Include(rawValue: 1 << 7)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | /// To inclide all `Query.Include` values.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:112:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
110 |
111 | /// To inclide all `Query.Include` values.
112 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | .unpublished,
114 | .contentType,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:138:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
136 |
137 | /// To include count in the response.
138 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:140:27: warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
138 | public static let count: Include = Include(rawValue: 1 << 0)
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalFields' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:142:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | .globalFields]
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:163:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
161 |
162 | /// To include count in the response.
163 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:165:27: warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
163 | public static let count: Include = Include(rawValue: 1 << 0)
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:168:27: warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dimension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:170:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:172:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:174:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 | .relativeURL,
176 | .dimension,
/Users/admin/builder/spi-builder-workspace/Sources/QueryProtocols.swift:11:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// A base Query protocol which holds the essentials shared by all query types in the SDK which enable
10 | /// querying against content types, entries and assets.
11 | public protocol QueryProtocol: class, CachePolicyAccessible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | associatedtype ResourceType
13 | /// The Stack instance to perform operation,
[52/79] Compiling ContentstackSwift EntryModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:65:14: warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
63 |
64 | /// Information regarding an error received from Contentstack's API.
65 | public class APIError: Decodable, Error, CustomDebugStringConvertible {
| `- warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 | public var debugDescription: String {
67 | let statusCodeString = "HTTP status code " + String(statusCode)
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:88:16: warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
86 |
87 | /// More detailed error Information.
88 | public let errorInfo: ErrorInfo!
| `- warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
:
106 |
107 | /// A description about detailed error information
108 | public class ErrorInfo: Decodable, CustomDebugStringConvertible {
| `- note: class 'ErrorInfo' does not conform to the 'Sendable' protocol
109 | public var debugDescription: String {
110 | var debugDescription = ""
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:91:16: warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
91 | public var statusCode: Int!
| `- warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
92 |
93 | /// Decodable Initializer for APIError.
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:18:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | internal struct FatalError {
17 | // 1
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:20:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // 3
22 | internal static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
[53/79] Compiling ContentstackSwift EntryQuaryable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:65:14: warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
63 |
64 | /// Information regarding an error received from Contentstack's API.
65 | public class APIError: Decodable, Error, CustomDebugStringConvertible {
| `- warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 | public var debugDescription: String {
67 | let statusCodeString = "HTTP status code " + String(statusCode)
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:88:16: warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
86 |
87 | /// More detailed error Information.
88 | public let errorInfo: ErrorInfo!
| `- warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
:
106 |
107 | /// A description about detailed error information
108 | public class ErrorInfo: Decodable, CustomDebugStringConvertible {
| `- note: class 'ErrorInfo' does not conform to the 'Sendable' protocol
109 | public var debugDescription: String {
110 | var debugDescription = ""
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:91:16: warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
91 | public var statusCode: Int!
| `- warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
92 |
93 | /// Decodable Initializer for APIError.
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:18:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | internal struct FatalError {
17 | // 1
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:20:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // 3
22 | internal static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
[54/79] Compiling ContentstackSwift Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:65:14: warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
63 |
64 | /// Information regarding an error received from Contentstack's API.
65 | public class APIError: Decodable, Error, CustomDebugStringConvertible {
| `- warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 | public var debugDescription: String {
67 | let statusCodeString = "HTTP status code " + String(statusCode)
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:88:16: warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
86 |
87 | /// More detailed error Information.
88 | public let errorInfo: ErrorInfo!
| `- warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
:
106 |
107 | /// A description about detailed error information
108 | public class ErrorInfo: Decodable, CustomDebugStringConvertible {
| `- note: class 'ErrorInfo' does not conform to the 'Sendable' protocol
109 | public var debugDescription: String {
110 | var debugDescription = ""
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:91:16: warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
91 | public var statusCode: Int!
| `- warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
92 |
93 | /// Decodable Initializer for APIError.
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:18:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | internal struct FatalError {
17 | // 1
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:20:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // 3
22 | internal static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
[55/79] Compiling ContentstackSwift FatalError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:65:14: warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
63 |
64 | /// Information regarding an error received from Contentstack's API.
65 | public class APIError: Decodable, Error, CustomDebugStringConvertible {
| `- warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 | public var debugDescription: String {
67 | let statusCodeString = "HTTP status code " + String(statusCode)
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:88:16: warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
86 |
87 | /// More detailed error Information.
88 | public let errorInfo: ErrorInfo!
| `- warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
:
106 |
107 | /// A description about detailed error information
108 | public class ErrorInfo: Decodable, CustomDebugStringConvertible {
| `- note: class 'ErrorInfo' does not conform to the 'Sendable' protocol
109 | public var debugDescription: String {
110 | var debugDescription = ""
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:91:16: warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
91 | public var statusCode: Int!
| `- warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
92 |
93 | /// Decodable Initializer for APIError.
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:18:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | internal struct FatalError {
17 | // 1
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:20:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // 3
22 | internal static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
[56/79] Compiling ContentstackSwift QueryableRange.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:220:28: warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
218 | if let response = response as? HTTPURLResponse {
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
| `- warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
/Users/admin/builder/spi-builder-workspace/Sources/CSDefinitions.swift:49:13: note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
47 | }
48 | /// The cache policies allow you to define the source from where the SDK will retrieve the content.
49 | public enum CachePolicy {
| `- note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
50 | ///The SDK retrieves data through a network call, and saves the retrieved data in the cache.
51 | ///This is set as the default policy.
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:29: warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
16 |
17 | /// Stack is instance for performing Contentstack Delivery API request.
18 | public class Stack: CachePolicyAccessible {
| `- note: class 'Stack' does not conform to the 'Sendable' protocol
19 | internal var urlSession: URLSession
20 |
:
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:74: warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| |- warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:62: warning: reference to captured var 'request' in concurrently-executing code
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:59: warning: reference to captured var 'request' in concurrently-executing code
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:240:30: warning: reference to captured var 'request' in concurrently-executing code
238 | CachedURLResponse(response: response,
239 | data: data),
240 | for: request
| `- warning: reference to captured var 'request' in concurrently-executing code
241 | )
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:249:54: warning: reference to captured var 'request' in concurrently-executing code
247 | if let error = error {
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
250 | self.fullfillRequestWithCache(request, then: completion)
251 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:250:51: warning: reference to captured var 'request' in concurrently-executing code
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
250 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/SyncStack.swift:131:23: warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | extension SyncStack: EndpointAccessible {
131 | public static var endpoint: Endpoint = .sync
| |- warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'endpoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SystemFields.swift:11:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | /// Sysyem Fields are available fields for entities in Contentstack.
11 | public protocol SystemFields: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// The unique identifier of the entity.
13 | var uid: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:281:34: warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
279 | switch result {
280 | case .success(let data):
281 | continuation.resume(returning: (data, responseType))
| |- warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(Data, ResponseType)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
282 | case .failure(let error):
283 | continuation.resume(throwing: error)
[57/79] Compiling ContentstackSwift Stack.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:220:28: warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
218 | if let response = response as? HTTPURLResponse {
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
| `- warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
/Users/admin/builder/spi-builder-workspace/Sources/CSDefinitions.swift:49:13: note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
47 | }
48 | /// The cache policies allow you to define the source from where the SDK will retrieve the content.
49 | public enum CachePolicy {
| `- note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
50 | ///The SDK retrieves data through a network call, and saves the retrieved data in the cache.
51 | ///This is set as the default policy.
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:29: warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
16 |
17 | /// Stack is instance for performing Contentstack Delivery API request.
18 | public class Stack: CachePolicyAccessible {
| `- note: class 'Stack' does not conform to the 'Sendable' protocol
19 | internal var urlSession: URLSession
20 |
:
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:74: warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| |- warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:62: warning: reference to captured var 'request' in concurrently-executing code
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:59: warning: reference to captured var 'request' in concurrently-executing code
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:240:30: warning: reference to captured var 'request' in concurrently-executing code
238 | CachedURLResponse(response: response,
239 | data: data),
240 | for: request
| `- warning: reference to captured var 'request' in concurrently-executing code
241 | )
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:249:54: warning: reference to captured var 'request' in concurrently-executing code
247 | if let error = error {
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
250 | self.fullfillRequestWithCache(request, then: completion)
251 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:250:51: warning: reference to captured var 'request' in concurrently-executing code
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
250 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/SyncStack.swift:131:23: warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | extension SyncStack: EndpointAccessible {
131 | public static var endpoint: Endpoint = .sync
| |- warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'endpoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SystemFields.swift:11:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | /// Sysyem Fields are available fields for entities in Contentstack.
11 | public protocol SystemFields: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// The unique identifier of the entity.
13 | var uid: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:281:34: warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
279 | switch result {
280 | case .success(let data):
281 | continuation.resume(returning: (data, responseType))
| |- warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(Data, ResponseType)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
282 | case .failure(let error):
283 | continuation.resume(throwing: error)
[58/79] Compiling ContentstackSwift SyncStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:220:28: warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
218 | if let response = response as? HTTPURLResponse {
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
| `- warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
/Users/admin/builder/spi-builder-workspace/Sources/CSDefinitions.swift:49:13: note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
47 | }
48 | /// The cache policies allow you to define the source from where the SDK will retrieve the content.
49 | public enum CachePolicy {
| `- note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
50 | ///The SDK retrieves data through a network call, and saves the retrieved data in the cache.
51 | ///This is set as the default policy.
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:29: warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
16 |
17 | /// Stack is instance for performing Contentstack Delivery API request.
18 | public class Stack: CachePolicyAccessible {
| `- note: class 'Stack' does not conform to the 'Sendable' protocol
19 | internal var urlSession: URLSession
20 |
:
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:74: warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| |- warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:62: warning: reference to captured var 'request' in concurrently-executing code
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:59: warning: reference to captured var 'request' in concurrently-executing code
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:240:30: warning: reference to captured var 'request' in concurrently-executing code
238 | CachedURLResponse(response: response,
239 | data: data),
240 | for: request
| `- warning: reference to captured var 'request' in concurrently-executing code
241 | )
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:249:54: warning: reference to captured var 'request' in concurrently-executing code
247 | if let error = error {
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
250 | self.fullfillRequestWithCache(request, then: completion)
251 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:250:51: warning: reference to captured var 'request' in concurrently-executing code
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
250 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/SyncStack.swift:131:23: warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | extension SyncStack: EndpointAccessible {
131 | public static var endpoint: Endpoint = .sync
| |- warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'endpoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SystemFields.swift:11:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | /// Sysyem Fields are available fields for entities in Contentstack.
11 | public protocol SystemFields: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// The unique identifier of the entity.
13 | var uid: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:281:34: warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
279 | switch result {
280 | case .success(let data):
281 | continuation.resume(returning: (data, responseType))
| |- warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(Data, ResponseType)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
282 | case .failure(let error):
283 | continuation.resume(throwing: error)
[59/79] Compiling ContentstackSwift SystemFields.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:220:28: warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
218 | if let response = response as? HTTPURLResponse {
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
| `- warning: capture of 'cachePolicy' with non-sendable type 'CachePolicy' in a '@Sendable' closure
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
/Users/admin/builder/spi-builder-workspace/Sources/CSDefinitions.swift:49:13: note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
47 | }
48 | /// The cache policies allow you to define the source from where the SDK will retrieve the content.
49 | public enum CachePolicy {
| `- note: consider making enum 'CachePolicy' conform to the 'Sendable' protocol
50 | ///The SDK retrieves data through a network call, and saves the retrieved data in the cache.
51 | ///This is set as the default policy.
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:29: warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
16 |
17 | /// Stack is instance for performing Contentstack Delivery API request.
18 | public class Stack: CachePolicyAccessible {
| `- note: class 'Stack' does not conform to the 'Sendable' protocol
19 | internal var urlSession: URLSession
20 |
:
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: capture of 'self' with non-sendable type 'Stack' in a '@Sendable' closure
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:74: warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| |- warning: capture of 'completion' with non-sendable type 'ResultsHandler<Data>' (aka '(Result<Data, any Error>, ResponseType) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:221:62: warning: reference to captured var 'request' in concurrently-executing code
219 | if response.statusCode != 200 {
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
222 | self.fullfillRequestWithCache(request, then: completion)
223 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:222:59: warning: reference to captured var 'request' in concurrently-executing code
220 | if cachePolicy == .networkElseCache,
221 | self.canFullfillRequestWithCache(request) {
222 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:240:30: warning: reference to captured var 'request' in concurrently-executing code
238 | CachedURLResponse(response: response,
239 | data: data),
240 | for: request
| `- warning: reference to captured var 'request' in concurrently-executing code
241 | )
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:249:54: warning: reference to captured var 'request' in concurrently-executing code
247 | if let error = error {
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
| `- warning: reference to captured var 'request' in concurrently-executing code
250 | self.fullfillRequestWithCache(request, then: completion)
251 | return
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:250:51: warning: reference to captured var 'request' in concurrently-executing code
248 | if self.cachePolicy == .networkElseCache,
249 | self.canFullfillRequestWithCache(request) {
250 | self.fullfillRequestWithCache(request, then: completion)
| `- warning: reference to captured var 'request' in concurrently-executing code
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/SyncStack.swift:131:23: warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | extension SyncStack: EndpointAccessible {
131 | public static var endpoint: Endpoint = .sync
| |- warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'endpoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SystemFields.swift:11:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | /// Sysyem Fields are available fields for entities in Contentstack.
11 | public protocol SystemFields: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// The unique identifier of the entity.
13 | var uid: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/Stack.swift:281:34: warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
279 | switch result {
280 | case .success(let data):
281 | continuation.resume(returning: (data, responseType))
| |- warning: sending value of non-Sendable type '(Data, ResponseType)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(Data, ResponseType)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
282 | case .failure(let error):
283 | continuation.resume(throwing: error)
[60/79] Compiling ContentstackSwift ContentstackConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ContentstackConfig {
| `- note: consider making struct 'ContentstackConfig' conform to the 'Sendable' protocol
11 |
12 | /// The singleton instance of 'ContentstackConfig'.
13 | public static let `default` = ContentstackConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public var earlyAccess: [String]?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:24:23: warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | /// The type of logger used to log messages; defaults to `NSLog` on
23 | /// iOS, tvOS, watchOS, macOS. Defaults to `print` on other platforms.
24 | public static var logType: LogType = .nsLog
| |- warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | #else
26 | /// The type of logger used to log messages; defaults to `NSLog` on
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:32:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The highest order of message types that should be logged. Defaults to `LogLevel.error`.
32 | public static var logLevel: LogLevel = .error
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// An enum describing the types of messages to be logged.
34 | public enum LogLevel: Int {
[61/79] Compiling ContentstackSwift ContentstackLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ContentstackConfig {
| `- note: consider making struct 'ContentstackConfig' conform to the 'Sendable' protocol
11 |
12 | /// The singleton instance of 'ContentstackConfig'.
13 | public static let `default` = ContentstackConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public var earlyAccess: [String]?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:24:23: warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | /// The type of logger used to log messages; defaults to `NSLog` on
23 | /// iOS, tvOS, watchOS, macOS. Defaults to `print` on other platforms.
24 | public static var logType: LogType = .nsLog
| |- warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | #else
26 | /// The type of logger used to log messages; defaults to `NSLog` on
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:32:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The highest order of message types that should be logged. Defaults to `LogLevel.error`.
32 | public static var logLevel: LogLevel = .error
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// An enum describing the types of messages to be logged.
34 | public enum LogLevel: Int {
[62/79] Compiling ContentstackSwift ContentstackMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ContentstackConfig {
| `- note: consider making struct 'ContentstackConfig' conform to the 'Sendable' protocol
11 |
12 | /// The singleton instance of 'ContentstackConfig'.
13 | public static let `default` = ContentstackConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public var earlyAccess: [String]?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:24:23: warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | /// The type of logger used to log messages; defaults to `NSLog` on
23 | /// iOS, tvOS, watchOS, macOS. Defaults to `print` on other platforms.
24 | public static var logType: LogType = .nsLog
| |- warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | #else
26 | /// The type of logger used to log messages; defaults to `NSLog` on
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:32:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The highest order of message types that should be logged. Defaults to `LogLevel.error`.
32 | public static var logLevel: LogLevel = .error
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// An enum describing the types of messages to be logged.
34 | public enum LogLevel: Int {
[63/79] Compiling ContentstackSwift ContentstackResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ContentstackConfig {
| `- note: consider making struct 'ContentstackConfig' conform to the 'Sendable' protocol
11 |
12 | /// The singleton instance of 'ContentstackConfig'.
13 | public static let `default` = ContentstackConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public var earlyAccess: [String]?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:24:23: warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | /// The type of logger used to log messages; defaults to `NSLog` on
23 | /// iOS, tvOS, watchOS, macOS. Defaults to `print` on other platforms.
24 | public static var logType: LogType = .nsLog
| |- warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | #else
26 | /// The type of logger used to log messages; defaults to `NSLog` on
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:32:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The highest order of message types that should be logged. Defaults to `LogLevel.error`.
32 | public static var logLevel: LogLevel = .error
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// An enum describing the types of messages to be logged.
34 | public enum LogLevel: Int {
[64/79] Compiling ContentstackSwift Date.swift
[65/79] Compiling ContentstackSwift Decodable.swift
[66/79] Compiling ContentstackSwift EndPoint.swift
[67/79] Compiling ContentstackSwift Entry.swift
[68/79] Compiling ContentstackSwift GlobalField.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:155:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
141 | public enum Crop {
142 | /// Crop by width and height
143 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
144 | /// Crop by aspect ratio
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
:
153 | var queryItems = [URLQueryItem]()
154 | switch self {
155 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
156 | values = [
157 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:169:22: warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
146 | /// Crop sub region
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
| `- note: 'region(width:height:xRegion:yRegion:mode:)' declared here
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
:
167 | values.append(value)
168 | }
169 | case .region(let region):
| `- warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
170 | values = [
171 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:179:22: warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
| `- note: 'offset(width:height:xOffset:yOffset:mode:)' declared here
150 |
151 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
177 | values.append(value)
178 | }
179 | case .offset(let offset):
| `- warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
180 | values = [
181 | String(offset.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:213:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
199 | public enum Canvas {
200 | /// Crop by width and height
201 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
202 | /// Crop by aspect ratio
203 | case aspectRatio (Size, ratio: String)
:
211 | var queryItems = [URLQueryItem]()
212 | switch self {
213 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
214 | values = [
215 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:224:22: warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
203 | case aspectRatio (Size, ratio: String)
204 | /// Crop sub region
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
| `- note: 'region(width:height:xRegion:yRegion:)' declared here
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
:
222 | }
223 | values = [ratio]
224 | case .region(let region):
| `- warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
225 | values = [
226 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:231:22: warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
| `- note: 'offset(width:height:xOffset:yOffset:)' declared here
208 |
209 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
229 | "y\(String(region.yRegion))"
230 | ]
231 | case .offset(let offset):
| `- warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
232 | values = [
233 | String(offset.width),
[69/79] Compiling ContentstackSwift GlobalFieldModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:155:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
141 | public enum Crop {
142 | /// Crop by width and height
143 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
144 | /// Crop by aspect ratio
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
:
153 | var queryItems = [URLQueryItem]()
154 | switch self {
155 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
156 | values = [
157 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:169:22: warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
146 | /// Crop sub region
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
| `- note: 'region(width:height:xRegion:yRegion:mode:)' declared here
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
:
167 | values.append(value)
168 | }
169 | case .region(let region):
| `- warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
170 | values = [
171 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:179:22: warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
| `- note: 'offset(width:height:xOffset:yOffset:mode:)' declared here
150 |
151 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
177 | values.append(value)
178 | }
179 | case .offset(let offset):
| `- warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
180 | values = [
181 | String(offset.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:213:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
199 | public enum Canvas {
200 | /// Crop by width and height
201 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
202 | /// Crop by aspect ratio
203 | case aspectRatio (Size, ratio: String)
:
211 | var queryItems = [URLQueryItem]()
212 | switch self {
213 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
214 | values = [
215 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:224:22: warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
203 | case aspectRatio (Size, ratio: String)
204 | /// Crop sub region
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
| `- note: 'region(width:height:xRegion:yRegion:)' declared here
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
:
222 | }
223 | values = [ratio]
224 | case .region(let region):
| `- warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
225 | values = [
226 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:231:22: warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
| `- note: 'offset(width:height:xOffset:yOffset:)' declared here
208 |
209 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
229 | "y\(String(region.yRegion))"
230 | ]
231 | case .offset(let offset):
| `- warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
232 | values = [
233 | String(offset.width),
[70/79] Compiling ContentstackSwift ImageOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:155:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
141 | public enum Crop {
142 | /// Crop by width and height
143 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
144 | /// Crop by aspect ratio
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
:
153 | var queryItems = [URLQueryItem]()
154 | switch self {
155 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
156 | values = [
157 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:169:22: warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
146 | /// Crop sub region
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
| `- note: 'region(width:height:xRegion:yRegion:mode:)' declared here
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
:
167 | values.append(value)
168 | }
169 | case .region(let region):
| `- warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
170 | values = [
171 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:179:22: warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
| `- note: 'offset(width:height:xOffset:yOffset:mode:)' declared here
150 |
151 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
177 | values.append(value)
178 | }
179 | case .offset(let offset):
| `- warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
180 | values = [
181 | String(offset.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:213:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
199 | public enum Canvas {
200 | /// Crop by width and height
201 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
202 | /// Crop by aspect ratio
203 | case aspectRatio (Size, ratio: String)
:
211 | var queryItems = [URLQueryItem]()
212 | switch self {
213 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
214 | values = [
215 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:224:22: warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
203 | case aspectRatio (Size, ratio: String)
204 | /// Crop sub region
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
| `- note: 'region(width:height:xRegion:yRegion:)' declared here
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
:
222 | }
223 | values = [ratio]
224 | case .region(let region):
| `- warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
225 | values = [
226 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:231:22: warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
| `- note: 'offset(width:height:xOffset:yOffset:)' declared here
208 |
209 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
229 | "y\(String(region.yRegion))"
230 | ]
231 | case .offset(let offset):
| `- warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
232 | values = [
233 | String(offset.width),
[71/79] Compiling ContentstackSwift ImageOperations.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:155:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
141 | public enum Crop {
142 | /// Crop by width and height
143 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
144 | /// Crop by aspect ratio
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
:
153 | var queryItems = [URLQueryItem]()
154 | switch self {
155 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
156 | values = [
157 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:169:22: warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
145 | case aspectRatio (Size, ratio: String, mode: Mode = .none)
146 | /// Crop sub region
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
| `- note: 'region(width:height:xRegion:yRegion:mode:)' declared here
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
:
167 | values.append(value)
168 | }
169 | case .region(let region):
| `- warning: enum case 'region' has 5 associated values; matching them as a tuple is deprecated
170 | values = [
171 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:179:22: warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
147 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none)
148 | /// Crop and offset
149 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none)
| `- note: 'offset(width:height:xOffset:yOffset:mode:)' declared here
150 |
151 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
177 | values.append(value)
178 | }
179 | case .offset(let offset):
| `- warning: enum case 'offset' has 5 associated values; matching them as a tuple is deprecated
180 | values = [
181 | String(offset.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:213:23: warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
199 | public enum Canvas {
200 | /// Crop by width and height
201 | case `default`(width: UInt, height: UInt)
| `- note: 'default(width:height:)' declared here
202 | /// Crop by aspect ratio
203 | case aspectRatio (Size, ratio: String)
:
211 | var queryItems = [URLQueryItem]()
212 | switch self {
213 | case .default(let size):
| `- warning: enum case 'default' has 2 associated values; matching them as a tuple is deprecated
214 | values = [
215 | String(size.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:224:22: warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
203 | case aspectRatio (Size, ratio: String)
204 | /// Crop sub region
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
| `- note: 'region(width:height:xRegion:yRegion:)' declared here
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
:
222 | }
223 | values = [ratio]
224 | case .region(let region):
| `- warning: enum case 'region' has 4 associated values; matching them as a tuple is deprecated
225 | values = [
226 | String(region.width),
/Users/admin/builder/spi-builder-workspace/Sources/ImageOperations.swift:231:22: warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
205 | case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
206 | /// Crop and offset
207 | case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)
| `- note: 'offset(width:height:xOffset:yOffset:)' declared here
208 |
209 | internal func urlQueryItem() throws -> [URLQueryItem] {
:
229 | "y\(String(region.yRegion))"
230 | ]
231 | case .offset(let offset):
| `- warning: enum case 'offset' has 4 associated values; matching them as a tuple is deprecated
232 | values = [
233 | String(offset.width),
[72/79] Compiling ContentstackSwift Asset.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSURLCache.swift:10:16: warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | internal class CSURLCache: URLCache {
| `- warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
11 |
12 | internal static let `default`: CSURLCache = CSURLCache(memoryCapacity: 1024 * 1024,
[73/79] Compiling ContentstackSwift AssetModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSURLCache.swift:10:16: warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | internal class CSURLCache: URLCache {
| `- warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
11 |
12 | internal static let `default`: CSURLCache = CSURLCache(memoryCapacity: 1024 * 1024,
[74/79] Compiling ContentstackSwift CSDefinitions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSURLCache.swift:10:16: warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | internal class CSURLCache: URLCache {
| `- warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
11 |
12 | internal static let `default`: CSURLCache = CSURLCache(memoryCapacity: 1024 * 1024,
[75/79] Compiling ContentstackSwift CSURLCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSURLCache.swift:10:16: warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | internal class CSURLCache: URLCache {
| `- warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
11 |
12 | internal static let `default`: CSURLCache = CSURLCache(memoryCapacity: 1024 * 1024,
[76/79] Compiling ContentstackSwift Taxonomy.swift
[77/79] Compiling ContentstackSwift TaxonomyModel.swift
[78/79] Compiling ContentstackSwift Utils.swift
[79/79] Emitting module ContentstackSwift
/Users/admin/builder/spi-builder-workspace/Sources/CSURLCache.swift:10:16: warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | internal class CSURLCache: URLCache {
| `- warning: class 'CSURLCache' must restate inherited '@unchecked Sendable' conformance
11 |
12 | internal static let `default`: CSURLCache = CSURLCache(memoryCapacity: 1024 * 1024,
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct ContentstackConfig {
| `- note: consider making struct 'ContentstackConfig' conform to the 'Sendable' protocol
11 |
12 | /// The singleton instance of 'ContentstackConfig'.
13 | public static let `default` = ContentstackConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ContentstackConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public var earlyAccess: [String]?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:24:23: warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | /// The type of logger used to log messages; defaults to `NSLog` on
23 | /// iOS, tvOS, watchOS, macOS. Defaults to `print` on other platforms.
24 | public static var logType: LogType = .nsLog
| |- warning: static property 'logType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | #else
26 | /// The type of logger used to log messages; defaults to `NSLog` on
/Users/admin/builder/spi-builder-workspace/Sources/ContentstackLogger.swift:32:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// The highest order of message types that should be logged. Defaults to `LogLevel.error`.
32 | public static var logLevel: LogLevel = .error
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// An enum describing the types of messages to be logged.
34 | public enum LogLevel: Int {
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:65:14: warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
63 |
64 | /// Information regarding an error received from Contentstack's API.
65 | public class APIError: Decodable, Error, CustomDebugStringConvertible {
| `- warning: non-final class 'APIError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 | public var debugDescription: String {
67 | let statusCodeString = "HTTP status code " + String(statusCode)
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:88:16: warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
86 |
87 | /// More detailed error Information.
88 | public let errorInfo: ErrorInfo!
| `- warning: stored property 'errorInfo' of 'Sendable'-conforming class 'APIError' has non-sendable type 'APIError.ErrorInfo?'; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
:
106 |
107 | /// A description about detailed error information
108 | public class ErrorInfo: Decodable, CustomDebugStringConvertible {
| `- note: class 'ErrorInfo' does not conform to the 'Sendable' protocol
109 | public var debugDescription: String {
110 | var debugDescription = ""
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:91:16: warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
89 |
90 | /// The HTTP status code.
91 | public var statusCode: Int!
| `- warning: stored property 'statusCode' of 'Sendable'-conforming class 'APIError' is mutable; this is an error in the Swift 6 language mode
92 |
93 | /// Decodable Initializer for APIError.
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:18:16: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | internal struct FatalError {
17 | // 1
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/FatalError.swift:20:24: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
19 | // 2
20 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultFatalErrorClosure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // 3
22 | internal static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:94:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
92 |
93 | /// To include `count` in the response.
94 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:96:27: warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
94 | public static let count: Include = Include(rawValue: 1 << 0)
95 | /// To include Unpublished Entries in response,
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'unpublished' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unpublished' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:98:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
96 | public static let unpublished: Include = Include(rawValue: 1 << 1)
97 | /// To include ContentType schema in Entry response,
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:100:27: warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
98 | public static let contentType: Include = Include(rawValue: 1 << 2)
99 | /// To include Global Fields schema in Entry response,
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'globalField' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalField' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:102:27: warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
100 | public static let globalField: Include = Include(rawValue: 1 << 3)
101 | /// To include Reference ContentType Uid in reference field in Entry response,
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'refContentTypeUID' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'refContentTypeUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:104:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
102 | public static let refContentTypeUID: Include = Include(rawValue: 1 << 4)
103 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:106:27: warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
104 | public static let fallback: Include = Include(rawValue: 1 << 5)
105 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
106 | public static let embeddedItems: Include = Include(rawValue: 1 << 6)
| |- warning: static property 'embeddedItems' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'embeddedItems' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:109:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
107 |
108 | /// Include Embedded Objects (Entries and Assets) along with entry/entries details.
109 | public static let metadata: Include = Include(rawValue: 1 << 7)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | /// To inclide all `Query.Include` values.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:112:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
79 | /// `ContentType schema`, `Global Fields schema`, and `Reference ContentType Uid`
80 | /// in result.
81 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
82 | /// Creates a new option set from the given raw value.
83 | ///
:
110 |
111 | /// To inclide all `Query.Include` values.
112 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Query.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | .unpublished,
114 | .contentType,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:138:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
136 |
137 | /// To include count in the response.
138 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:140:27: warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
138 | public static let count: Include = Include(rawValue: 1 << 0)
139 | /// To include Global Fields schema in ContentType response,
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'globalFields' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'globalFields' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:142:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
123 | extension ContentTypeQuery {
124 | /// The `ContentTypeQuery.Include` is parameter for including `count`, `Global Fields schema` in result.
125 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
126 | /// Creates a new option set from the given raw value.
127 | ///
:
140 | public static let globalFields: Include = Include(rawValue: 1 << 1)
141 | /// To include all `ContentTypeQuery.Include` values.
142 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ContentTypeQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | .globalFields]
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:163:27: warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
161 |
162 | /// To include count in the response.
163 | public static let count: Include = Include(rawValue: 1 << 0)
| |- warning: static property 'count' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'count' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:165:27: warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
163 | public static let count: Include = Include(rawValue: 1 << 0)
164 | /// To include the relative URLs of the assets in the response.
165 | public static let relativeURL: Include = Include(rawValue: 1 << 1)
| |- warning: static property 'relativeURL' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'relativeURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:168:27: warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
166 | /// To include the dimensions (height and width) of the image in the response.
167 | /// Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
| |- warning: static property 'dimension' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dimension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:170:27: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
168 | public static let dimension: Include = Include(rawValue: 1 << 2)
169 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:172:27: warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
170 | public static let fallback: Include = Include(rawValue: 1 << 3)
171 | /// Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
| |- warning: static property 'metadata' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'metadata' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
/Users/admin/builder/spi-builder-workspace/Sources/QueryParameter.swift:174:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
148 | /// The `AssetQuery.Include` is parameter for including `count`, `relative URLs`,
149 | /// and `dimensions` in result.
150 | public struct Include: OptionSet {
| `- note: consider making struct 'Include' conform to the 'Sendable' protocol
151 | /// Creates a new option set from the given raw value.
152 | ///
:
172 | public static let metadata: Include = Include(rawValue: 1 << 4)
173 | /// To inclide all `AssetQuery.Include` values.
174 | public static let all: Include = [.count,
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AssetQuery.Include' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 | .relativeURL,
176 | .dimension,
/Users/admin/builder/spi-builder-workspace/Sources/QueryProtocols.swift:11:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// A base Query protocol which holds the essentials shared by all query types in the SDK which enable
10 | /// querying against content types, entries and assets.
11 | public protocol QueryProtocol: class, CachePolicyAccessible {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | associatedtype ResourceType
13 | /// The Stack instance to perform operation,
/Users/admin/builder/spi-builder-workspace/Sources/SyncStack.swift:131:23: warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | extension SyncStack: EndpointAccessible {
131 | public static var endpoint: Endpoint = .sync
| |- warning: static property 'endpoint' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'endpoint' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SystemFields.swift:11:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 |
10 | /// Sysyem Fields are available fields for entities in Contentstack.
11 | public protocol SystemFields: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// The unique identifier of the entity.
13 | var uid: String { get }
Build complete! (13.11s)
Fetching https://github.com/contentstack/contentstack-utils-swift.git
Fetching https://github.com/contentstack/contentstack-swift-dvr.git
[1/907] Fetching contentstack-swift-dvr
[8/1550] Fetching contentstack-swift-dvr, contentstack-utils-swift
Fetched https://github.com/contentstack/contentstack-swift-dvr.git from cache (0.94s)
Fetched https://github.com/contentstack/contentstack-utils-swift.git from cache (0.94s)
Computing version for https://github.com/contentstack/contentstack-swift-dvr.git
Computed https://github.com/contentstack/contentstack-swift-dvr.git at 1.0.0 (1.58s)
Computing version for https://github.com/contentstack/contentstack-utils-swift.git
Computed https://github.com/contentstack/contentstack-utils-swift.git at 1.3.4 (0.62s)
Creating working copy for https://github.com/contentstack/contentstack-swift-dvr.git
Working copy of https://github.com/contentstack/contentstack-swift-dvr.git resolved at 1.0.0
Creating working copy for https://github.com/contentstack/contentstack-utils-swift.git
Working copy of https://github.com/contentstack/contentstack-utils-swift.git resolved at 1.3.4
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy
Build complete.
{
"dependencies" : [
{
"identity" : "contentstack-utils-swift",
"requirement" : {
"exact" : [
"1.3.4"
]
},
"type" : "sourceControl",
"url" : "https://github.com/contentstack/contentstack-utils-swift.git"
},
{
"identity" : "contentstack-swift-dvr",
"requirement" : {
"exact" : [
"1.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/contentstack/contentstack-swift-dvr.git"
}
],
"manifest_display_name" : "ContentstackSwift",
"name" : "ContentstackSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "ContentstackSwift",
"targets" : [
"ContentstackSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ContentstackTests",
"module_type" : "SwiftTarget",
"name" : "ContentstackTests",
"path" : "Tests",
"product_dependencies" : [
"DVR"
],
"sources" : [
"AssetQueryAPITest.swift",
"AssetQueryTest.swift",
"AssetTest.swift",
"AsyncAwaitAPITest.swift",
"CSDefinitionsTest.swift",
"ContentStackLogTest.swift",
"ContentTypeQueryAPITest.swift",
"ContentTypeQueryTest.swift",
"ContentTypeTest.swift",
"ContentstackConfigTest.swift",
"ContentstackTest.swift",
"ContentstackTests.swift",
"DateTest.swift",
"DecodableTest.swift",
"EndPointTest.swift",
"EntryAPITest.swift",
"EntryQueriable\u0010\u0010Test.swift",
"EntryTest.swift",
"ErrorTest.swift",
"GlobalFieldAPITest.swift",
"ImageTransformEquatableTest.swift",
"ImageTransformErrorTest.swift",
"ImageTransformTest.swift",
"ImageTransformTestAdditional.swift",
"LinuxMain.swift",
"ParameterEncodingTest.swift",
"Product.swift",
"QueryEntryType.swift",
"QueryOnAPITest.swift",
"QueryOperationTest.swift",
"QueryParameterTest.swift",
"QueryTest.swift",
"QueryableRangeTest.swift",
"Session.swift",
"StackCacheAPITest.swift",
"StackInitializationTest.swift",
"StackTest.swift",
"SutBuilder.swift",
"SyncAPITest.swift",
"SyncTest.swift",
"TaxonomyTest.swift",
"TaxonomyUnitTest.swift",
"UtilsTest.swift",
"XCTestCase+Extension.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"ContentstackSwift"
],
"type" : "test"
},
{
"c99name" : "ContentstackSwift",
"module_type" : "SwiftTarget",
"name" : "ContentstackSwift",
"path" : "Sources",
"product_dependencies" : [
"ContentstackUtils",
"DVR"
],
"product_memberships" : [
"ContentstackSwift"
],
"sources" : [
"Asset.swift",
"AssetModel.swift",
"CSDefinitions.swift",
"CSURLCache.swift",
"CSURLSessionDelegate.swift",
"ContentType.swift",
"ContentTypeModel.swift",
"Contentstack.swift",
"ContentstackConfig.swift",
"ContentstackLogger.swift",
"ContentstackMessages.swift",
"ContentstackResponse.swift",
"Date.swift",
"Decodable.swift",
"EndPoint.swift",
"Entry.swift",
"EntryModel.swift",
"EntryQuaryable.swift",
"Error.swift",
"FatalError.swift",
"GlobalField.swift",
"GlobalFieldModel.swift",
"ImageOperation.swift",
"ImageOperations.swift",
"ImageParameter.swift",
"ImageTransform.swift",
"ImageTransformError.swift",
"ParameterEncoding.swift",
"Query.swift",
"QueryOperation.swift",
"QueryParameter.swift",
"QueryProtocols.swift",
"QueryableRange.swift",
"Stack.swift",
"SyncStack.swift",
"SystemFields.swift",
"Taxonomy.swift",
"TaxonomyModel.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.