The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AppleAuthenticationWrapper, reference master (a3a270), with Swift 6.3 for macOS (SPM) on 11 Aug 2026 15:55:16 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moslienko/AppleAuthenticationWrapper
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a3a270f Update README.md
Cloned https://github.com/moslienko/AppleAuthenticationWrapper.git
Revision (git rev-parse @):
a3a270f808b7700219102f6ce7c29205f9999145
SUCCESS checkout https://github.com/moslienko/AppleAuthenticationWrapper.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "appleauthenticationwrapper",
      "name": "AppleAuthenticationWrapper",
      "url": "https://github.com/moslienko/AppleAuthenticationWrapper.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AppleAuthenticationWrapper",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/moslienko/AppleAuthenticationWrapper.git
[1/98] Fetching appleauthenticationwrapper
Fetched https://github.com/moslienko/AppleAuthenticationWrapper.git from cache (0.96s)
Creating working copy for https://github.com/moslienko/AppleAuthenticationWrapper.git
Working copy of https://github.com/moslienko/AppleAuthenticationWrapper.git resolved at master (a3a270f)
warning: '.resolve-product-dependencies': dependency 'appleauthenticationwrapper' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/moslienko/AppleAuthenticationWrapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/5] Compiling AppleAuthenticationWrapper Extension+ASAuthorizationAppleIDCredential.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppleAuthenticationWrapper/Extensions/Extension+ASAuthorizationAppleIDCredential.swift:12:18: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
10 | import AuthenticationServices
11 |
12 | public extension ASAuthorizationAppleIDCredential {
   |        |         `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
   |        `- note: add '@available' attribute to enclosing extension
13 |
14 |     var token: String? {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] 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
    |                  `- note: add '@available' attribute to enclosing type alias
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/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: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: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/Extensions/Extension+ASAuthorizationAppleIDCredential.swift:12:18: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
10 | import AuthenticationServices
11 |
12 | public extension ASAuthorizationAppleIDCredential {
   |        |         `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
   |        `- note: add '@available' attribute to enclosing extension
13 |
14 |     var token: String? {
[5/5] 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
    |                  `- note: add '@available' attribute to enclosing type alias
 14 | public typealias FailedAppleAuth = ((Error?) -> Void)
 15 |
/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: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: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: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.3 macosSpm