Build Information
Failed to build KindeSDK, reference main (55f4b7), with Swift 6.1 for macOS (SPM) on 24 Mar 2026 03:04:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
290 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|277 |
|278 |
|279 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
280 | Task {
281 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:325:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
:
323 | let request = try await self.getAuthorizationRequest(signUp: false, orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
324 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
325 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
326 | } catch {
327 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|314 |
|315 |
|316 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:361:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
:
359 | let request = try await self.getAuthorizationRequest(signUp: true, createOrg: true, orgName: orgName, connectionId: connectionId)
360 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
361 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | } catch {
363 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|350 |
|351 |
|352 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:19: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|414 |
|415 |
|416 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|514 |
|515 |
|516 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:704:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
702 | if let error = error1 {
703 | self.logger.error(message: "Failed to get authentication tokens: \(error.localizedDescription)")
704 | return continuation.resume(with: .failure(error))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
705 | }
706 |
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:709:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
707 | guard let accessToken1 = accessToken else {
708 | self.logger.error(message: "Failed to get access token")
709 | return continuation.resume(with: .failure(AuthError.notAuthenticated))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:712:30: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
712 | continuation.resume(with: .success(tokens))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
713 | }, additionalRefreshParameters: params)
714 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|698 |
|699 |
|700 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:759:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
755 | // Wrapper Methods
756 |
757 | public func getBooleanFlag(code: String, defaultValue: Bool? = nil, options: ApiOptions) async throws -> Bool? {
| `- note: add @available attribute to enclosing instance method
758 | if options.forceApi {
759 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
760 | guard response.success else {
761 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:794:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
790 | }
791 |
792 | public func getStringFlag(code: String, defaultValue: String? = nil, options: ApiOptions) async throws -> String? {
| `- note: add @available attribute to enclosing instance method
793 | if options.forceApi {
794 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
795 | guard response.success else {
796 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:829:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
825 | }
826 |
827 | public func getIntegerFlag(code: String, defaultValue: Int? = nil, options: ApiOptions) async throws -> Int? {
| `- note: add @available attribute to enclosing instance method
828 | if options.forceApi {
829 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
830 | guard response.success else {
831 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:869:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
865 | /// - Parameter options: Optional API options. Use ApiOptions(forceApi: true) to fetch fresh data from API
866 | /// - Returns: Map of flag codes to Flag objects
867 | public func getAllFlags(options: ApiOptions? = nil) async throws -> [String: Flag] {
| `- note: add @available attribute to enclosing instance method
868 | if options?.forceApi == true {
869 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
870 | guard response.success else {
871 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1099:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1065 | /// - Returns: EntitlementsResponse with pagination metadata
1066 | /// - Throws: AuthError if not authenticated or network error
1067 | public func fetchEntitlements(pageSize: Int? = nil, startingAfter: String? = nil) async throws -> EntitlementsResponse {
| `- note: add @available attribute to enclosing instance method
1068 | guard auth.isAuthenticated() else {
1069 | throw AuthError.notAuthenticated
:
1097 |
1098 |
1099 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1100 |
1101 | guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1140:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1120 | /// - Returns: EntitlementResponse with the entitlement data
1121 | /// - Throws: AuthError if not authenticated or network error
1122 | public func fetchEntitlement() async throws -> EntitlementResponse {
| `- note: add @available attribute to enclosing instance method
1123 | guard auth.isAuthenticated() else {
1124 | throw AuthError.notAuthenticated
:
1138 |
1139 |
1140 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1141 |
1142 | guard let httpResponse = response as? HTTPURLResponse else {
[42/53] Compiling KindeSDK RolesAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:99:53: error: 'getPermissions()' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
95 | }
96 |
97 | public func getPermissions(options: ApiOptions) async throws -> Permissions {
| `- note: add @available attribute to enclosing instance method
98 | if options.forceApi {
99 | let response = try await PermissionsAPI.getPermissions()
| |- error: 'getPermissions()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | guard response.success, let data = response.data else {
101 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Failed to fetch permissions from API - check network and authentication"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:161:47: error: 'getRoles()' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
157 | }
158 |
159 | public func getRoles(options: ApiOptions) async throws -> Roles {
| `- note: add @available attribute to enclosing instance method
160 | if options.forceApi {
161 | let response = try await RolesAPI.getRoles()
| |- error: 'getRoles()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | guard response.success, let data = response.data else {
163 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Failed to fetch roles from API - check network and authentication"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:264:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
262 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "",
263 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
264 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:264:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
262 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "",
263 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
264 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:267:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
267 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | completion(.success(true))
269 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:267:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
267 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | completion(.success(true))
269 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:271:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
269 | })
270 | } catch {
271 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | completion(.failure(error))
273 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:271:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
269 | })
270 | } catch {
271 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | completion(.failure(error))
273 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | Task {
281 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:280:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
281 | guard let viewController = await self.getViewController() else {
282 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:280:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
281 | guard let viewController = await self.getViewController() else {
282 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:288:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
:
286 | let request = try await self.getAuthorizationRequest(signUp: true, orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
287 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
288 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
289 | } catch {
290 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|277 |
|278 |
|279 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
280 | Task {
281 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:325:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
:
323 | let request = try await self.getAuthorizationRequest(signUp: false, orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
324 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
325 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
326 | } catch {
327 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|314 |
|315 |
|316 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:361:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
:
359 | let request = try await self.getAuthorizationRequest(signUp: true, createOrg: true, orgName: orgName, connectionId: connectionId)
360 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
361 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | } catch {
363 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|350 |
|351 |
|352 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:19: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|414 |
|415 |
|416 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|514 |
|515 |
|516 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:704:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
702 | if let error = error1 {
703 | self.logger.error(message: "Failed to get authentication tokens: \(error.localizedDescription)")
704 | return continuation.resume(with: .failure(error))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
705 | }
706 |
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:709:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
707 | guard let accessToken1 = accessToken else {
708 | self.logger.error(message: "Failed to get access token")
709 | return continuation.resume(with: .failure(AuthError.notAuthenticated))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:712:30: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
712 | continuation.resume(with: .success(tokens))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
713 | }, additionalRefreshParameters: params)
714 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|698 |
|699 |
|700 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:759:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
755 | // Wrapper Methods
756 |
757 | public func getBooleanFlag(code: String, defaultValue: Bool? = nil, options: ApiOptions) async throws -> Bool? {
| `- note: add @available attribute to enclosing instance method
758 | if options.forceApi {
759 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
760 | guard response.success else {
761 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:794:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
790 | }
791 |
792 | public func getStringFlag(code: String, defaultValue: String? = nil, options: ApiOptions) async throws -> String? {
| `- note: add @available attribute to enclosing instance method
793 | if options.forceApi {
794 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
795 | guard response.success else {
796 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:829:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
825 | }
826 |
827 | public func getIntegerFlag(code: String, defaultValue: Int? = nil, options: ApiOptions) async throws -> Int? {
| `- note: add @available attribute to enclosing instance method
828 | if options.forceApi {
829 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
830 | guard response.success else {
831 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:869:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
865 | /// - Parameter options: Optional API options. Use ApiOptions(forceApi: true) to fetch fresh data from API
866 | /// - Returns: Map of flag codes to Flag objects
867 | public func getAllFlags(options: ApiOptions? = nil) async throws -> [String: Flag] {
| `- note: add @available attribute to enclosing instance method
868 | if options?.forceApi == true {
869 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
870 | guard response.success else {
871 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1099:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1065 | /// - Returns: EntitlementsResponse with pagination metadata
1066 | /// - Throws: AuthError if not authenticated or network error
1067 | public func fetchEntitlements(pageSize: Int? = nil, startingAfter: String? = nil) async throws -> EntitlementsResponse {
| `- note: add @available attribute to enclosing instance method
1068 | guard auth.isAuthenticated() else {
1069 | throw AuthError.notAuthenticated
:
1097 |
1098 |
1099 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1100 |
1101 | guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1140:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1120 | /// - Returns: EntitlementResponse with the entitlement data
1121 | /// - Throws: AuthError if not authenticated or network error
1122 | public func fetchEntitlement() async throws -> EntitlementResponse {
| `- note: add @available attribute to enclosing instance method
1123 | guard auth.isAuthenticated() else {
1124 | throw AuthError.notAuthenticated
:
1138 |
1139 |
1140 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1141 |
1142 | guard let httpResponse = response as? HTTPURLResponse else {
[43/53] Compiling KindeSDK Auth.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:99:53: error: 'getPermissions()' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
95 | }
96 |
97 | public func getPermissions(options: ApiOptions) async throws -> Permissions {
| `- note: add @available attribute to enclosing instance method
98 | if options.forceApi {
99 | let response = try await PermissionsAPI.getPermissions()
| |- error: 'getPermissions()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | guard response.success, let data = response.data else {
101 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Failed to fetch permissions from API - check network and authentication"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:161:47: error: 'getRoles()' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
157 | }
158 |
159 | public func getRoles(options: ApiOptions) async throws -> Roles {
| `- note: add @available attribute to enclosing instance method
160 | if options.forceApi {
161 | let response = try await RolesAPI.getRoles()
| |- error: 'getRoles()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | guard response.success, let data = response.data else {
163 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Failed to fetch roles from API - check network and authentication"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:264:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
262 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "",
263 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
264 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:264:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
262 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "",
263 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
264 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:267:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
267 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | completion(.success(true))
269 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:267:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
265 | do {
266 | try await register(orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
267 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | completion(.success(true))
269 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:271:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
269 | })
270 | } catch {
271 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | completion(.failure(error))
273 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:271:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
269 | })
270 | } catch {
271 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | completion(.failure(error))
273 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | Task {
281 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:280:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
281 | guard let viewController = await self.getViewController() else {
282 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:280:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
281 | guard let viewController = await self.getViewController() else {
282 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:288:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
280 | Task {
:
286 | let request = try await self.getAuthorizationRequest(signUp: true, orgCode: orgCode, loginHint: loginHint, planInterest: planInterest, pricingTableKey: pricingTableKey, connectionId: connectionId)
287 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
288 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
289 | } catch {
290 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:279:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
276 | }
277 |
278 | public func register(orgCode: String = "", loginHint: String = "", planInterest: String = "", pricingTableKey: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
279 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|277 |
|278 |
|279 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
280 | Task {
281 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:301:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
299 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "",
300 | _ completion: @escaping (Result<Bool, Error>) -> Void) {
301 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:304:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
302 | do {
303 | try await login(orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
304 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | completion(.success(true))
306 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:308:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
306 | })
307 | } catch {
308 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | completion(.failure(error))
310 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:317:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | guard let viewController = await self.getViewController() else {
319 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:325:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
317 | Task {
:
323 | let request = try await self.getAuthorizationRequest(signUp: false, orgCode: orgCode, loginHint: loginHint, connectionId: connectionId)
324 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
325 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
326 | } catch {
327 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:316:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
313 | }
314 |
315 | public func login(orgCode: String = "", loginHint: String = "", connectionId: String = "" ) async throws -> () {
| `- note: add @available attribute to enclosing instance method
316 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|314 |
|315 |
|316 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
317 | Task {
318 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:337:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
335 | @available(*, renamed: "createOrg")
336 | public func createOrg(connectionId: String = "", _ completion: @escaping (Result<Bool, Error>) -> Void) {
337 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | do {
339 | try await createOrg(connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:340:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
338 | do {
339 | try await createOrg(connectionId: connectionId)
340 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | completion(.success(true))
342 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:23: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:344:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
342 | })
343 | } catch {
344 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | completion(.failure(error))
346 | })
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:353:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | guard let viewController = await self.getViewController() else {
355 | continuation.resume(throwing: AuthError.notAuthenticated)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:361:34: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
353 | Task {
:
359 | let request = try await self.getAuthorizationRequest(signUp: true, createOrg: true, orgName: orgName, connectionId: connectionId)
360 | _ = try await self.runCurrentAuthorizationFlow(request: request, viewController: viewController)
361 | continuation.resume(with: .success(()))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | } catch {
363 | continuation.resume(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:352:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
349 | }
350 |
351 | public func createOrg(orgName: String = "", connectionId: String = "") async throws -> () {
| `- note: add @available attribute to enclosing instance method
352 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|350 |
|351 |
|352 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
353 | Task {
354 | guard let viewController = await self.getViewController() else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:372:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
370 | @available(*, renamed: "logout()")
371 | public func logout(_ completion: @escaping (_ result: Bool) -> Void) {
372 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | let result = await logout()
374 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:19: error: 'MainActor' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:374:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
372 | Task {
373 | let result = await logout()
374 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | completion(result)
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:396:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
394 | connectionId: String = "",
395 | then completion: @escaping (Result<OIDAuthorizationRequest, Error>) -> Void) {
396 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | do {
398 | let request = try await self.getAuthorizationRequest(signUp: signUp, createOrg: createOrg, orgCode: orgCode, usePKCE: usePKCE, useNonce: useNonce, connectionId: connectionId)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:417:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
417 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | let issuerUrl = config.getIssuerUrl()
419 | guard let issuerUrl = issuerUrl else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:416:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
404 | }
405 |
406 | private func getAuthorizationRequest(signUp: Bool,
| `- note: add @available attribute to enclosing instance method
407 | createOrg: Bool = false,
408 | orgCode: String = "",
:
414 | pricingTableKey: String = "",
415 | connectionId: String = "") async throws -> OIDAuthorizationRequest {
416 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|414 |
|415 |
|416 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
417 | Task {
418 | let issuerUrl = config.getIssuerUrl()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:516:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
503 | #endif
504 |
505 | private func discoverConfiguration(issuerUrl: URL,
| `- note: add @available attribute to enclosing instance method
506 | signUp: Bool,
507 | createOrg: Bool = false,
:
514 | pricingTableKey: String = "",
515 | connectionId: String = "") async throws -> (OIDAuthorizationRequest) {
516 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|514 |
|515 |
|516 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
517 | OIDAuthorizationService.discoverConfiguration(forIssuer: issuerUrl) { configuration, error in
518 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'Task' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:680:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
678 | @available(*, renamed: "performWithFreshTokens()")
679 | func performWithFreshTokens(_ action: @escaping (Result<Tokens, Error>) -> Void) {
680 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | do {
682 | if let result = try await performWithFreshTokens() {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:704:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
702 | if let error = error1 {
703 | self.logger.error(message: "Failed to get authentication tokens: \(error.localizedDescription)")
704 | return continuation.resume(with: .failure(error))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
705 | }
706 |
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:709:41: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
707 | guard let accessToken1 = accessToken else {
708 | self.logger.error(message: "Failed to get access token")
709 | return continuation.resume(with: .failure(AuthError.notAuthenticated))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:712:30: error: 'resume(with:)' is only available in macOS 10.15 or newer
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
710 | }
711 | let tokens = Tokens(accessToken: accessToken1, idToken: idToken)
712 | continuation.resume(with: .success(tokens))
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
713 | }, additionalRefreshParameters: params)
714 | }
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:700:58: note: expanded code originates here
7 | /// The Kinde authentication service
8 | @available(iOS 13.0, *)
9 | public final class Auth {
| `- note: add @available attribute to enclosing class
10 | @Atomic private var currentAuthorizationFlow: OIDExternalUserAgentSession?
11 |
:
691 | }
692 |
693 | func performWithFreshTokens() async throws -> Tokens? {
| `- note: add @available attribute to enclosing instance method
694 | guard let authState = authStateRepository.state else {
695 | self.logger.error(message: "Failed to get authentication state")
:
698 |
699 | let params = ["Kinde-SDK": "Swift/\(SDKVersion.versionString)"]
700 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift
|698 |
|699 |
|700 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------
701 | authState.performAction(freshTokens: { (accessToken, idToken, error1) in
702 | if let error = error1 {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:759:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
755 | // Wrapper Methods
756 |
757 | public func getBooleanFlag(code: String, defaultValue: Bool? = nil, options: ApiOptions) async throws -> Bool? {
| `- note: add @available attribute to enclosing instance method
758 | if options.forceApi {
759 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
760 | guard response.success else {
761 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:794:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
790 | }
791 |
792 | public func getStringFlag(code: String, defaultValue: String? = nil, options: ApiOptions) async throws -> String? {
| `- note: add @available attribute to enclosing instance method
793 | if options.forceApi {
794 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
795 | guard response.success else {
796 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:829:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
825 | }
826 |
827 | public func getIntegerFlag(code: String, defaultValue: Int? = nil, options: ApiOptions) async throws -> Int? {
| `- note: add @available attribute to enclosing instance method
828 | if options.forceApi {
829 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
830 | guard response.success else {
831 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:869:54: error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
747 |
748 | // MARK: - Feature Flags
749 | extension Auth {
| `- note: add @available attribute to enclosing extension
750 |
751 | public func getFlag(code: String, defaultValue: Any? = nil, flagType: Flag.ValueType? = nil) throws -> Flag {
:
865 | /// - Parameter options: Optional API options. Use ApiOptions(forceApi: true) to fetch fresh data from API
866 | /// - Returns: Map of flag codes to Flag objects
867 | public func getAllFlags(options: ApiOptions? = nil) async throws -> [String: Flag] {
| `- note: add @available attribute to enclosing instance method
868 | if options?.forceApi == true {
869 | let response = try await FeatureFlagsAPI.getFeatureFlags()
| |- error: 'getFeatureFlags()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
870 | guard response.success else {
871 | throw NSError(domain: "KindeSDK", code: -1, userInfo: [NSLocalizedDescriptionKey: "Feature flags API returned success: false"])
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1099:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1065 | /// - Returns: EntitlementsResponse with pagination metadata
1066 | /// - Throws: AuthError if not authenticated or network error
1067 | public func fetchEntitlements(pageSize: Int? = nil, startingAfter: String? = nil) async throws -> EntitlementsResponse {
| `- note: add @available attribute to enclosing instance method
1068 | guard auth.isAuthenticated() else {
1069 | throw AuthError.notAuthenticated
:
1097 |
1098 |
1099 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1100 |
1101 | guard let httpResponse = response as? HTTPURLResponse else {
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Auth/Auth.swift:1140:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
1005 | /// Service for managing user entitlements with type-safe API
1006 | @available(iOS 13.0, *)
1007 | public class EntitlementsService {
| `- note: add @available attribute to enclosing class
1008 | private unowned let auth: Auth
1009 | private let logger: LoggerProtocol
:
1120 | /// - Returns: EntitlementResponse with the entitlement data
1121 | /// - Throws: AuthError if not authenticated or network error
1122 | public func fetchEntitlement() async throws -> EntitlementResponse {
| `- note: add @available attribute to enclosing instance method
1123 | guard auth.isAuthenticated() else {
1124 | throw AuthError.notAuthenticated
:
1138 |
1139 |
1140 | let (data, response) = try await URLSession.shared.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
1141 |
1142 | guard let httpResponse = response as? HTTPURLResponse else {
[44/53] Compiling KindeSDK Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/Extensions.swift:105:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
103 | }
104 |
105 | extension String: CodingKey {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
106 |
107 | public var stringValue: String {
[45/53] Compiling KindeSDK JSONDataEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/Extensions.swift:105:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
103 | }
104 |
105 | extension String: CodingKey {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
106 |
107 | public var stringValue: String {
[46/53] Compiling KindeSDK JSONEncodingHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/Extensions.swift:105:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
103 | }
104 |
105 | extension String: CodingKey {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
106 |
107 | public var stringValue: String {
[47/53] Compiling KindeSDK Keychain.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/Extensions.swift:105:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
103 | }
104 |
105 | extension String: CodingKey {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
106 |
107 | public var stringValue: String {
[48/53] Compiling KindeSDK Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/Extensions.swift:105:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
103 | }
104 |
105 | extension String: CodingKey {
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'CodingKey'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
106 |
107 | public var stringValue: String {
[49/53] Compiling KindeSDK OpenISO8601DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/OpenISO8601DateFormatter.swift:11:7: warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
9 |
10 | // https://stackoverflow.com/a/50281094/976628
11 | class OpenISO8601DateFormatter: DateFormatter {
| `- warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
12 | static let withoutSeconds: DateFormatter = {
13 | let formatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/URLSessionImplementations.swift:180:57: warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
178 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
179 |
180 | if let taskCompletionShouldRetry = self.taskCompletionShouldRetry {
| `- warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
181 |
182 | taskCompletionShouldRetry(data, response, error) { shouldRetry in
[50/53] Compiling KindeSDK PList.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/OpenISO8601DateFormatter.swift:11:7: warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
9 |
10 | // https://stackoverflow.com/a/50281094/976628
11 | class OpenISO8601DateFormatter: DateFormatter {
| `- warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
12 | static let withoutSeconds: DateFormatter = {
13 | let formatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/URLSessionImplementations.swift:180:57: warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
178 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
179 |
180 | if let taskCompletionShouldRetry = self.taskCompletionShouldRetry {
| `- warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
181 |
182 | taskCompletionShouldRetry(data, response, error) { shouldRetry in
[51/53] Compiling KindeSDK SDKVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/OpenISO8601DateFormatter.swift:11:7: warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
9 |
10 | // https://stackoverflow.com/a/50281094/976628
11 | class OpenISO8601DateFormatter: DateFormatter {
| `- warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
12 | static let withoutSeconds: DateFormatter = {
13 | let formatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/URLSessionImplementations.swift:180:57: warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
178 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
179 |
180 | if let taskCompletionShouldRetry = self.taskCompletionShouldRetry {
| `- warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
181 |
182 | taskCompletionShouldRetry(data, response, error) { shouldRetry in
[52/53] Compiling KindeSDK String+JWTTokenDecode.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/OpenISO8601DateFormatter.swift:11:7: warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
9 |
10 | // https://stackoverflow.com/a/50281094/976628
11 | class OpenISO8601DateFormatter: DateFormatter {
| `- warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
12 | static let withoutSeconds: DateFormatter = {
13 | let formatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/URLSessionImplementations.swift:180:57: warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
178 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
179 |
180 | if let taskCompletionShouldRetry = self.taskCompletionShouldRetry {
| `- warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
181 |
182 | taskCompletionShouldRetry(data, response, error) { shouldRetry in
[53/53] Compiling KindeSDK URLSessionImplementations.swift
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/OpenISO8601DateFormatter.swift:11:7: warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
9 |
10 | // https://stackoverflow.com/a/50281094/976628
11 | class OpenISO8601DateFormatter: DateFormatter {
| `- warning: class 'OpenISO8601DateFormatter' must restate inherited '@unchecked Sendable' conformance
12 | static let withoutSeconds: DateFormatter = {
13 | let formatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/KindeSDK/Utils/URLSessionImplementations.swift:180:57: warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
178 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
179 |
180 | if let taskCompletionShouldRetry = self.taskCompletionShouldRetry {
| `- warning: 'taskCompletionShouldRetry' is deprecated: Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client
181 |
182 | taskCompletionShouldRetry(data, response, error) { shouldRetry in
BUILD FAILURE 6.1 macosSpm