Build Information
Successful build of OpenfortSwift, reference main (a2297e), with Swift 6.2 for macOS (SPM) on 30 Sep 2026 10:14:48 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/openfort-xyz/swift-sdk.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/openfort-xyz/swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a2297e0 Merge pull request #19 from openfort-xyz/fix/oauth-bridge-redirect-url
Cloned https://github.com/openfort-xyz/swift-sdk.git
Revision (git rev-parse @):
a2297e03493e43f6149d35fa4883f9c2aa298cbf
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/openfort-xyz/swift-sdk.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/openfort-xyz/swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/10] Write sources
[3/10] Copying openfort.js
[4/10] Copying storage.js
[5/10] Copying index.html
[5/10] Copying openfort-sync.js
[5/10] Copying securestorage.js
[8/10] Copying utils.js
[9/10] Write swift-version--3CB7CFEC50E0D141.txt
[11/85] Emitting module OpenfortSwift
[12/93] Compiling OpenfortSwift OFSetRecoveryMethodParams.swift
[13/93] Compiling OpenfortSwift OFSignMessageParams.swift
[14/93] Compiling OpenfortSwift OFSignTypedDataParams.swift
[15/93] Compiling OpenfortSwift OFSignUpWithEmailPasswordParams.swift
[16/93] Compiling OpenfortSwift OFStoreCredentialsParams.swift
[17/93] Compiling OpenfortSwift OFUnlinkOAuthParams.swift
[18/93] Compiling OpenfortSwift OFUnlinkWalletParams.swift
[19/93] Compiling OpenfortSwift OFVerifyEmailOtpParams.swift
[20/93] Compiling OpenfortSwift OFInitOAuthResponse.swift
[21/93] Compiling OpenfortSwift OFInitSIWEResponse.swift
[22/93] Compiling OpenfortSwift OFLinkWalletResponse.swift
[23/93] Compiling OpenfortSwift OFListResponse.swift
[24/93] Compiling OpenfortSwift OFLoginWithIdTokenResponse.swift
[25/93] Compiling OpenfortSwift OFOAuthProvider.swift
[26/93] Compiling OpenfortSwift OFSessionResponse.swift
[27/93] Compiling OpenfortSwift OFSignUpResponse.swift
[28/93] Compiling OpenfortSwift OFPayLinkParams.swift
[29/93] Compiling OpenfortSwift OFRequestEmailOtpParams.swift
[30/93] Compiling OpenfortSwift OFRequestEmailVerificationParams.swift
[31/93] Compiling OpenfortSwift OFRequestPhoneOtpParams.swift
[32/93] Compiling OpenfortSwift OFRequestResetPasswordParams.swift
[33/93] Compiling OpenfortSwift OFResetPasswordParams.swift
[34/93] Compiling OpenfortSwift OFSendSignatureSessionRequestParams.swift
[35/93] Compiling OpenfortSwift OFSendTransactionSignatureRequestParams.swift
[36/93] Compiling OpenfortSwift OFAuthProvider.swift
[37/93] Compiling OpenfortSwift OFAuthorizationResponse.swift
[38/93] Compiling OpenfortSwift OFCodableSendable.swift
[39/93] Compiling OpenfortSwift OFEmbeddedState.swift
[40/93] Compiling OpenfortSwift OFFundingChain.swift
[41/93] Compiling OpenfortSwift OFFundingSession.swift
[42/93] Compiling OpenfortSwift OFGetUserInstanceResponse.swift
[43/93] Compiling OpenfortSwift OFInitLinkOAuthResponse.swift
[44/93] Compiling OpenfortSwift OFInitLinkSiweParams.swift
[45/93] Compiling OpenfortSwift OFInitOAuthParams.swift
[46/93] Compiling OpenfortSwift OFInitSIWEParams.swift
[47/93] Compiling OpenfortSwift OFLinkPhoneOtpParams.swift
[48/93] Compiling OpenfortSwift OFLinkWithSiweParams.swift
[49/93] Compiling OpenfortSwift OFLogInWithEmailOtpParams.swift
[50/93] Compiling OpenfortSwift OFLogInWithPhoneOtpParams.swift
[51/93] Compiling OpenfortSwift OFLoginWithIdTokenParams.swift
[52/93] Compiling OpenfortSwift OFLoginWithSiweParams.swift
[53/93] Compiling OpenfortSwift AnyCodable.swift
[54/93] Compiling OpenfortSwift OFAddEmailParams.swift
[55/93] Compiling OpenfortSwift OFAuthEmailPasswordParams.swift
[56/93] Compiling OpenfortSwift OFConfigureEmbeddedWalletDTO.swift
[57/93] Compiling OpenfortSwift OFEmbeddedAccountCreateParams.swift
[58/93] Compiling OpenfortSwift OFEmbeddedAccountRecoverParams.swift
[59/93] Compiling OpenfortSwift OFFundingPaymentMethodInput.swift
[60/93] Compiling OpenfortSwift OFGetEthereumProviderParams.swift
[61/93] Compiling OpenfortSwift OFInitLinkOAuthParams.swift
[62/93] Compiling OpenfortSwift OFEmbeddedWalletAccessable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[63/93] Compiling OpenfortSwift OFFundable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[64/93] Compiling OpenfortSwift OFMethods.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[65/93] Compiling OpenfortSwift OFOpenfortRootable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[66/93] Compiling OpenfortSwift OFProxible.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[67/93] Compiling OpenfortSwift OFUserAccessable.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[68/93] Compiling OpenfortSwift JSONValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[69/93] Compiling OpenfortSwift OFAddEmailResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
114 | onReady()
115 | }
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:114:13: warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
| |- warning: capture of 'onReady' with non-Sendable type '() -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:112:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:113:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
114 | onReady()
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: capture of 'okObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: capture of 'failObs' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:121:13: warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
121 | onFail(err)
| |- warning: capture of 'onFail' with non-Sendable type '(any Error) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:117:24: warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
| `- warning: reference to captured var 'okObs' in concurrently-executing code [#SendableClosureCaptures]
118 | if let f = failObs { center.removeObserver(f) }
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:118:24: warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- warning: reference to captured var 'failObs' in concurrently-executing code [#SendableClosureCaptures]
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:158:21: warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
156 | let isSuccess = userInfo["success"] as? Bool {
157 | if isSuccess {
158 | completion(.success(()))
| |- warning: capture of 'completion' with non-Sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
159 | } else {
160 | let msg = userInfo["errorMessage"] as? String
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:153:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
151 | var observer: NSObjectProtocol?
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: capture of 'observer' with non-Sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Applications/Xcode-26.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:218:25: warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
216 | if isSuccess {
217 | if let object = notification.object as? T {
218 | completion(.success(object))
| |- warning: capture of 'completion' with non-Sendable type '(Result<T?, any Error>) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | } else {
220 | completion(.success(nil))
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:212:26: warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
210 | var observer: NSObjectProtocol?
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- warning: reference to captured var 'observer' in concurrently-executing code [#SendableClosureCaptures]
213 |
214 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:111:15: warning: 'okObs' mutated after capture by sendable closure
107 | let readyName = Notification.Name("openfortReady")
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
| `- note: variable defined here
110 | var failObs: NSObjectProtocol?
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| | `- note: variable captured by sendable closure
| `- warning: 'okObs' mutated after capture by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
| `- note: capturing use
113 | if let f = failObs { center.removeObserver(f) }
114 | onReady()
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
112 | if let o = okObs { center.removeObserver(o) }
:
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| | `- note: variable captured by sendable closure
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
119 | let msg = (note.userInfo?["error"] as? String) ?? "Initialization failed"
120 | let err = NSError(domain: "OFInitialization", code: -1, userInfo: [NSLocalizedDescriptionKey: msg])
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:116:17: warning: 'failObs' mutated after capture by sendable closure
108 | let failName = Notification.Name("openfortInitError")
109 | var okObs: NSObjectProtocol?
110 | var failObs: NSObjectProtocol?
| `- note: variable defined here
111 | okObs = center.addObserver(forName: readyName, object: nil, queue: .main) { _ in
| `- note: variable captured by sendable closure
112 | if let o = okObs { center.removeObserver(o) }
113 | if let f = failObs { center.removeObserver(f) }
| `- note: capturing use
114 | onReady()
115 | }
116 | failObs = center.addObserver(forName: failName, object: nil, queue: .main) { note in
| `- warning: 'failObs' mutated after capture by sendable closure
117 | if let o = okObs { center.removeObserver(o) }
118 | if let f = failObs { center.removeObserver(f) }
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:152:18: warning: 'observer' mutated after capture by sendable closure
149 |
150 | let notificationName = Notification.Name(method)
151 | var observer: NSObjectProtocol?
| `- note: variable defined here
152 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
153 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
154 |
155 | if let userInfo = notification.userInfo,
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Protocols/OFOpenfortRootable.swift:211:18: warning: 'observer' mutated after capture by sendable closure
208 |
209 | let notificationName = Notification.Name(method)
210 | var observer: NSObjectProtocol?
| `- note: variable defined here
211 | observer = NotificationCenter.default.addObserver(forName: notificationName, object: nil, queue: .main) { notification in
| | `- note: variable captured by sendable closure
| `- warning: 'observer' mutated after capture by sendable closure
212 | if let obs = observer { NotificationCenter.default.removeObserver(obs) }
| `- note: capturing use
213 |
214 | if let userInfo = notification.userInfo,
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[70/93] Compiling OpenfortSwift OFSimpleResultResponse.swift
[71/93] Compiling OpenfortSwift OFTransactionResponse.swift
[72/93] Compiling OpenfortSwift OFUnlinkOAuthResponse.swift
[73/93] Compiling OpenfortSwift OFUnlinkWalletResponse.swift
[74/93] Compiling OpenfortSwift OFERC20.swift
[75/93] Compiling OpenfortSwift OFEVM.swift
[76/93] Compiling OpenfortSwift OpenfortEIP1193Provider.swift
[77/93] Compiling OpenfortSwift OFScriptMessageProcessor.swift
[78/93] Compiling OpenfortSwift OFVerifyEmailParams.swift
[79/93] Compiling OpenfortSwift OFErrorDomains.swift
[80/93] Compiling OpenfortSwift OFErrors.swift
[81/93] Compiling OpenfortSwift OFKeychainHelper.swift
[82/93] Compiling OpenfortSwift OFFunding.swift
[83/93] Compiling OpenfortSwift OFFundingChains.swift
[84/93] Compiling OpenfortSwift OFSDK.swift
[85/93] Compiling OpenfortSwift OFAuthorizable.swift
[86/93] Compiling OpenfortSwift OFStorageMessageProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[87/93] Compiling OpenfortSwift OFAuthReplyHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[88/93] Compiling OpenfortSwift OFBridgeKeepAlive.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[89/93] Compiling OpenfortSwift OFConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[90/93] Compiling OpenfortSwift OFScriptMessageHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[91/93] Compiling OpenfortSwift OFWebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[92/93] Compiling OpenfortSwift OFWebViewCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
[93/93] Compiling OpenfortSwift resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/WebView/OFBridgeKeepAlive.swift:30:32: warning: consider using asynchronous alternative function
28 | timer = Timer.scheduledTimer(withTimeInterval: Self.tickInterval, repeats: true) { [weak self] _ in
29 | Task { @MainActor in
30 | self?.webView?.evaluateJavaScript("0") { _, _ in }
| `- warning: consider using asynchronous alternative function
31 | }
32 | }
WebKit.WKWebView.evaluateJavaScript:2:22: note: 'evaluateJavaScript' declared here
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any?}
| `- note: 'evaluateJavaScript' declared here
3 |
Build complete! (28.61s)
Fetching https://github.com/apple/swift-docc-plugin.git
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.70s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.5.0 (4.52s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3832] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.08s)
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin.git"
}
],
"manifest_display_name" : "OpenfortSwift",
"name" : "OpenfortSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "OpenfortSwift",
"targets" : [
"OpenfortSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OpenfortSwiftTests",
"module_type" : "SwiftTarget",
"name" : "OpenfortSwiftTests",
"path" : "Tests/OpenfortSwiftTests",
"sources" : [
"OFFundingTests.swift",
"OFOAuthBridgeTests.swift",
"OFTransactionTests.swift",
"OpenfortSwiftTests.swift"
],
"target_dependencies" : [
"OpenfortSwift"
],
"type" : "test"
},
{
"c99name" : "OpenfortSwift",
"module_type" : "SwiftTarget",
"name" : "OpenfortSwift",
"path" : "Sources/OpenfortSwift",
"product_memberships" : [
"OpenfortSwift"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/index.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/openfort-sync.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/openfort.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/securestorage.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/storage.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/OpenfortSwift/Resources/utils.js",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AnyCodable/AnyCodable.swift",
"DTO/OFAddEmailParams.swift",
"DTO/OFAuthEmailPasswordParams.swift",
"DTO/OFConfigureEmbeddedWalletDTO.swift",
"DTO/OFEmbeddedAccountCreateParams.swift",
"DTO/OFEmbeddedAccountRecoverParams.swift",
"DTO/OFFundingPaymentMethodInput.swift",
"DTO/OFGetEthereumProviderParams.swift",
"DTO/OFInitLinkOAuthParams.swift",
"DTO/OFInitLinkSiweParams.swift",
"DTO/OFInitOAuthParams.swift",
"DTO/OFInitSIWEParams.swift",
"DTO/OFLinkPhoneOtpParams.swift",
"DTO/OFLinkWithSiweParams.swift",
"DTO/OFLogInWithEmailOtpParams.swift",
"DTO/OFLogInWithPhoneOtpParams.swift",
"DTO/OFLoginWithIdTokenParams.swift",
"DTO/OFLoginWithSiweParams.swift",
"DTO/OFPayLinkParams.swift",
"DTO/OFRequestEmailOtpParams.swift",
"DTO/OFRequestEmailVerificationParams.swift",
"DTO/OFRequestPhoneOtpParams.swift",
"DTO/OFRequestResetPasswordParams.swift",
"DTO/OFResetPasswordParams.swift",
"DTO/OFSendSignatureSessionRequestParams.swift",
"DTO/OFSendTransactionSignatureRequestParams.swift",
"DTO/OFSetRecoveryMethodParams.swift",
"DTO/OFSignMessageParams.swift",
"DTO/OFSignTypedDataParams.swift",
"DTO/OFSignUpWithEmailPasswordParams.swift",
"DTO/OFStoreCredentialsParams.swift",
"DTO/OFUnlinkOAuthParams.swift",
"DTO/OFUnlinkWalletParams.swift",
"DTO/OFVerifyEmailOtpParams.swift",
"DTO/OFVerifyEmailParams.swift",
"Errors/OFErrorDomains.swift",
"Errors/OFErrors.swift",
"Keychain/OFKeychainHelper.swift",
"OFFunding.swift",
"OFFundingChains.swift",
"OFSDK.swift",
"Protocols/OFAuthorizable.swift",
"Protocols/OFEmbeddedWalletAccessable.swift",
"Protocols/OFFundable.swift",
"Protocols/OFMethods.swift",
"Protocols/OFOpenfortRootable.swift",
"Protocols/OFProxible.swift",
"Protocols/OFUserAccessable.swift",
"ResponseModels/JSONValue.swift",
"ResponseModels/OFAddEmailResponse.swift",
"ResponseModels/OFAuthProvider.swift",
"ResponseModels/OFAuthorizationResponse.swift",
"ResponseModels/OFCodableSendable.swift",
"ResponseModels/OFEmbeddedState.swift",
"ResponseModels/OFFundingChain.swift",
"ResponseModels/OFFundingSession.swift",
"ResponseModels/OFGetUserInstanceResponse.swift",
"ResponseModels/OFInitLinkOAuthResponse.swift",
"ResponseModels/OFInitOAuthResponse.swift",
"ResponseModels/OFInitSIWEResponse.swift",
"ResponseModels/OFLinkWalletResponse.swift",
"ResponseModels/OFListResponse.swift",
"ResponseModels/OFLoginWithIdTokenResponse.swift",
"ResponseModels/OFOAuthProvider.swift",
"ResponseModels/OFSessionResponse.swift",
"ResponseModels/OFSignUpResponse.swift",
"ResponseModels/OFSimpleResultResponse.swift",
"ResponseModels/OFTransactionResponse.swift",
"ResponseModels/OFUnlinkOAuthResponse.swift",
"ResponseModels/OFUnlinkWalletResponse.swift",
"Utils/OFERC20.swift",
"Utils/OFEVM.swift",
"Utils/OpenfortEIP1193Provider.swift",
"WebView/MessageProcessors/OFScriptMessageProcessor.swift",
"WebView/MessageProcessors/OFStorageMessageProcessor.swift",
"WebView/OFAuthReplyHandler.swift",
"WebView/OFBridgeKeepAlive.swift",
"WebView/OFConfig.swift",
"WebView/OFScriptMessageHandler.swift",
"WebView/OFWebView.swift",
"WebView/OFWebViewCoordinator.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Done.