The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of PostHog, reference 3.36.1 (fa92f6), with Swift 6.1 for macOS (SPM) on 16 Dec 2025 13:00:33 UTC.

Swift 6 data race errors: 23

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

   |                |- warning: static property 'phNoMask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phNoMask' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phNoMask' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:14:16: warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
   |                |- warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phTagView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phTagView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:15:16: warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
   |                |- warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     static var phLabel: UInt8 = 0
17 | }
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:16:16: warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
   |                |- warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phLabel' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phLabel' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:33:5: warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | final class PostHogAPIDateFormatter {
   |             `- note: class 'PostHogAPIDateFormatter' does not conform to the 'Sendable' protocol
11 |     private static func getFormatter(with format: String) -> DateFormatter {
12 |         let dateFormatter = DateFormatter()
   :
31 | }
32 |
33 | let apiDateFormatter = PostHogAPIDateFormatter()
   |     |- warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'apiDateFormatter' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public func toISO8601String(_ date: Date) -> String {
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:43:5: warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | }
42 |
43 | var now: () -> Date = { Date() }
   |     |- warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'now' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'now' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
[191/203] Compiling PostHog DateUtils.swift
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:11:16: warning: static property 'phForwardingDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | enum AssociatedKeys {
11 |     static var phForwardingDelegate: UInt8 = 0
   |                |- warning: static property 'phForwardingDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phForwardingDelegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phForwardingDelegate' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:12:16: warning: static property 'phNoCapture' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | enum AssociatedKeys {
11 |     static var phForwardingDelegate: UInt8 = 0
12 |     static var phNoCapture: UInt8 = 0
   |                |- warning: static property 'phNoCapture' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phNoCapture' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phNoCapture' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:13:16: warning: static property 'phNoMask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |     static var phForwardingDelegate: UInt8 = 0
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
   |                |- warning: static property 'phNoMask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phNoMask' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phNoMask' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:14:16: warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
   |                |- warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phTagView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phTagView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:15:16: warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
   |                |- warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     static var phLabel: UInt8 = 0
17 | }
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:16:16: warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
   |                |- warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phLabel' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phLabel' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:33:5: warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | final class PostHogAPIDateFormatter {
   |             `- note: class 'PostHogAPIDateFormatter' does not conform to the 'Sendable' protocol
11 |     private static func getFormatter(with format: String) -> DateFormatter {
12 |         let dateFormatter = DateFormatter()
   :
31 | }
32 |
33 | let apiDateFormatter = PostHogAPIDateFormatter()
   |     |- warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'apiDateFormatter' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public func toISO8601String(_ date: Date) -> String {
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:43:5: warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | }
42 |
43 | var now: () -> Date = { Date() }
   |     |- warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'now' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'now' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
[192/203] Compiling PostHog DictUtils.swift
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:11:16: warning: static property 'phForwardingDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | enum AssociatedKeys {
11 |     static var phForwardingDelegate: UInt8 = 0
   |                |- warning: static property 'phForwardingDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phForwardingDelegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phForwardingDelegate' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:12:16: warning: static property 'phNoCapture' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | enum AssociatedKeys {
11 |     static var phForwardingDelegate: UInt8 = 0
12 |     static var phNoCapture: UInt8 = 0
   |                |- warning: static property 'phNoCapture' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phNoCapture' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phNoCapture' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:13:16: warning: static property 'phNoMask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |     static var phForwardingDelegate: UInt8 = 0
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
   |                |- warning: static property 'phNoMask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phNoMask' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phNoMask' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:14:16: warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     static var phNoCapture: UInt8 = 0
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
   |                |- warning: static property 'phTagView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phTagView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phTagView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:15:16: warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     static var phNoMask: UInt8 = 0
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
   |                |- warning: static property 'phView' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phView' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phView' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     static var phLabel: UInt8 = 0
17 | }
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/AssociatedKeys.swift:16:16: warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var phTagView: UInt8 = 0
15 |     static var phView: UInt8 = 0
16 |     static var phLabel: UInt8 = 0
   |                |- warning: static property 'phLabel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phLabel' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phLabel' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:33:5: warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | final class PostHogAPIDateFormatter {
   |             `- note: class 'PostHogAPIDateFormatter' does not conform to the 'Sendable' protocol
11 |     private static func getFormatter(with format: String) -> DateFormatter {
12 |         let dateFormatter = DateFormatter()
   :
31 | }
32 |
33 | let apiDateFormatter = PostHogAPIDateFormatter()
   |     |- warning: let 'apiDateFormatter' is not concurrency-safe because non-'Sendable' type 'PostHogAPIDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: add '@MainActor' to make let 'apiDateFormatter' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public func toISO8601String(_ date: Date) -> String {
/Users/admin/builder/spi-builder-workspace/PostHog/Utils/DateUtils.swift:43:5: warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | }
42 |
43 | var now: () -> Date = { Date() }
   |     |- warning: var 'now' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'now' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'now' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
[193/203] Compiling PostHog PostHogIntegration.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[194/203] Compiling PostHog PostHogLegacyQueue.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[195/203] Compiling PostHog PostHogPersonProfiles.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[196/203] Compiling PostHog PostHogPropertiesSanitizer.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[197/203] Compiling PostHog PostHogQueue.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[198/203] Compiling PostHog PostHogRemoteConfig.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[199/203] Compiling PostHog PostHogSDK.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[200/203] Compiling PostHog PostHogSessionManager.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[201/203] Compiling PostHog PostHogStorage.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[202/203] Compiling PostHog PostHogStorageManager.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
[203/203] Compiling PostHog PostHogSwizzler.swift
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:165:29: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
165 |                         if !self.isFlushing {
    |                             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
166 |                             self.flush()
167 |                         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:229:13: warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
227 |     private func take(_ count: Int, completion: @escaping (PostHogConsumerPayload) -> Void) {
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
    |             `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in a '@Sendable' closure
230 |                 if self.isFlushing {
231 |                     return
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:248:13: warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
246 |             }
247 |
248 |             completion(PostHogConsumerPayload(events: processing) { success in
    |             |- warning: capture of 'completion' with non-sendable type '(PostHogConsumerPayload) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:230:20: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
228 |         dispatchQueue.async {
229 |             self.isFlushingLock.withLock {
230 |                 if self.isFlushing {
    |                    `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
231 |                     return
232 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:250:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
248 |             completion(PostHogConsumerPayload(events: processing) { success in
249 |                 if success, items.count > 0 {
250 |                     self.fileQueue.pop(items.count)
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
251 |                     hedgeLog("Completed!")
252 |                 }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:255:21: warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
 18 |  */
 19 |
 20 | class PostHogQueue {
    |       `- note: class 'PostHogQueue' does not conform to the 'Sendable' protocol
 21 |     enum PostHogApiEndpoint: Int {
 22 |         case batch
    :
253 |
254 |                 self.isFlushingLock.withLock {
255 |                     self.isFlushing = false
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogQueue' in an isolated closure; this is an error in the Swift 6 language mode
256 |                 }
257 |             })
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:95:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
 93 |         }) {
 94 |             dispatchQueue.async {
 95 |                 self.reloadRemoteConfig { [weak self] remoteConfig in
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
 96 |                     guard let self else { return }
 97 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:130:17: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
128 |         if config.preloadFeatureFlags {
129 |             dispatchQueue.async {
130 |                 self.reloadFeatureFlags()
    |                 `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
131 |             }
132 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:284:39: warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
282 |             self.dispatchQueue.async {
283 |                 // Check for quota limitation first
284 |                 if let quotaLimited = data?["quotaLimited"] as? [String],
    |                                       `- warning: capture of 'data' with non-sendable type '[String : Any]?' in a '@Sendable' closure
285 |                    quotaLimited.contains("feature_flags")
286 |                 {
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:290:21: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
288 |                     hedgeLog("Warning: Feature flags quota limit reached - clearing all feature flags and payloads. See https://posthog.com/docs/billing/limits-alerts for more information.")
289 |
290 |                     self.clearFeatureFlags()
    |                     `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in a '@Sendable' closure
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:292:28: warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
290 |                     self.clearFeatureFlags()
291 |                     self.notifyFeatureFlagsAndRelease([:])
292 |                     return callback([:])
    |                            |- warning: capture of 'callback' with non-sendable type '([String : Any]?) -> Void' in a '@Sendable' closure
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
293 |                 }
294 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:327:25: warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | class PostHogRemoteConfig {
    |       `- note: class 'PostHogRemoteConfig' does not conform to the 'Sendable' protocol
 11 |     private let hasFeatureFlagsKey = "hasFeatureFlags"
 12 |
    :
325 |                     if let requestId {
326 |                         // Store the request ID in the storage.
327 |                         self.setCachedRequestId(requestId)
    |                         `- warning: capture of 'self' with non-sendable type 'PostHogRemoteConfig' in an isolated closure; this is an error in the Swift 6 language mode
328 |                     }
329 |
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:47:24: warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  45 |     private(set) var remoteConfig: PostHogRemoteConfig?
  46 |     private var context: PostHogContext?
  47 |     private static var apiKeys = Set<String>()
     |                        |- warning: static property 'apiKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apiKeys' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apiKeys' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  48 |     private var installedIntegrations: [PostHogIntegration] = []
  49 |     let sessionManager = PostHogSessionManager()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogSDK.swift:753:35: warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 751 |
 752 |     private func sanitizeProperties(_ properties: [String: Any]) -> [String: Any] {
 753 |         if let sanitizer = config.propertiesSanitizer {
     |                                   `- warning: 'propertiesSanitizer' is deprecated: Use beforeSend instead
 754 |             return sanitizer.sanitize(properties)
 755 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogQueue.swift:164:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |             timerLock.withLock {
163 |                 DispatchQueue.main.async {
164 |                     self.timer = Timer.scheduledTimer(withTimeInterval: self.config.flushIntervalSeconds, repeats: true, block: { _ in
    |                     |- 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
165 |                         if !self.isFlushing {
166 |                             self.flush()
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |             |- 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
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:398:40: warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
396 |     private func notifyFeatureFlags(_ featureFlags: [String: Any]?) {
397 |         DispatchQueue.main.async {
398 |             self.onFeatureFlagsLoaded?(featureFlags)
    |                                        |- warning: sending 'featureFlags' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'featureFlags' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
399 |             NotificationCenter.default.post(name: PostHogSDK.didReceiveFeatureFlags, object: nil)
400 |         }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                     |- 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
167 |                 }
168 |             }
/Users/admin/builder/spi-builder-workspace/PostHog/PostHogRemoteConfig.swift:166:48: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
164 |                 // notify
165 |                 DispatchQueue.main.async {
166 |                     self.onRemoteConfigLoaded?(config)
    |                                                |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |                 }
168 |             }
Build complete! (21.12s)
Fetching https://github.com/AliSoftware/OHHTTPStubs.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/7900] Fetching ohhttpstubs
[791/22759] Fetching ohhttpstubs, quick
[1019/42563] Fetching ohhttpstubs, quick, nimble
Fetched https://github.com/AliSoftware/OHHTTPStubs.git from cache (1.98s)
Fetched https://github.com/Quick/Nimble.git from cache (1.98s)
Fetched https://github.com/Quick/Quick.git from cache (1.98s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs.git
Computed https://github.com/AliSoftware/OHHTTPStubs.git at 9.1.0 (2.65s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 6.1.0 (0.80s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 12.3.0 (0.81s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.88s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.62s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[10/460] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.78s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.54s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 12.3.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 6.1.0
Creating working copy for https://github.com/AliSoftware/OHHTTPStubs.git
Working copy of https://github.com/AliSoftware/OHHTTPStubs.git resolved at 9.1.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.0",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "12.0.0",
            "upper_bound" : "13.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    },
    {
      "identity" : "ohhttpstubs",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "9.0.0",
            "upper_bound" : "10.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/AliSoftware/OHHTTPStubs.git"
    }
  ],
  "manifest_display_name" : "PostHog",
  "name" : "PostHog",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "PostHog",
      "targets" : [
        "PostHog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "phlibwebp",
      "module_type" : "ClangTarget",
      "name" : "phlibwebp",
      "path" : "vendor/libwebp",
      "product_memberships" : [
        "PostHog"
      ],
      "sources" : [
        "alpha_enc.c",
        "alpha_processing.c",
        "alpha_processing_neon.c",
        "alpha_processing_sse2.c",
        "alpha_processing_sse41.c",
        "analysis_enc.c",
        "backward_references_cost_enc.c",
        "backward_references_enc.c",
        "bit_reader_utils.c",
        "bit_writer_utils.c",
        "color_cache_utils.c",
        "config_enc.c",
        "cost.c",
        "cost_enc.c",
        "cost_neon.c",
        "cost_sse2.c",
        "cpu.c",
        "dec.c",
        "dec_clip_tables.c",
        "dec_neon.c",
        "dec_sse2.c",
        "dec_sse41.c",
        "enc.c",
        "enc_neon.c",
        "enc_sse2.c",
        "enc_sse41.c",
        "filter_enc.c",
        "filters.c",
        "filters_neon.c",
        "filters_sse2.c",
        "filters_utils.c",
        "frame_enc.c",
        "histogram_enc.c",
        "huffman_encode_utils.c",
        "huffman_utils.c",
        "iterator_enc.c",
        "lossless.c",
        "lossless_enc.c",
        "lossless_enc_neon.c",
        "lossless_enc_sse2.c",
        "lossless_enc_sse41.c",
        "lossless_neon.c",
        "lossless_sse2.c",
        "lossless_sse41.c",
        "muxedit.c",
        "muxinternal.c",
        "muxread.c",
        "near_lossless_enc.c",
        "palette.c",
        "picture_csp_enc.c",
        "picture_enc.c",
        "picture_psnr_enc.c",
        "picture_rescale_enc.c",
        "picture_tools_enc.c",
        "predictor_enc.c",
        "quant_enc.c",
        "quant_levels_dec_utils.c",
        "quant_levels_utils.c",
        "random_utils.c",
        "rescaler.c",
        "rescaler_neon.c",
        "rescaler_sse2.c",
        "rescaler_utils.c",
        "sharpyuv.c",
        "sharpyuv_cpu.c",
        "sharpyuv_csp.c",
        "sharpyuv_dsp.c",
        "sharpyuv_gamma.c",
        "sharpyuv_neon.c",
        "sharpyuv_sse2.c",
        "ssim.c",
        "ssim_sse2.c",
        "syntax_enc.c",
        "thread_utils.c",
        "token_enc.c",
        "tree_enc.c",
        "upsampling.c",
        "upsampling_neon.c",
        "upsampling_sse2.c",
        "upsampling_sse41.c",
        "utils.c",
        "vp8l_enc.c",
        "webp_enc.c",
        "yuv.c",
        "yuv_neon.c",
        "yuv_sse2.c",
        "yuv_sse41.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PostHogTests",
      "module_type" : "SwiftTarget",
      "name" : "PostHogTests",
      "path" : "PostHogTests",
      "product_dependencies" : [
        "Quick",
        "Nimble",
        "OHHTTPStubs",
        "OHHTTPStubsSwift"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_remote_config.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_basic.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_end.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_next.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_response_based.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_response_based_empty.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_response_based_linkert.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_branching_specific.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_conditions_device_type.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_conditions_event.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_conditions_event_repeated.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_conditions_url.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_question_basic.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_question_link.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_question_multiple_choice.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_question_rating.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_question_single_choice.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_unknown_question_type.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_unknown_type.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_exact.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_icontains.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_is_not.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_not_icontains.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_not_regex.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/fixture_survey_url_match_type_regex.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/input_1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/input_2.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/input_3.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/output_1.webp",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/output_2.webp",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHogTests/Resources/output_3.webp",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "ApplicationViewLayoutPublisherTest.swift",
        "ExampleSanitizer.swift",
        "PostHogApiTest.swift",
        "PostHogAppLifeCycleIntegrationTest.swift",
        "PostHogAutocaptureEventTrackerSpec.swift",
        "PostHogAutocaptureIntegrationSpec.swift",
        "PostHogConfigTest.swift",
        "PostHogContextTest.swift",
        "PostHogFeatureFlagsTest.swift",
        "PostHogFeatureFlagsV3Test.swift",
        "PostHogFileBackedQueueTest.swift",
        "PostHogIdentityTests.swift",
        "PostHogIntegrationInstallationTest.swift",
        "PostHogLegacyQueueTest.swift",
        "PostHogQueueTest.swift",
        "PostHogRemoteConfigTest.swift",
        "PostHogSDKPersonProfilesTest.swift",
        "PostHogSDKTest.swift",
        "PostHogScreenViewIntegrationTest.swift",
        "PostHogSessionManagerTest.swift",
        "PostHogSessionReplayTest.swift",
        "PostHogStorageManagerTest.swift",
        "PostHogStorageMergeTest.swift",
        "PostHogStorageMigrationTest.swift",
        "PostHogStorageTest.swift",
        "PostHogSurveyEnumsTest.swift",
        "PostHogSurveyEventsTest.swift",
        "PostHogSurveysTest.swift",
        "PostHogWebPTest.swift",
        "TestUtils/MockApplicationLifecyclePublisher.swift",
        "TestUtils/MockPostHogServer.swift",
        "TestUtils/MockScreenViewPublisher.swift",
        "TestUtils/TestError.swift",
        "TestUtils/TestPostHog.swift",
        "TestUtils/URLSession+body.swift",
        "UUIDTest.swift",
        "UtilsTest.swift"
      ],
      "target_dependencies" : [
        "PostHog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PostHog",
      "module_type" : "SwiftTarget",
      "name" : "PostHog",
      "path" : "PostHog",
      "product_memberships" : [
        "PostHog"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PostHog/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "App Life Cycle/ApplicationLifecyclePublisher.swift",
        "App Life Cycle/PostHogAppLifeCycleIntegration.swift",
        "ApplicationViewLayoutPublisher.swift",
        "Autocapture/AutocaptureEventProcessing.swift",
        "Autocapture/ForwardingPickerViewDelegate.swift",
        "Autocapture/PostHogAutocaptureEventTracker.swift",
        "Autocapture/PostHogAutocaptureIntegration.swift",
        "Autocapture/SwiftUI/View+PostHogLabel.swift",
        "Autocapture/UIView+PostHogLabel.swift",
        "DI.swift",
        "Models/PostHogEvent.swift",
        "Models/Surveys/PostHogSurvey+Display.swift",
        "Models/Surveys/PostHogSurvey.swift",
        "Models/Surveys/PostHogSurveyAppearance.swift",
        "Models/Surveys/PostHogSurveyConditions.swift",
        "Models/Surveys/PostHogSurveyEnums.swift",
        "Models/Surveys/PostHogSurveyQuestion.swift",
        "PostHogApi.swift",
        "PostHogBatchUploadInfo.swift",
        "PostHogConfig.swift",
        "PostHogConsumerPayload.swift",
        "PostHogContext.swift",
        "PostHogExtensions.swift",
        "PostHogFileBackedQueue.swift",
        "PostHogIntegration.swift",
        "PostHogLegacyQueue.swift",
        "PostHogPersonProfiles.swift",
        "PostHogPropertiesSanitizer.swift",
        "PostHogQueue.swift",
        "PostHogRemoteConfig.swift",
        "PostHogSDK.swift",
        "PostHogSessionManager.swift",
        "PostHogStorage.swift",
        "PostHogStorageManager.swift",
        "PostHogSwizzler.swift",
        "PostHogVersion.swift",
        "Replay/ApplicationEventPublisher.swift",
        "Replay/CGColor+Util.swift",
        "Replay/CGSize+Util.swift",
        "Replay/Date+Util.swift",
        "Replay/Float+Util.swift",
        "Replay/MethodSwizzler.swift",
        "Replay/NetworkSample.swift",
        "Replay/Optional+Util.swift",
        "Replay/Plugins/Console Logs/PostHogConsoleLogInterceptor.swift",
        "Replay/Plugins/Console Logs/PostHogLogEntry.swift",
        "Replay/Plugins/Console Logs/PostHogLogLevel.swift",
        "Replay/Plugins/Console Logs/PostHogSessionReplayConsoleLogsPlugin.swift",
        "Replay/Plugins/Network/PostHogSessionReplayNetworkPlugin.swift",
        "Replay/Plugins/Network/URLSessionExtension.swift",
        "Replay/Plugins/Network/URLSessionInterceptor.swift",
        "Replay/Plugins/Network/URLSessionSwizzler.swift",
        "Replay/Plugins/PostHogSessionReplayPlugin.swift",
        "Replay/PostHogReplayIntegration.swift",
        "Replay/PostHogSessionReplayConfig.swift",
        "Replay/PostHogSessionReplayConsoleLogConfig.swift",
        "Replay/RRStyle.swift",
        "Replay/RRWireframe.swift",
        "Replay/String+Util.swift",
        "Replay/UIColor+Util.swift",
        "Replay/UIImage+Util.swift",
        "Replay/UITextInputTraits+Util.swift",
        "Replay/UIView+Util.swift",
        "Replay/ViewTreeSnapshotStatus.swift",
        "Screen Views/ApplicationScreenViewPublisher.swift",
        "Screen Views/PostHogScreenViewIntegration.swift",
        "Surveys/BottomSection.swift",
        "Surveys/ConfirmationMessage.swift",
        "Surveys/Models/PostHogDisplaySurvey.swift",
        "Surveys/Models/PostHogDisplaySurveyAppearance.swift",
        "Surveys/Models/PostHogDisplaySurveyQuestion.swift",
        "Surveys/Models/PostHogNextSurveyQuestion.swift",
        "Surveys/Models/PostHogSurveyResponse.swift",
        "Surveys/PostHogSurveyIntegration.swift",
        "Surveys/PostHogSurveysConfig.swift",
        "Surveys/PostHogSurveysDefaultDelegate.swift",
        "Surveys/QuestionHeader.swift",
        "Surveys/QuestionTypes.swift",
        "Surveys/SurveyDisplayController.swift",
        "Surveys/SurveySheet.swift",
        "Surveys/SurveysRootView.swift",
        "Surveys/SurveysWindow.swift",
        "Surveys/Utils/EdgeBorder.swift",
        "Surveys/Utils/EmojiRating.swift",
        "Surveys/Utils/MultipleChoiceOptions.swift",
        "Surveys/Utils/NumberRating.swift",
        "Surveys/Utils/Resources.swift",
        "Surveys/Utils/SegmentedControl.swift",
        "Surveys/Utils/Survey+Util.swift",
        "Surveys/Utils/SurveyButton.swift",
        "Surveys/Utils/SurveyPresentationDetentsRepresentable.swift",
        "Surveys/Utils/SwiftUI+Util.swift",
        "SwiftUI/PostHogMaskViewModifier.swift",
        "SwiftUI/PostHogNoMaskViewModifier.swift",
        "SwiftUI/PostHogSwiftUIViewModifiers.swift",
        "SwiftUI/PostHogTagViewModifier.swift",
        "UIViewController.swift",
        "Utils/AssociatedKeys.swift",
        "Utils/Data+Gzip.swift",
        "Utils/DateUtils.swift",
        "Utils/DictUtils.swift",
        "Utils/Errors.swift",
        "Utils/FileUtils.swift",
        "Utils/Hedgelog.swift",
        "Utils/Reachability.swift",
        "Utils/ReadWriteLock.swift",
        "Utils/TimeBasedEpochGenerator.swift",
        "Utils/UIApplication+.swift",
        "Utils/UIImage+WebP.swift",
        "Utils/UIWindow+.swift",
        "Utils/UUIDUtils.swift"
      ],
      "target_dependencies" : [
        "phlibwebp"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.