Build Information
Failed to build Optimizely with Swift 6.0 (beta) for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:120:38: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:154:25: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
152 | switch result {
153 | case .failure(let error):
154 | self.logger.e(error.reason)
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
155 | failureCount += 1
156 | case .success:
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:193:17: warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 | let task = session.uploadTask(with: request, from: event.body) { (_, _, error) in
192 | if let error = error {
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
| |- warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
194 | } else {
195 | self.logger.d("Event Sent")
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:195:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
194 | } else {
195 | self.logger.d("Event Sent")
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | completionHandler(.success(event.body))
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:196:44: warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
194 | } else {
195 | self.logger.d("Event Sent")
196 | completionHandler(.success(event.body))
| `- warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:19:27: note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
17 | import Foundation
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
| `- note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:246:19: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
244 | DispatchQueue.main.async {
245 | // should check here again
246 | guard self.timer.property == nil else { return }
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:249:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | if self.eventQueue.count > 0 {
251 | self.flushEvents()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:250:24: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
250 | if self.eventQueue.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.flushEvents()
252 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:21:24: warning: static property '_logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | open class DefaultLogger: OPTLogger {
21 | private static var _logLevel: OptimizelyLogLevel?
| |- warning: static property '_logLevel' is not concurrency-safe because it is non-isolated 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: annotate '_logLevel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static var logLevel: OptimizelyLogLevel {
23 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:64:16: warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| `- warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
65 | }
66 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
16 |
17 | import Foundation
18 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
19 |
20 | open class DefaultLogger: OPTLogger {
:
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| |- note: annotate 'optimizely' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:83:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
81 | public required init() {
82 | lock.async {
83 | self.profiles = UserDefaults.standard.dictionary(forKey: self.kStorageName) as? UserProfileData ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:38: warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:29: warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Utils/HandlerRegistryService.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class HandlerRegistryService {
| `- note: class 'HandlerRegistryService' does not conform to the 'Sendable' protocol
20 | static let shared = HandlerRegistryService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | struct ServiceKey: Hashable {
[48/93] Compiling Optimizely OPTUserProfileService.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:55:31: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | return .success(data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:67:17: warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 |
66 | let result = OptimizelyResult<Data?>.failure(optError)
67 | completionHandler(returnCached(result))
| |- warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:55:31: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in an isolated local function; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in an isolated local function; this is an error in the Swift 6 language mode
56 | return .success(data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:82:21: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
80 | if error != nil {
81 | let optError = OptimizelyError.datafileDownloadFailed(error.debugDescription)
82 | self.logger.e(optError)
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | result = returnCached(.failure(optError)) // error recovery
84 | } else if let response = response as? HTTPURLResponse {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:83:30: warning: capture of 'returnCached' with non-sendable type '(OptimizelyResult<Data?>?) -> OptimizelyResult<Data?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let optError = OptimizelyError.datafileDownloadFailed(error.debugDescription)
82 | self.logger.e(optError)
83 | result = returnCached(.failure(optError)) // error recovery
| |- warning: capture of 'returnCached' with non-sendable type '(OptimizelyResult<Data?>?) -> OptimizelyResult<Data?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
84 | } else if let response = response as? HTTPURLResponse {
85 | switch response.statusCode {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:108:17: warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | self.reachability.updateNumContiguousFails(isError: (error != nil))
107 |
108 | completionHandler(result)
| |- warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:54:18: warning: concurrently-executed local function 'returnCached' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
52 | downloadQueue.async {
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
| `- warning: concurrently-executed local function 'returnCached' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
56 | return .success(data)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:244:28: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
242 | let now = Date()
243 | DispatchQueue.main.async {
244 | if let timer = self.timers.property?[sdkKey]?.timer, timer.isValid {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 | return
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:252:73: warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
252 | datafileChangeNotification: datafileChangeNotification)
| |- warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
253 |
254 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:249:17: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
247 |
248 | let timer = Timer.scheduledTimer(withTimeInterval: TimeInterval(updateInterval), repeats: false) { (timer) in
249 | self.performPerodicDownload(sdkKey: sdkKey,
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:252:73: warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
252 | datafileChangeNotification: datafileChangeNotification)
| |- warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
253 |
254 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:24:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'DefaultEventDispatcher' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'DefaultEventDispatcher' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | // timer-interval for batching (0 = no batching, negative = use default)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:120:38: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:120:38: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:154:25: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
152 | switch result {
153 | case .failure(let error):
154 | self.logger.e(error.reason)
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
155 | failureCount += 1
156 | case .success:
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:193:17: warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 | let task = session.uploadTask(with: request, from: event.body) { (_, _, error) in
192 | if let error = error {
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
| |- warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
194 | } else {
195 | self.logger.d("Event Sent")
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:195:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
194 | } else {
195 | self.logger.d("Event Sent")
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | completionHandler(.success(event.body))
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:196:44: warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
194 | } else {
195 | self.logger.d("Event Sent")
196 | completionHandler(.success(event.body))
| `- warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:19:27: note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
17 | import Foundation
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
| `- note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:246:19: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
244 | DispatchQueue.main.async {
245 | // should check here again
246 | guard self.timer.property == nil else { return }
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:249:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | if self.eventQueue.count > 0 {
251 | self.flushEvents()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:250:24: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
250 | if self.eventQueue.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.flushEvents()
252 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:21:24: warning: static property '_logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | open class DefaultLogger: OPTLogger {
21 | private static var _logLevel: OptimizelyLogLevel?
| |- warning: static property '_logLevel' is not concurrency-safe because it is non-isolated 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: annotate '_logLevel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static var logLevel: OptimizelyLogLevel {
23 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:64:16: warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| `- warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
65 | }
66 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
16 |
17 | import Foundation
18 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
19 |
20 | open class DefaultLogger: OPTLogger {
:
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| |- note: annotate 'optimizely' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:83:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
81 | public required init() {
82 | lock.async {
83 | self.profiles = UserDefaults.standard.dictionary(forKey: self.kStorageName) as? UserProfileData ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:38: warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:29: warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Utils/HandlerRegistryService.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class HandlerRegistryService {
| `- note: class 'HandlerRegistryService' does not conform to the 'Sendable' protocol
20 | static let shared = HandlerRegistryService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | struct ServiceKey: Hashable {
[49/93] Compiling Optimizely Attribute.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:55:31: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | return .success(data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:67:17: warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 |
66 | let result = OptimizelyResult<Data?>.failure(optError)
67 | completionHandler(returnCached(result))
| |- warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:55:31: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in an isolated local function; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in an isolated local function; this is an error in the Swift 6 language mode
56 | return .success(data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:82:21: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
80 | if error != nil {
81 | let optError = OptimizelyError.datafileDownloadFailed(error.debugDescription)
82 | self.logger.e(optError)
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | result = returnCached(.failure(optError)) // error recovery
84 | } else if let response = response as? HTTPURLResponse {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:83:30: warning: capture of 'returnCached' with non-sendable type '(OptimizelyResult<Data?>?) -> OptimizelyResult<Data?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | let optError = OptimizelyError.datafileDownloadFailed(error.debugDescription)
82 | self.logger.e(optError)
83 | result = returnCached(.failure(optError)) // error recovery
| |- warning: capture of 'returnCached' with non-sendable type '(OptimizelyResult<Data?>?) -> OptimizelyResult<Data?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
84 | } else if let response = response as? HTTPURLResponse {
85 | switch response.statusCode {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:108:17: warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | self.reachability.updateNumContiguousFails(isError: (error != nil))
107 |
108 | completionHandler(result)
| |- warning: capture of 'completionHandler' with non-sendable type 'DatafileDownloadCompletionHandler' (aka '(OptimizelyResult<Optional<Data>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:54:18: warning: concurrently-executed local function 'returnCached' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
52 | downloadQueue.async {
53 |
54 | func returnCached(_ result: OptimizelyResult<Data?>? = nil) -> OptimizelyResult<Data?> {
| `- warning: concurrently-executed local function 'returnCached' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
55 | if let data = self.loadSavedDatafile(sdkKey: sdkKey) {
56 | return .success(data)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:244:28: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
242 | let now = Date()
243 | DispatchQueue.main.async {
244 | if let timer = self.timers.property?[sdkKey]?.timer, timer.isValid {
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 | return
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:252:73: warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
252 | datafileChangeNotification: datafileChangeNotification)
| |- warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
253 |
254 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:249:17: warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | open class DefaultDatafileHandler: OPTDatafileHandler {
| `- note: class 'DefaultDatafileHandler' does not conform to the 'Sendable' protocol
20 | // endpoint used to get the datafile. This is settable after you create a OptimizelyClient instance.
21 | public var endPointStringFormat = "https://cdn.optimizely.com/datafiles/%@.json"
:
247 |
248 | let timer = Timer.scheduledTimer(withTimeInterval: TimeInterval(updateInterval), repeats: false) { (timer) in
249 | self.performPerodicDownload(sdkKey: sdkKey,
| `- warning: capture of 'self' with non-sendable type 'DefaultDatafileHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultDatafileHandler.swift:252:73: warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | startTime: now,
251 | updateInterval: updateInterval,
252 | datafileChangeNotification: datafileChangeNotification)
| |- warning: capture of 'datafileChangeNotification' with non-sendable type '((Data) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
253 |
254 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:24:16: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'DefaultEventDispatcher' may have shared mutable state; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'DefaultEventDispatcher' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | // timer-interval for batching (0 = no batching, negative = use default)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:120:38: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:120:38: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
118 |
119 | func removeStoredEvents(num: Int) {
120 | if let removedItem = self.eventQueue.removeFirstItems(count: num), removedItem.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated local function; this is an error in the Swift 6 language mode
121 | // avoid event-log-message preparation overheads with closure-logging
122 | self.logger.d({ "Removed stored \(num) events starting with \(removedItem.first!)" })
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:154:25: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
152 | switch result {
153 | case .failure(let error):
154 | self.logger.e(error.reason)
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in an isolated closure; this is an error in the Swift 6 language mode
155 | failureCount += 1
156 | case .success:
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:193:17: warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 | let task = session.uploadTask(with: request, from: event.body) { (_, _, error) in
192 | if let error = error {
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
| |- warning: capture of 'completionHandler' with non-sendable type 'DispatchCompletionHandler' (aka '(OptimizelyResult<Data>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
194 | } else {
195 | self.logger.d("Event Sent")
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:195:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
193 | completionHandler(.failure(.eventDispatchFailed(error.localizedDescription)))
194 | } else {
195 | self.logger.d("Event Sent")
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 | completionHandler(.success(event.body))
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:196:44: warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
194 | } else {
195 | self.logger.d("Event Sent")
196 | completionHandler(.success(event.body))
| `- warning: capture of 'event' with non-sendable type 'EventForDispatch' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 |
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:19:27: note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
17 | import Foundation
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
| `- note: class 'EventForDispatch' does not conform to the 'Sendable' protocol
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:246:19: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
244 | DispatchQueue.main.async {
245 | // should check here again
246 | guard self.timer.property == nil else { return }
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:249:17: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
247 |
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | if self.eventQueue.count > 0 {
251 | self.flushEvents()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultEventDispatcher.swift:250:24: warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 |
23 | open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
| `- note: class 'DefaultEventDispatcher' does not conform to the 'Sendable' protocol
24 | static let sharedInstance = DefaultEventDispatcher()
25 |
:
248 | self.timer.property = Timer.scheduledTimer(withTimeInterval: self.timerInterval, repeats: true) { _ in
249 | self.queueLock.async {
250 | if self.eventQueue.count > 0 {
| `- warning: capture of 'self' with non-sendable type 'DefaultEventDispatcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.flushEvents()
252 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:21:24: warning: static property '_logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | open class DefaultLogger: OPTLogger {
21 | private static var _logLevel: OptimizelyLogLevel?
| |- warning: static property '_logLevel' is not concurrency-safe because it is non-isolated 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: annotate '_logLevel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static var logLevel: OptimizelyLogLevel {
23 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:64:16: warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| `- warning: static property 'optimizely' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
65 | }
66 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultLogger.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
16 |
17 | import Foundation
18 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
19 |
20 | open class DefaultLogger: OPTLogger {
:
62 |
63 | extension OSLog {
64 | static let optimizely = OSLog(subsystem: "com.optimizely.swift-sdk", category: "OPTIMIZELY")
| |- note: annotate 'optimizely' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:83:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
81 | public required init() {
82 | lock.async {
83 | self.profiles = UserDefaults.standard.dictionary(forKey: self.kStorageName) as? UserProfileData ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 |
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:100:38: warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 |
99 | lock.async {
100 | self.profiles?[userId] = userProfile
| `- warning: capture of 'userProfile' with non-sendable type 'DefaultUserProfileService.UPProfile' (aka 'Dictionary<String, Any>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 | let defaults = UserDefaults.standard
102 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:13: warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // }
73 |
74 | open class DefaultUserProfileService: OPTUserProfileService {
| `- note: class 'DefaultUserProfileService' does not conform to the 'Sendable' protocol
75 | public typealias UserProfileData = [String: UPProfile]
76 |
:
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'self' with non-sendable type 'DefaultUserProfileService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Customization/DefaultUserProfileService.swift:109:29: warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | open func reset(userProfiles: UserProfileData? = nil) {
108 | lock.async {
109 | self.profiles = userProfiles ?? UserProfileData()
| `- warning: capture of 'userProfiles' with non-sendable type 'DefaultUserProfileService.UserProfileData?' (aka 'Optional<Dictionary<String, Dictionary<String, Any>>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let defaults = UserDefaults.standard
111 | defaults.set(self.profiles, forKey: self.kStorageName)
/Users/admin/builder/spi-builder-workspace/Sources/Utils/HandlerRegistryService.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class HandlerRegistryService {
| `- note: class 'HandlerRegistryService' does not conform to the 'Sendable' protocol
20 | static let shared = HandlerRegistryService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HandlerRegistryService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | struct ServiceKey: Hashable {
[50/93] Compiling Optimizely DataStoreUserDefaults.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[51/93] Compiling Optimizely DecisionInfo.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[52/93] Compiling Optimizely DecisionReasons.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[53/93] Compiling Optimizely DecisionResponse.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[54/93] Compiling Optimizely DefaultBucketer.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[55/93] Compiling Optimizely DefaultDecisionService.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[56/93] Compiling Optimizely DefaultNotificationCenter.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[57/93] Compiling Optimizely BatchEventBuilder.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[58/93] Compiling Optimizely LruCache.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:46:28: warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 |
45 | DataStoreUserDefaults.dispatchQueue.async {
46 | if let value = value as? Data {
| `- warning: capture of 'value' with non-sendable type 'Any' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Datastore/DataStoreUserDefaults.swift:48:21: warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | /// Implementation of OPTDataStore using standard UserDefaults.
20 | /// This class should be used as a singleton.
21 | public class DataStoreUserDefaults: OPTDataStore {
| `- note: class 'DataStoreUserDefaults' does not conform to the 'Sendable' protocol
22 | // A hardcoded max for user defaults. Since there is a max on iostv
23 | #if os(tvOS)
:
46 | if let value = value as? Data {
47 | if value.count > DataStoreUserDefaults.MAX_DS_SIZE {
48 | self.logger.e("Save to User Defaults error: \(forKey) is too big to save size(\(value.count))")
| `- warning: capture of 'self' with non-sendable type 'DataStoreUserDefaults' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | return
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/DefaultNotificationCenter.swift:207:17: warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | public class DefaultNotificationCenter: OPTNotificationCenter {
| `- note: class 'DefaultNotificationCenter' does not conform to the 'Sendable' protocol
20 | public var notificationId: Int {
21 | get {
:
205 | if let event = try? JSONSerialization.jsonObject(with: eventData, options: []) as? [String: Any] {
206 | let args: [Any] = [url, event]
207 | self.sendNotifications(type: NotificationType.logEvent.rawValue, args: args)
| `- warning: capture of 'self' with non-sendable type 'DefaultNotificationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Implementation/Events/BatchEventBuilder.swift:20:24: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | class BatchEventBuilder {
20 | static private var logger = OPTLoggerFactory.getLogger()
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Impression Event
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:31: warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: generic class 'LruCache' does not conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'self' with non-sendable type 'LruCache<K, V>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:75:40: warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'K' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
73 |
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
| `- warning: capture of 'key' with non-sendable type 'K' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | let newSegments = CacheElement(key: key, value: value)
77 | self.map[key] = newSegments
/Users/admin/builder/spi-builder-workspace/Sources/ODP/LruCache.swift:76:61: warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | class LruCache<K: Hashable, V> {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
20 |
21 | class CacheElement {
:
74 | queue.async(flags: .barrier) {
75 | let oldSegments = self.map[key]
76 | let newSegments = CacheElement(key: key, value: value)
| `- warning: capture of 'value' with non-sendable type 'V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | self.map[key] = newSegments
78 |
[59/93] Compiling Optimizely MurmurHash3.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[60/93] Compiling Optimizely NetworkReachability.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[61/93] Compiling Optimizely Notifications.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[62/93] Compiling Optimizely SDKVersion.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[63/93] Compiling Optimizely ThreadSafeLogger.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[64/93] Compiling Optimizely Utils.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[65/93] Compiling Optimizely WatchBackgroundNotifier.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[66/93] Compiling Optimizely resource_bundle_accessor.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Utils/NetworkReachability.swift:68:17: warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import Network
19 |
20 | class NetworkReachability {
| `- note: class 'NetworkReachability' does not conform to the 'Sendable' protocol
21 |
22 | var monitor: AnyObject?
:
66 |
67 | // this task runs in sync queue. set private variable (instead of isConnected to avoid deadlock)
68 | self?.connected = (path.status == .satisfied)
| `- warning: capture of 'self' with non-sendable type 'NetworkReachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:30:16: warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
| |- warning: static property 'sdkVersion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sdkVersion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sdkVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var swiftSdkClientName = "swift-sdk"
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/Utils.swift:31:16: warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | // from auto-generated variable OPTIMIZELYSDKVERSION
30 | static var sdkVersion: String = OPTIMIZELYSDKVERSION
31 | static var swiftSdkClientName = "swift-sdk"
| |- warning: static property 'swiftSdkClientName' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'swiftSdkClientName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'swiftSdkClientName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | static var os: String {
[67/93] Compiling Optimizely Experiment.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[68/93] Compiling Optimizely FeatureFlag.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[69/93] Compiling Optimizely FeatureVariable.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[70/93] Compiling Optimizely Group.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[71/93] Compiling Optimizely Integration.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[72/93] Compiling Optimizely Project.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[73/93] Compiling Optimizely ProjectConfig.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[74/93] Compiling Optimizely Rollout.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[75/93] Compiling Optimizely TrafficAllocation.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[76/93] Compiling Optimizely OptimizelyConfig.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[77/93] Compiling Optimizely OptimizelyError.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[78/93] Compiling Optimizely OptimizelyJSON+ObjC.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[79/93] Compiling Optimizely OptimizelyJSON.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[80/93] Compiling Optimizely OptimizelyLogLevel.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[81/93] Compiling Optimizely OptimizelyResult.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[82/93] Compiling Optimizely BackgroundingCallbacks.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[83/93] Compiling Optimizely DataStoreQueueStack.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[84/93] Compiling Optimizely OPTBucketer.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Optimizely/OptimizelyError.swift:54:10: warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | case conditionCannotBeEvaluated(_ hint: String)
53 | case evaluateAttributeInvalidCondition(_ condition: String)
54 | case evaluateAttributeInvalidType(_ condition: String, _ value: Any, _ key: String)
| `- warning: associated value 'evaluateAttributeInvalidType' of 'Sendable'-conforming enum 'OptimizelyError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
55 | case evaluateAttributeValueOutOfRange(_ condition: String, _ key: String)
56 | case evaluateAttributeInvalidFormat(_ hint: String)
[85/93] Compiling Optimizely AttributeValue.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[86/93] Compiling Optimizely Audience.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[87/93] Compiling Optimizely ConditionHolder.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[88/93] Compiling Optimizely ConditionLeaf.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[89/93] Compiling Optimizely SemanticVersion.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[90/93] Compiling Optimizely UserAttribute.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[91/93] Compiling Optimizely BatchEvent.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[92/93] Compiling Optimizely EventForDispatch.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
[93/93] Compiling Optimizely Event.swift
<unknown>:0: error: invalid value '5.9' in '-swift-version 5.9'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/Data Model/DispatchEvents/EventForDispatch.swift:20:23: warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | @objcMembers public class EventForDispatch: NSObject, Codable {
20 | public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
| |- warning: static property 'eventEndpoint' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'eventEndpoint' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'eventEndpoint' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public let url: URL
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/Supporting Files/Info.plist
BUILD FAILURE 6.0 macosSpm