The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AppleAuthenticationWrapper, reference 1.0.0 (c8b721), with Swift 6.1 for macOS (SPM) on 11 Aug 2026 16:01:04 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/moslienko/AppleAuthenticationWrapper.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moslienko/AppleAuthenticationWrapper
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at c8b721c Merge pull request #1 from moslienko/develop
Cloned https://github.com/moslienko/AppleAuthenticationWrapper.git
Revision (git rev-parse @):
c8b721c2e5a9db092d4fefcad2821e984acbb896
SUCCESS checkout https://github.com/moslienko/AppleAuthenticationWrapper.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/moslienko/AppleAuthenticationWrapper.git
https://github.com/moslienko/AppleAuthenticationWrapper.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AppleAuthenticationWrapper",
  "name" : "AppleAuthenticationWrapper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "AppleAuthenticationWrapper",
      "targets" : [
        "AppleAuthenticationWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AppleAuthenticationWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "AppleAuthenticationWrapperTests",
      "path" : "Tests",
      "sources" : [
        "AppleAuthenticationWrapperTests.swift",
        "LinuxMain.swift"
      ],
      "target_dependencies" : [
        "AppleAuthenticationWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppleAuthenticationWrapper",
      "module_type" : "SwiftTarget",
      "name" : "AppleAuthenticationWrapper",
      "path" : "Sources",
      "product_memberships" : [
        "AppleAuthenticationWrapper"
      ],
      "sources" : [
        "AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module AppleAuthenticationWrapper
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:13:39: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 11 | import CryptoKit
 12 |
 13 | public typealias SuccessAppleAuth = ((ASAuthorizationAppleIDCredential) -> Void)
    |                                       `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:24:32: error: cannot find type 'UIViewController' in scope
 22 |     private var failedAuth: FailedAppleAuth?
 23 |
 24 |     private weak var parentVC: UIViewController?
    |                                `- error: cannot find type 'UIViewController' in scope
 25 |
 26 |     /// Auth via AppleSignIn
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:41: error: cannot find type 'UIViewController' in scope
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                                         `- error: cannot find type 'UIViewController' in scope
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:77: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 |                                                           `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:16:42: error: cannot find type 'UIViewController' in scope
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |                                          `- error: cannot find type 'UIViewController' in scope
 17 |
 18 |     // Unhashed nonce.
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                                                                                          `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:89:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 87 |     }
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 90 |         self.dismiss(animated: false)
 91 |         guard (error as NSError).code != 1001 else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:98:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 96 |     }
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
    |                 |                                  `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 99 |         self.parentVC?.view.window ?? UIWindow()
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:77:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | |- error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
    | `- note: add stubs for conformance
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
[4/4] Compiling AppleAuthenticationWrapper AppleAuthenticationWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:13:39: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 11 | import CryptoKit
 12 |
 13 | public typealias SuccessAppleAuth = ((ASAuthorizationAppleIDCredential) -> Void)
    |                                       `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:24:32: error: cannot find type 'UIViewController' in scope
 22 |     private var failedAuth: FailedAppleAuth?
 23 |
 24 |     private weak var parentVC: UIViewController?
    |                                `- error: cannot find type 'UIViewController' in scope
 25 |
 26 |     /// Auth via AppleSignIn
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:41: error: cannot find type 'UIViewController' in scope
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                                         `- error: cannot find type 'UIViewController' in scope
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:77: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 |                                                           `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:16:42: error: cannot find type 'UIViewController' in scope
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |                                          `- error: cannot find type 'UIViewController' in scope
 17 |
 18 |     // Unhashed nonce.
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                                                                                          `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:89:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 87 |     }
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 90 |         self.dismiss(animated: false)
 91 |         guard (error as NSError).code != 1001 else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:98:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 96 |     }
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
    |                 |                                  `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 99 |         self.parentVC?.view.window ?? UIWindow()
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:77:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | |- error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
    | `- note: add stubs for conformance
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:38:14: error: value of type 'AppleAuthenticationWrapper' has no member 'view'
 36 |
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'view'
 39 |         self.modalPresentationStyle = .overFullScreen
 40 |         self.parentVC?.present(self, animated: false)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:38:38: error: cannot infer contextual base in reference to member 'clear'
 36 |
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
    |                                      `- error: cannot infer contextual base in reference to member 'clear'
 39 |         self.modalPresentationStyle = .overFullScreen
 40 |         self.parentVC?.present(self, animated: false)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:39:14: error: value of type 'AppleAuthenticationWrapper' has no member 'modalPresentationStyle'
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
 39 |         self.modalPresentationStyle = .overFullScreen
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'modalPresentationStyle'
 40 |         self.parentVC?.present(self, animated: false)
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:39:40: error: cannot infer contextual base in reference to member 'overFullScreen'
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
 39 |         self.modalPresentationStyle = .overFullScreen
    |                                        `- error: cannot infer contextual base in reference to member 'overFullScreen'
 40 |         self.parentVC?.present(self, animated: false)
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:44:31: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
    :
 42 |         let nonce = randomNonceString()
 43 |         currentNonce = nonce
 44 |         let appleIDProvider = ASAuthorizationAppleIDProvider()
    |                               |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 45 |         let request = appleIDProvider.createRequest()
 46 |         request.requestedScopes = requestedScopes
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:49:39: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
    :
 47 |         request.nonce = sha256(nonce)
 48 |
 49 |         let authorizationController = ASAuthorizationController(authorizationRequests: [request])
    |                                       |- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                                       `- note: add 'if #available' version check
 50 |         authorizationController.delegate = self
 51 |         authorizationController.presentationContextProvider = self
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:62:31: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 59 |     ///   - authorized: callback if user is logged and token is valid
 60 |     ///   - notAuthorized: callback if user is not logged
 61 |     public func checkAuthStatus(userID: String, authorized: (() -> Void)?, notAuthorized: (() -> Void)?) {
    |                 `- note: add @available attribute to enclosing instance method
 62 |         let appleIDProvider = ASAuthorizationAppleIDProvider()
    |                               |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 63 |         appleIDProvider.getCredentialState(forUserID: userID) { (credentialState, error) in
 64 |             switch credentialState {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:80:14: error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
 80 |         self.dismiss(animated: false)
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
 82 |               appleIDCredential.token != nil else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:81:68: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
    |                                                                    |- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
    |                                                                    `- note: add 'if #available' version check
 82 |               appleIDCredential.token != nil else {
 83 |             self.failedAuth?(nil)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:82:33: error: value of type 'ASAuthorizationAppleIDCredential' has no member 'token'
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
 82 |               appleIDCredential.token != nil else {
    |                                 `- error: value of type 'ASAuthorizationAppleIDCredential' has no member 'token'
 83 |             self.failedAuth?(nil)
 84 |             return
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:90:14: error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
 90 |         self.dismiss(animated: false)
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 91 |         guard (error as NSError).code != 1001 else {
 92 |             self.failedAuth?(nil)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:99:39: error: cannot find 'UIWindow' in scope
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
 99 |         self.parentVC?.view.window ?? UIWindow()
    |                                       `- error: cannot find 'UIWindow' in scope
100 |     }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:124:26: error: 'SHA256' is only available in macOS 10.15 or newer
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
    |                          |- error: 'SHA256' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
125 |         let hashString = hashedData.compactMap {
126 |             String(format: "%02x", $0)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:124:33: error: 'hash(data:)' is only available in macOS 10.15 or newer
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
    |                                 |- error: 'hash(data:)' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
125 |         let hashString = hashedData.compactMap {
126 |             String(format: "%02x", $0)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:125:37: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
125 |         let hashString = hashedData.compactMap {
    |                                     |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                     `- note: add 'if #available' version check
126 |             String(format: "%02x", $0)
127 |         }.joined()
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module AppleAuthenticationWrapper
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:13:39: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 11 | import CryptoKit
 12 |
 13 | public typealias SuccessAppleAuth = ((ASAuthorizationAppleIDCredential) -> Void)
    |                                       `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:24:32: error: cannot find type 'UIViewController' in scope
 22 |     private var failedAuth: FailedAppleAuth?
 23 |
 24 |     private weak var parentVC: UIViewController?
    |                                `- error: cannot find type 'UIViewController' in scope
 25 |
 26 |     /// Auth via AppleSignIn
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:41: error: cannot find type 'UIViewController' in scope
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                                         `- error: cannot find type 'UIViewController' in scope
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:77: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 |                                                           `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:16:42: error: cannot find type 'UIViewController' in scope
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |                                          `- error: cannot find type 'UIViewController' in scope
 17 |
 18 |     // Unhashed nonce.
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                                                                                          `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:89:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 87 |     }
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 90 |         self.dismiss(animated: false)
 91 |         guard (error as NSError).code != 1001 else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:98:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 96 |     }
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
    |                 |                                  `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 99 |         self.parentVC?.view.window ?? UIWindow()
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:77:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | |- error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
    | `- note: add stubs for conformance
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
[3/3] Compiling AppleAuthenticationWrapper AppleAuthenticationWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:13:39: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 11 | import CryptoKit
 12 |
 13 | public typealias SuccessAppleAuth = ((ASAuthorizationAppleIDCredential) -> Void)
    |                                       `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:24:32: error: cannot find type 'UIViewController' in scope
 22 |     private var failedAuth: FailedAppleAuth?
 23 |
 24 |     private weak var parentVC: UIViewController?
    |                                `- error: cannot find type 'UIViewController' in scope
 25 |
 26 |     /// Auth via AppleSignIn
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:41: error: cannot find type 'UIViewController' in scope
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                                         `- error: cannot find type 'UIViewController' in scope
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:32:77: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 |                                                           `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:16:42: error: cannot find type 'UIViewController' in scope
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |                                          `- error: cannot find type 'UIViewController' in scope
 17 |
 18 |     // Unhashed nonce.
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:79:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 |                                                                                                          `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:89:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 87 |     }
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
    |                 |                                   `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 90 |         self.dismiss(animated: false)
 91 |         guard (error as NSError).code != 1001 else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:98:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    :
 96 |     }
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
    |                 |                                  `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 99 |         self.parentVC?.view.window ?? UIWindow()
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:77:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | |- error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'AppleAuthenticationWrapper' should inherit 'NSObject' instead
    | `- note: add stubs for conformance
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:38:14: error: value of type 'AppleAuthenticationWrapper' has no member 'view'
 36 |
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'view'
 39 |         self.modalPresentationStyle = .overFullScreen
 40 |         self.parentVC?.present(self, animated: false)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:38:38: error: cannot infer contextual base in reference to member 'clear'
 36 |
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
    |                                      `- error: cannot infer contextual base in reference to member 'clear'
 39 |         self.modalPresentationStyle = .overFullScreen
 40 |         self.parentVC?.present(self, animated: false)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:39:14: error: value of type 'AppleAuthenticationWrapper' has no member 'modalPresentationStyle'
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
 39 |         self.modalPresentationStyle = .overFullScreen
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'modalPresentationStyle'
 40 |         self.parentVC?.present(self, animated: false)
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:39:40: error: cannot infer contextual base in reference to member 'overFullScreen'
 37 |         //Open screen for correct working
 38 |         self.view.backgroundColor = .clear
 39 |         self.modalPresentationStyle = .overFullScreen
    |                                        `- error: cannot infer contextual base in reference to member 'overFullScreen'
 40 |         self.parentVC?.present(self, animated: false)
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:44:31: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
    :
 42 |         let nonce = randomNonceString()
 43 |         currentNonce = nonce
 44 |         let appleIDProvider = ASAuthorizationAppleIDProvider()
    |                               |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 45 |         let request = appleIDProvider.createRequest()
 46 |         request.requestedScopes = requestedScopes
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:49:39: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 30 |     ///   - successAuth: callback if success auth
 31 |     ///   - failedAuth: callback if failed auth
 32 |     public func signInViaApple(from vc: UIViewController, requestedScopes: [ASAuthorization.Scope], successAuth: @escaping SuccessAppleAuth, failedAuth: FailedAppleAuth?) {
    |                 `- note: add @available attribute to enclosing instance method
 33 |         self.parentVC = vc
 34 |         self.successAuth = successAuth
    :
 47 |         request.nonce = sha256(nonce)
 48 |
 49 |         let authorizationController = ASAuthorizationController(authorizationRequests: [request])
    |                                       |- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
    |                                       `- note: add 'if #available' version check
 50 |         authorizationController.delegate = self
 51 |         authorizationController.presentationContextProvider = self
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:62:31: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
 16 | public class AppleAuthenticationWrapper: UIViewController {
    |              `- note: add @available attribute to enclosing class
 17 |
 18 |     // Unhashed nonce.
    :
 59 |     ///   - authorized: callback if user is logged and token is valid
 60 |     ///   - notAuthorized: callback if user is not logged
 61 |     public func checkAuthStatus(userID: String, authorized: (() -> Void)?, notAuthorized: (() -> Void)?) {
    |                 `- note: add @available attribute to enclosing instance method
 62 |         let appleIDProvider = ASAuthorizationAppleIDProvider()
    |                               |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 63 |         appleIDProvider.getCredentialState(forUserID: userID) { (credentialState, error) in
 64 |             switch credentialState {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:80:14: error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
 80 |         self.dismiss(animated: false)
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
 82 |               appleIDCredential.token != nil else {
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:81:68: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
 75 |
 76 | // MARK: - ASAuthorizationControllerDelegate
 77 | extension AppleAuthenticationWrapper: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
    | `- note: add @available attribute to enclosing extension
 78 |
 79 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
    |                 `- note: add @available attribute to enclosing instance method
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
    |                                                                    |- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
    |                                                                    `- note: add 'if #available' version check
 82 |               appleIDCredential.token != nil else {
 83 |             self.failedAuth?(nil)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:82:33: error: value of type 'ASAuthorizationAppleIDCredential' has no member 'token'
 80 |         self.dismiss(animated: false)
 81 |         guard let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential,
 82 |               appleIDCredential.token != nil else {
    |                                 `- error: value of type 'ASAuthorizationAppleIDCredential' has no member 'token'
 83 |             self.failedAuth?(nil)
 84 |             return
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:90:14: error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 88 |
 89 |     public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
 90 |         self.dismiss(animated: false)
    |              `- error: value of type 'AppleAuthenticationWrapper' has no member 'dismiss'
 91 |         guard (error as NSError).code != 1001 else {
 92 |             self.failedAuth?(nil)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:99:39: error: cannot find 'UIWindow' in scope
 97 |
 98 |     public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
 99 |         self.parentVC?.view.window ?? UIWindow()
    |                                       `- error: cannot find 'UIWindow' in scope
100 |     }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:124:26: error: 'SHA256' is only available in macOS 10.15 or newer
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
    |                          |- error: 'SHA256' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
125 |         let hashString = hashedData.compactMap {
126 |             String(format: "%02x", $0)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:124:33: error: 'hash(data:)' is only available in macOS 10.15 or newer
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
    |                                 |- error: 'hash(data:)' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
125 |         let hashString = hashedData.compactMap {
126 |             String(format: "%02x", $0)
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/AppleAuthenticationWrapper.swift:125:37: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private extension AppleAuthenticationWrapper {
    |         `- note: add @available attribute to enclosing extension
104 |
105 |     func randomNonceString(length: Int = 32) -> String {
    :
120 |     }
121 |
122 |     func sha256(_ input: String) -> String {
    |          `- note: add @available attribute to enclosing instance method
123 |         let inputData = Data(input.utf8)
124 |         let hashedData = SHA256.hash(data: inputData)
125 |         let hashString = hashedData.compactMap {
    |                                     |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                     `- note: add 'if #available' version check
126 |             String(format: "%02x", $0)
127 |         }.joined()
BUILD FAILURE 6.1 macosSpm