Build Information
Successful build of Flagship, reference 5.0.0-beta.7 (8f5cc6), with Swift 6.1 for macOS (SPM) on 19 Nov 2025 00:19:42 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
12 | public var POOL_SIZE_MAX: Int = 10
| |- warning: var 'POOL_SIZE_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'POOL_SIZE_MAX' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'POOL_SIZE_MAX' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // Batch Interval Time
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Configs/FSTrackingManagerConfig.swift:15:12: warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // Batch Interval Time
15 | public var BATCH_INTERVAL_TIME: Double = 5
| |- warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BATCH_INTERVAL_TIME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BATCH_INTERVAL_TIME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public enum FSCacheStrategy: Int {
[28/88] Compiling Flagship FSStatus.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:69:31: warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
67 | /// Ask the delegate to lookup the visitor
68 | fsCacheQueue.async {
69 | if let dataJson = self.cacheVisitorDelegate?.lookupVisitor(visitorId: visitoId) {
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
70 | do {
71 | /// Should check the version of code before set the decoder
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:73:21: warning: capture of 'onCompletion' with non-sendable type '((any Error)?, FSCacheVisitor?) -> Void' in a '@Sendable' closure
71 | /// Should check the version of code before set the decoder
72 | let result = try JSONDecoder().decode(FSCacheVisitor.self, from: dataJson)
73 | onCompletion(nil, result)
| |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?, FSCacheVisitor?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
74 | } catch {
75 | onCompletion(error, nil)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:113:34: warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
111 | /// Ask the delegate to lookup the hits
112 | fsHitCacheQueue.async {
113 | let remainedTracks = self.hitCacheDelegate?.lookupHits()
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
114 | var cachedHitsFromDb: [FSTrackingProtocol] = []
115 | remainedTracks?.forEach { (id: String, value: [String: Any]) in
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:133:13: warning: capture of 'onCompletion' with non-sendable type '((any Error)?, [any FSTrackingProtocol]?) -> Void' in a '@Sendable' closure
131 | }
132 | }
133 | onCompletion(nil, cachedHitsFromDb)
| |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?, [any FSTrackingProtocol]?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
134 | semaphore.signal()
135 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:126:25: warning: capture of 'self' with non-sendable type 'FSCacheManager' in an isolated closure; this is an error in the Swift 6 language mode
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
124 | } else {
125 | // Remove from the DB because the hit is no longer valide
126 | self.hitCacheDelegate?.flushHits(hitIds: [id])
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in an isolated closure; this is an error in the Swift 6 language mode
127 | }
128 | } catch {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Configs/FSTrackingManagerConfig.swift:12:12: warning: var 'POOL_SIZE_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | // Default value for Pool Size Max
12 | public var POOL_SIZE_MAX: Int = 10
| |- warning: var 'POOL_SIZE_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'POOL_SIZE_MAX' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'POOL_SIZE_MAX' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // Batch Interval Time
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Configs/FSTrackingManagerConfig.swift:15:12: warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // Batch Interval Time
15 | public var BATCH_INTERVAL_TIME: Double = 5
| |- warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BATCH_INTERVAL_TIME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BATCH_INTERVAL_TIME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public enum FSCacheStrategy: Int {
[29/88] Compiling Flagship FSVisitor+Campaigns.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:69:31: warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
67 | /// Ask the delegate to lookup the visitor
68 | fsCacheQueue.async {
69 | if let dataJson = self.cacheVisitorDelegate?.lookupVisitor(visitorId: visitoId) {
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
70 | do {
71 | /// Should check the version of code before set the decoder
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:73:21: warning: capture of 'onCompletion' with non-sendable type '((any Error)?, FSCacheVisitor?) -> Void' in a '@Sendable' closure
71 | /// Should check the version of code before set the decoder
72 | let result = try JSONDecoder().decode(FSCacheVisitor.self, from: dataJson)
73 | onCompletion(nil, result)
| |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?, FSCacheVisitor?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
74 | } catch {
75 | onCompletion(error, nil)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:113:34: warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
111 | /// Ask the delegate to lookup the hits
112 | fsHitCacheQueue.async {
113 | let remainedTracks = self.hitCacheDelegate?.lookupHits()
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in a '@Sendable' closure
114 | var cachedHitsFromDb: [FSTrackingProtocol] = []
115 | remainedTracks?.forEach { (id: String, value: [String: Any]) in
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:133:13: warning: capture of 'onCompletion' with non-sendable type '((any Error)?, [any FSTrackingProtocol]?) -> Void' in a '@Sendable' closure
131 | }
132 | }
133 | onCompletion(nil, cachedHitsFromDb)
| |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?, [any FSTrackingProtocol]?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
134 | semaphore.signal()
135 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Cache/FSCacheManager.swift:126:25: warning: capture of 'self' with non-sendable type 'FSCacheManager' in an isolated closure; this is an error in the Swift 6 language mode
9 |
10 | /// Cache mangaer
11 | @objc public class FSCacheManager: NSObject {
| `- note: class 'FSCacheManager' does not conform to the 'Sendable' protocol
12 | /// Visitor cache lookup timeout in milliseconds.
13 | public var visitorCacheLookupTimeout: TimeInterval = 0.2 /// _ 0.2 second
:
124 | } else {
125 | // Remove from the DB because the hit is no longer valide
126 | self.hitCacheDelegate?.flushHits(hitIds: [id])
| `- warning: capture of 'self' with non-sendable type 'FSCacheManager' in an isolated closure; this is an error in the Swift 6 language mode
127 | }
128 | } catch {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Configs/FSTrackingManagerConfig.swift:12:12: warning: var 'POOL_SIZE_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | // Default value for Pool Size Max
12 | public var POOL_SIZE_MAX: Int = 10
| |- warning: var 'POOL_SIZE_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'POOL_SIZE_MAX' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'POOL_SIZE_MAX' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | // Batch Interval Time
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Configs/FSTrackingManagerConfig.swift:15:12: warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | // Batch Interval Time
15 | public var BATCH_INTERVAL_TIME: Double = 5
| |- warning: var 'BATCH_INTERVAL_TIME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BATCH_INTERVAL_TIME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BATCH_INTERVAL_TIME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public enum FSCacheStrategy: Int {
[30/88] Compiling Flagship FSVisitor+EmotionAI.swift
[31/88] Compiling Flagship FSVisitor+Flags.swift
[32/88] Compiling Flagship FSVisitor+Reconcilliation.swift
[33/88] Compiling Flagship FSVisitor+objc.swift
[34/88] Compiling Flagship FSVisitor.swift
[35/88] Compiling Flagship FSVisitorBuilder.swift
[36/88] Compiling Flagship FSVisitorExposed.swift
[37/88] Compiling Flagship FSFlag+Additions.swift
[38/88] Compiling Flagship FSFlag.swift
[39/88] Compiling Flagship FSCacheVisitor.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[40/88] Compiling Flagship FSCampaign.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[41/88] Compiling Flagship FSCampaigns.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[42/88] Compiling Flagship FSContext.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[43/88] Compiling Flagship FSModification.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[44/88] Compiling Flagship FSModifications.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[45/88] Compiling Flagship FSTargets.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[46/88] Compiling Flagship FSTroubleshooting.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:21:40: warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
19 | set {
20 | queueCtx.async(flags: .barrier) {
21 | self._currentContext = newValue
| `- warning: capture of 'newValue' with non-sendable type '[String : Any]' in a '@Sendable' closure
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSContext.swift:39:17: warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
8 | import Foundation
9 |
10 | class FSContext {
| `- note: class 'FSContext' does not conform to the 'Sendable' protocol
11 | private let queueCtx = DispatchQueue(label: "ctx.queue", attributes: .concurrent)
12 |
:
37 | set {
38 | queueCtx.async(flags: .barrier) {
39 | self._needToUpload = newValue
| `- warning: capture of 'self' with non-sendable type 'FSContext' in a '@Sendable' closure
40 | }
41 | }
[47/88] Compiling Flagship FSStorage.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[48/88] Compiling Flagship FSStorageManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[49/88] Compiling Flagship FSTrackingDbMgt.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[50/88] Compiling Flagship FSVisitorDbMgt.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[51/88] Compiling Flagship FSDefaultStrategy.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[52/88] Compiling Flagship FSNoConsentStrategy.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[53/88] Compiling Flagship FSNotReadyStrategy.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[54/88] Compiling Flagship FSPanicStrategy.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Strategy/FSDefaultStrategy.swift:223:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
221 | DispatchQueue.main.async {
222 | /// Before replacing the oldest visitor cache we should keep the oldest variation
223 | self.visitor.configManager.flagshipConfig.cacheManager.cacheVisitor(self.visitor)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
224 | }
225 | }
[55/88] Compiling Flagship Flagship+EmotionAI.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[56/88] Compiling Flagship Flagship.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[57/88] Compiling Flagship FSBucketingManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[58/88] Compiling Flagship FSPollingScript.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[59/88] Compiling Flagship FSTargetingManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[60/88] Compiling Flagship FSDecisionManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[61/88] Compiling Flagship FSDataUsageTracking+EmotionAI.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[62/88] Compiling Flagship FSEmotionAI.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[63/88] Compiling Flagship FSEmotionEvent.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:48:29: warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
46 |
47 | // Shared instace
48 | @objc public static let sharedInstance: Flagship = {
| |- warning: static property 'sharedInstance' is not concurrency-safe because non-'Sendable' type 'Flagship' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | let instance = Flagship()
50 | // setup code
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:17: warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Flagship: NSObject {
| `- note: class 'Flagship' does not conform to the 'Sendable' protocol
10 | let fsQueue = DispatchQueue(label: "flagship.queue", attributes: .concurrent)
11 |
:
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'self' with non-sendable type 'Flagship' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/Flagship.swift:40:39: warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
38 | set {
39 | fsQueue.async(flags: .barrier) {
40 | self._currentStatus = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSSdkStatus' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Core/FSStatus.swift:11:19: note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | @objc public enum FSSdkStatus: NSInteger {
| `- note: consider making enum 'FSSdkStatus' conform to the 'Sendable' protocol
12 | // When the is not started
13 | case SDK_NOT_INITIALIZED
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:29:38: warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
27 | set {
28 | fsQueue.async(flags: .barrier) {
29 | self._scriptBucket = newValue
| `- warning: capture of 'newValue' with non-sendable type 'FSBucket?' in a '@Sendable' closure
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Models/FSBucket.swift:11:7: note: class 'FSBucket' does not conform to the 'Sendable' protocol
9 |
10 | //// Response Bucket
11 | class FSBucket: Decodable {
| `- note: class 'FSBucket' does not conform to the 'Sendable' protocol
12 | let visitorConsolidation: Bool
13 | let campaigns: [FSBucketCampaign]
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:42:17: warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
10 | let SemaphoreTimeOut: TimeInterval = 2
11 |
12 | class FSBucketingManager: FSDecisionManager, FSPollingScriptDelegate {
| `- note: class 'FSBucketingManager' does not conform to the 'Sendable' protocol
13 | // var pollingScript: FSPollingScript?
14 | var _scriptBucket: FSBucket?
:
40 | set {
41 | fsQueue.async(flags: .barrier) {
42 | self._scriptError = newValue
| `- warning: capture of 'self' with non-sendable type 'FSBucketingManager' in a '@Sendable' closure
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:99:17: warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
68 |
69 | // Inspsired from : https://medium.com/over-engineering/a-background-repeating-timer-in-swift-412cecfd2ef9
70 | class FSRepeatingTimer {
| `- note: class 'FSRepeatingTimer' does not conform to the 'Sendable' protocol
71 | let fsQueue = DispatchQueue(label: "flagship.polling.queue", attributes: .concurrent)
72 |
:
97 | set {
98 | fsQueue.async(flags: .barrier) {
99 | self._timer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSRepeatingTimer' in a '@Sendable' closure
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:66:49: warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
64 | DispatchQueue.main.async {
65 | // Set the context before running the bucket algorithm
66 | self.targetManager.currentContext = currentContext
| |- warning: sending 'currentContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'currentContext' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
67 | self.targetManager.userId = self.userId
68 |
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSBucketingManager.swift:71:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | if let aScriptBucket = self.scriptBucket {
70 | let aCampaigns = self.bucketVariations(self.userId, aScriptBucket)
71 | completion(aCampaigns, self.scriptError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | } else {
73 | completion(nil, self.scriptError)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Decision/Bucketing/FSPollingScript.swift:84:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
82 | t.setEventHandler(handler: { [weak self] in
83 | DispatchQueue.main.async {
84 | self?.eventHandler?()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
85 | }
86 |
[64/88] Compiling Flagship Data+PrettyPrint.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[65/88] Compiling Flagship FSGenerator.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[66/88] Compiling Flagship FSTools.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[67/88] Compiling Flagship FlagShipVersion.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[68/88] Compiling Flagship decode-json-swift.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[69/88] Compiling Flagship murmurhash3.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[70/88] Compiling Flagship FSBatchManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[71/88] Compiling Flagship FSPoolQueue.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:17: warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: generic class 'FSQueue' does not conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQueue<T>' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSPoolQueue.swift:25:35: warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
9 | import Foundation
10 |
11 | class FSQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | private let queuePool = DispatchQueue(label: "batch.queue", attributes: .concurrent)
:
23 | set {
24 | queuePool.async(flags: .barrier) {
25 | self._listQueue = newValue
| `- warning: capture of 'newValue' with non-sendable type '[T]' in a '@Sendable' closure
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Tracking/Batch/FSBatchManager.swift:122:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
120 | // Batch Queue Start
121 | DispatchQueue.main.async {
122 | self.batchTimer?.suspend()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
123 | // Process the activate pool if is not empty
124 | if !self.activateQueue.isEmpty() {
[72/88] Compiling Flagship FSBatch.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[73/88] Compiling Flagship FSCacheHit.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[74/88] Compiling Flagship FSHits.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[75/88] Compiling Flagship FSSegment.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[76/88] Compiling Flagship FSTracking+Codable.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[77/88] Compiling Flagship FSTracking.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[78/88] Compiling Flagship FSBucketCache.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[79/88] Compiling Flagship FSQLiteWrapper.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
41 | }
42 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:40:42: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
38 | set {
39 | fs_db_queue.async(flags: .barrier) {
40 | self._db_opaquePointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
41 | }
42 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:17: warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
19 | }
20 |
21 | class FSQLiteWrapper {
| `- note: class 'FSQLiteWrapper' does not conform to the 'Sendable' protocol
22 | // Get the URL to db store file
23 | var flagship_db_URL: URL
:
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'self' with non-sendable type 'FSQLiteWrapper' in a '@Sendable' closure
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/Storage/FSQLiteWrapper.swift:53:37: warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
51 | set {
52 | fs_db_queue.async(flags: .barrier) {
53 | self._readPointer = newValue
| `- warning: capture of 'newValue' with non-sendable type 'OpaquePointer?' in a '@Sendable' closure
54 | }
55 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[80/88] Compiling Flagship FSConstant.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[81/88] Compiling Flagship FSService+Bucketing.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[82/88] Compiling Flagship FSService+Request.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[83/88] Compiling Flagship FSService.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[84/88] Compiling Flagship FSSettings.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[85/88] Compiling Flagship FSDevice.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[86/88] Compiling Flagship FlagshipContext.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[87/88] Compiling Flagship FlagshipContextManager.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
[88/88] Compiling Flagship FSCacheDelegate.swift
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:36:25: warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
34 | case 200:
35 | /// Manage last modified
36 | self.manageLastModified(httpResponse)
| `- warning: capture of 'self' with non-sendable type 'FSService' in a '@Sendable' closure
37 |
38 | if let responseData = data {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService.swift:10:7: note: class 'FSService' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class FSService {
| `- note: class 'FSService' does not conform to the 'Sendable' protocol
11 | /// clientId
12 | var envId: String
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Bucketing.swift:44:33: warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
42 |
43 | let scriptObject = try JSONDecoder().decode(FSBucket.self, from: responseData)
44 | onGetScript(scriptObject, nil)
| |- warning: capture of 'onGetScript' with non-sendable type '(FSBucket?, FlagshipError?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 |
46 | /// Save bucket script
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSService+Request.swift:55:21: warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
53 | DispatchQueue.main.async {
54 | if error != nil {
55 | onCompleted(nil, error)
| |- warning: capture of 'onCompleted' with non-sendable type '(Data?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | FSDataUsageTracking.sharedInstance.processTSHttpError(requestType: type, response as? HTTPURLResponse, request, data)
57 | } else {
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:27:21: warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
25 | if let aData = data {
26 | let accountSettingsObject = try JSONDecoder().decode(FSExtras.self, from: aData)
27 | completion(accountSettingsObject, nil)
| |- warning: capture of 'completion' with non-sendable type '(FSExtras?, (any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | // Update TroubleShooting
/Users/admin/builder/spi-builder-workspace/FlagShip/Source/API/FSSettings.swift:60:25: warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
58 | if httpResponse.statusCode == 204 {
59 | // Clean code later
60 | completion(nil, httpResponse.statusCode)
| |- warning: capture of 'completion' with non-sendable type '(String?, Int) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | } else if httpResponse.statusCode == 200 {
62 | do {
Build complete! (8.28s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Flagship",
"name" : "Flagship",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Flagship",
"targets" : [
"Flagship"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Flagship",
"module_type" : "SwiftTarget",
"name" : "Flagship",
"path" : "FlagShip/Source",
"product_memberships" : [
"Flagship"
],
"sources" : [
"API/FSConstant.swift",
"API/FSService+Bucketing.swift",
"API/FSService+Request.swift",
"API/FSService.swift",
"API/FSSettings.swift",
"Audience/FSDevice.swift",
"Audience/FlagshipContext.swift",
"Audience/FlagshipContextManager.swift",
"Cache/FSCacheDelegate.swift",
"Cache/FSCacheManager.swift",
"Cache/FSDefaultCache.swift",
"Configs/FSConfigManager.swift",
"Configs/FSTrackingManagerConfig.swift",
"Configs/FlagshipConfig.swift",
"Core/FSExposedFlag.swift",
"Core/FSFlagMetadata.swift",
"Core/FSStatus.swift",
"Core/FSVisitor+Campaigns.swift",
"Core/FSVisitor+EmotionAI.swift",
"Core/FSVisitor+Flags.swift",
"Core/FSVisitor+Reconcilliation.swift",
"Core/FSVisitor+objc.swift",
"Core/FSVisitor.swift",
"Core/FSVisitorBuilder.swift",
"Core/FSVisitorExposed.swift",
"Core/Flag/FSFlag+Additions.swift",
"Core/Flag/FSFlag.swift",
"Core/Flagship+EmotionAI.swift",
"Core/Flagship.swift",
"Decision/Bucketing/FSBucketingManager.swift",
"Decision/Bucketing/FSPollingScript.swift",
"Decision/Bucketing/FSTargetingManager.swift",
"Decision/FSDecisionManager.swift",
"FSEmotionAI/FSDataUsageTracking+EmotionAI.swift",
"FSEmotionAI/FSEmotionAI.swift",
"FSEmotionAI/FSEmotionEvent.swift",
"FSEmotionAI/FSEmotionPageView.swift",
"FSEmotionAI/FSPollingScore.swift",
"FSEmotionAI/FSWindow.swift",
"Logger/FSError.swift",
"Logger/FSLogManager.swift",
"Logger/FlagshipConstants.swift",
"Logger/FlagshipLogManager.swift",
"Models/FSAccountSettings.swift",
"Models/FSBucket.swift",
"Models/FSCacheVisitor.swift",
"Models/FSCampaign.swift",
"Models/FSCampaigns.swift",
"Models/FSContext.swift",
"Models/FSModification.swift",
"Models/FSModifications.swift",
"Models/FSTargets.swift",
"Models/FSTroubleshooting.swift",
"Models/Tracking/FSBatch.swift",
"Models/Tracking/FSCacheHit.swift",
"Models/Tracking/FSHits.swift",
"Models/Tracking/FSSegment.swift",
"Models/Tracking/FSTracking+Codable.swift",
"Models/Tracking/FSTracking.swift",
"Storage/FSBucketCache.swift",
"Storage/FSQLiteWrapper.swift",
"Storage/FSStorage.swift",
"Storage/FSStorageManager.swift",
"Storage/FSTrackingDbMgt.swift",
"Storage/FSVisitorDbMgt.swift",
"Strategy/FSDefaultStrategy.swift",
"Strategy/FSNoConsentStrategy.swift",
"Strategy/FSNotReadyStrategy.swift",
"Strategy/FSPanicStrategy.swift",
"Tools/Data+PrettyPrint.swift",
"Tools/FSGenerator.swift",
"Tools/FSTools.swift",
"Tools/FlagShipVersion.swift",
"Tools/decode-json-swift.swift",
"Tools/murmurhash3.swift",
"Tracking/Batch/FSBatchManager.swift",
"Tracking/Batch/FSPoolQueue.swift",
"Tracking/FSITrackingManager.swift",
"Tracking/FSTrackingManager.swift",
"Tracking/TrackingStrategies/FSContinuousTrackingManager.swift",
"Tracking/TrackingStrategies/FSPeriodicTrackingManager.swift",
"Troubleshooting/FSDataReportUsage.swift",
"Troubleshooting/FSDataUsageTracking+Criticals.swift",
"Troubleshooting/FSDataUsageTracking+Tools.swift",
"Troubleshooting/FSDataUsageTracking.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.