Build Information
Failed to build WWSignInWith3rd_Wechat, reference 1.2.2 (81cf30), with Swift 6.3 for macOS (SPM) on 18 Apr 2026 19:52:39 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWSignInWith3rd_Wechat.git
Reference: 1.2.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWSignInWith3rd_Wechat
* tag 1.2.2 -> FETCH_HEAD
HEAD is now at 81cf301 - 修改彈出後視窗的tintColor
Cloned https://github.com/William-Weng/WWSignInWith3rd_Wechat.git
Revision (git rev-parse @):
81cf30117f28747b2e6a1a941f57c662e83f6bdb
SUCCESS checkout https://github.com/William-Weng/WWSignInWith3rd_Wechat.git at 1.2.2
Fetching https://github.com/William-Weng/WWSignInWith3rd_Apple
Fetching https://github.com/yanyin1986/WechatOpenSDK
[1/208] Fetching wechatopensdk
[16/383] Fetching wechatopensdk, wwsigninwith3rd_apple
Fetched https://github.com/yanyin1986/WechatOpenSDK from cache (1.67s)
Fetched https://github.com/William-Weng/WWSignInWith3rd_Apple from cache (1.67s)
Computing version for https://github.com/yanyin1986/WechatOpenSDK
Computed https://github.com/yanyin1986/WechatOpenSDK at 2.0.7 (2.26s)
Computing version for https://github.com/William-Weng/WWSignInWith3rd_Apple
Computed https://github.com/William-Weng/WWSignInWith3rd_Apple at 1.1.4 (0.66s)
Creating working copy for https://github.com/William-Weng/WWSignInWith3rd_Apple
Working copy of https://github.com/William-Weng/WWSignInWith3rd_Apple resolved at 1.1.4
Creating working copy for https://github.com/yanyin1986/WechatOpenSDK
Working copy of https://github.com/yanyin1986/WechatOpenSDK resolved at 2.0.7
========================================
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": "wwsigninwith3rd_wechat",
"name": "WWSignInWith3rd_Wechat",
"url": "https://github.com/William-Weng/WWSignInWith3rd_Wechat.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWSignInWith3rd_Wechat",
"traits": [
"default"
],
"dependencies": [
{
"identity": "wwsigninwith3rd_apple",
"name": "WWSignInWith3rd_Apple",
"url": "https://github.com/William-Weng/WWSignInWith3rd_Apple",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWSignInWith3rd_Apple",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "wechatopensdk",
"name": "WechatOpenSDK",
"url": "https://github.com/yanyin1986/WechatOpenSDK",
"version": "2.0.7",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WechatOpenSDK",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/William-Weng/WWSignInWith3rd_Wechat.git
[1/150] Fetching wwsigninwith3rd_wechat
Fetched https://github.com/William-Weng/WWSignInWith3rd_Wechat.git from cache (1.00s)
Fetching https://github.com/William-Weng/WWSignInWith3rd_Apple from cache
Fetching https://github.com/yanyin1986/WechatOpenSDK from cache
Fetched https://github.com/yanyin1986/WechatOpenSDK from cache (0.41s)
Fetched https://github.com/William-Weng/WWSignInWith3rd_Apple from cache (0.45s)
Computing version for https://github.com/yanyin1986/WechatOpenSDK
Computed https://github.com/yanyin1986/WechatOpenSDK at 2.0.7 (0.51s)
Computing version for https://github.com/William-Weng/WWSignInWith3rd_Apple
Computed https://github.com/William-Weng/WWSignInWith3rd_Apple at 1.1.4 (0.03s)
Creating working copy for https://github.com/yanyin1986/WechatOpenSDK
Working copy of https://github.com/yanyin1986/WechatOpenSDK resolved at 2.0.7
Creating working copy for https://github.com/William-Weng/WWSignInWith3rd_Apple
Working copy of https://github.com/William-Weng/WWSignInWith3rd_Apple resolved at 1.1.4
Creating working copy for https://github.com/William-Weng/WWSignInWith3rd_Wechat.git
Working copy of https://github.com/William-Weng/WWSignInWith3rd_Wechat.git resolved at 1.2.2 (81cf301)
warning: '.resolve-product-dependencies': dependency 'wwsigninwith3rd_wechat' is not used by any target
Found 2 product dependencies
- WWSignInWith3rd_Apple
- WechatOpenSDK
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/William-Weng/WWSignInWith3rd_Wechat.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[2/5] Copying Privacy
[4/5] Write swift-version--6988338F2F200930.txt
[6/12] Compiling WWSignInWith3rd_Apple resource_bundle_accessor.swift
[7/12] Compiling WWSignInWith3rd_Apple WWSignInWith3rd.swift
[8/12] Compiling WWSignInWith3rd_Apple WWSignInWith3rd_Apple.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:16:59: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
12 |
13 | /// [AuthenticationServices Framework - iOS 13](https://developer.apple.com/documentation/authenticationservices)
14 | open class Apple: NSObject {
| `- note: add '@available' attribute to enclosing class
15 |
16 | public typealias SignInInformation = (credential: ASAuthorizationAppleIDCredential?, state: ASAuthorizationAppleIDProvider.CredentialState)
| | `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
17 |
18 | public static let shared = Apple()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:16:101: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
12 |
13 | /// [AuthenticationServices Framework - iOS 13](https://developer.apple.com/documentation/authenticationservices)
14 | open class Apple: NSObject {
| `- note: add '@available' attribute to enclosing class
15 |
16 | public typealias SignInInformation = (credential: ASAuthorizationAppleIDCredential?, state: ASAuthorizationAppleIDProvider.CredentialState)
| | `- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
17 |
18 | public static let shared = Apple()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:28:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:28:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:29:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:30:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:29: error: 'ASAuthorization' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:56: error: 'fullName' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'fullName' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:67: error: 'email' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'email' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:84: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:143: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:191: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:70:44: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
62 |
63 | // MARK: - WWSignInWith3rd.Apple (private function)
64 | private extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
65 |
66 | /// 取得Login後的相關資訊 (確認 / 取消)
:
68 | /// - controller: ASAuthorizationController
69 | /// - authorization: ASAuthorization
70 | func loginInformation(with controller: ASAuthorizationController, authorization: ASAuthorization) {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 |
72 | guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:70:86: error: 'ASAuthorization' is only available in macOS 10.15 or newer
62 |
63 | // MARK: - WWSignInWith3rd.Apple (private function)
64 | private extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
65 |
66 | /// 取得Login後的相關資訊 (確認 / 取消)
:
68 | /// - controller: ASAuthorizationController
69 | /// - authorization: ASAuthorization
70 | func loginInformation(with controller: ASAuthorizationController, authorization: ASAuthorization) {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 |
72 | guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:30:112: error: cannot find 'UIWindow' in scope
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
| `- error: cannot find 'UIWindow' in scope
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:30:137: error: cannot find 'UIWindow' in scope
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
| `- error: cannot find 'UIWindow' in scope
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:42:39: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
| |- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | authorizationController.performRequests()
44 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:59:16: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
| |- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:72:61: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
62 |
63 | // MARK: - WWSignInWith3rd.Apple (private function)
64 | private extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
65 |
66 | /// 取得Login後的相關資訊 (確認 / 取消)
:
68 | /// - controller: ASAuthorizationController
69 | /// - authorization: ASAuthorization
70 | func loginInformation(with controller: ASAuthorizationController, authorization: ASAuthorization) {
| `- note: add '@available' attribute to enclosing instance method
71 |
72 | guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential,
| |- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | let completionBlock = completionBlock
74 | else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Compiling WWSignInWith3rd_Apple Constant.swift
[10/12] Emitting module WWSignInWith3rd_Apple
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:38: error: 'ASAuthorization' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:94: error: 'ASAuthorizationControllerDelegate' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationControllerDelegate' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:130: error: 'ASAuthorizationControllerPresentationContextProviding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationControllerPresentationContextProviding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:188: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:65: error: 'fullName' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'fullName' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:76: error: 'email' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'email' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:11:11: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:36:38: error: 'ASAuthorization' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
34 | /// - Parameter scopes: [ASAuthorization.Scope] => [.fullname, .email]
35 | /// - Returns: [ASAuthorizationRequest]
36 | static func _build(with scopes: [ASAuthorization.Scope]?) -> [ASAuthorizationRequest] {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
37 |
38 | let authorizationAppleIDRequest = ASAuthorizationAppleIDProvider().createRequest()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:36:67: error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
34 | /// - Parameter scopes: [ASAuthorization.Scope] => [.fullname, .email]
35 | /// - Returns: [ASAuthorizationRequest]
36 | static func _build(with scopes: [ASAuthorization.Scope]?) -> [ASAuthorizationRequest] {
| | `- error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
37 |
38 | let authorizationAppleIDRequest = ASAuthorizationAppleIDProvider().createRequest()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:31:11: error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| | `- error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:86: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:145: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:193: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:46:11: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:73:69: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
65 |
66 | // MARK: - ASAuthorizationController (class function)
67 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
68 |
69 | /// [測試認證的狀態 (ASAuthorizationAppleIDCredential.user)](https://ciao-chung.com/page-article/sign-in-with-app)
:
71 | /// - userID: 取得的使用者編號
72 | /// - result: Result<ASAuthorizationAppleIDProvider.CredentialState, Error>
73 | func _credentialState(userID: String, result: @escaping (Result<ASAuthorizationAppleIDProvider.CredentialState, Error>) -> Void) {
| | `- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
74 |
75 | let appleIDProvider = ASAuthorizationAppleIDProvider()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:67:11: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
65 |
66 | // MARK: - ASAuthorizationController (class function)
67 | extension ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
68 |
69 | /// [測試認證的狀態 (ASAuthorizationAppleIDCredential.user)](https://ciao-chung.com/page-article/sign-in-with-app)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:64:18: error: cannot find type 'UIWindow' in scope
62 |
63 | // MARK: - UIWindow (function)
64 | public extension UIWindow {
| `- error: cannot find type 'UIWindow' in scope
65 |
66 | /// [取得作用中的KeyWindow](https://stackoverflow.com/questions/57134259/how-to-resolve-keywindow-was-deprecated-in-ios-13-0)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:90:187: error: cannot find type 'UIScrollView' in scope
88 | /// - contentInsetAdjustmentBehavior: scrollView是否為全畫面 => 滿版(導覽列)
89 | /// - Returns: WKWebView
90 | static func _build(delegate: (WKNavigationDelegate & WKUIDelegate)?, frame: CGRect, configuration: WKWebViewConfiguration = WKWebViewConfiguration(), contentInsetAdjustmentBehavior: UIScrollView.ContentInsetAdjustmentBehavior = .never) -> WKWebView {
| `- error: cannot find type 'UIScrollView' in scope
91 |
92 | let webView = WKWebView(frame: frame, configuration: configuration)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:16:59: error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
12 |
13 | /// [AuthenticationServices Framework - iOS 13](https://developer.apple.com/documentation/authenticationservices)
14 | open class Apple: NSObject {
| `- note: add '@available' attribute to enclosing class
15 |
16 | public typealias SignInInformation = (credential: ASAuthorizationAppleIDCredential?, state: ASAuthorizationAppleIDProvider.CredentialState)
| | `- error: 'ASAuthorizationAppleIDCredential' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
17 |
18 | public static let shared = Apple()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:16:101: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
12 |
13 | /// [AuthenticationServices Framework - iOS 13](https://developer.apple.com/documentation/authenticationservices)
14 | open class Apple: NSObject {
| `- note: add '@available' attribute to enclosing class
15 |
16 | public typealias SignInInformation = (credential: ASAuthorizationAppleIDCredential?, state: ASAuthorizationAppleIDProvider.CredentialState)
| | `- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
17 |
18 | public static let shared = Apple()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:28:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:28:124: error: 'ASAuthorization' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:29:53: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:30:52: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - ASAuthorizationControllerDelegate / ASAuthorizationControllerPresentationContextProviding
26 | extension WWSignInWith3rd.Apple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
| `- note: add '@available' attribute to enclosing extension
27 |
28 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { loginInformation(with: controller, authorization: authorization) }
29 | public func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { completionBlock?(.failure(error)) }
30 | public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { return UIWindow._keyWindow() ?? UIWindow() }
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:29: error: 'ASAuthorization' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:56: error: 'fullName' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'fullName' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:40:67: error: 'email' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
38 | /// - scopes: 要取得的資料範圍 => [.fullName, .email]
39 | /// - completion: [完成後取得ASAuthorizationAppleIDCredential](https://www.bnext.com.tw/article/53765/what-is-the-meaning-of-sign-in-with-apple)
40 | func login(for scopes: [ASAuthorization.Scope] = [.fullName, .email], completion: ((Result<SignInInformation, Error>) -> Void)?) {
| | `- error: 'email' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 |
42 | let authorizationController = ASAuthorizationController._build(with: scopes, delegate: self)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:84: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:143: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:58:191: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - WWSignInWith3rd.Apple (public class function)
34 | public extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
35 |
36 | /// [彈出Apple登入視窗 - 要加入.entitlements](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
56 | /// - style: ASAuthorizationAppleIDButton.Style
57 | /// - Returns: ASAuthorizationAppleIDButton
58 | func loginButton(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
59 | return ASAuthorizationAppleIDButton._build(with: frame, cornerRadius: cornerRadius, type: type, style: style)
60 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:70:44: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
62 |
63 | // MARK: - WWSignInWith3rd.Apple (private function)
64 | private extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
65 |
66 | /// 取得Login後的相關資訊 (確認 / 取消)
:
68 | /// - controller: ASAuthorizationController
69 | /// - authorization: ASAuthorization
70 | func loginInformation(with controller: ASAuthorizationController, authorization: ASAuthorization) {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 |
72 | guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/WWSignInWith3rd_Apple.swift:70:86: error: 'ASAuthorization' is only available in macOS 10.15 or newer
62 |
63 | // MARK: - WWSignInWith3rd.Apple (private function)
64 | private extension WWSignInWith3rd.Apple {
| `- note: add '@available' attribute to enclosing extension
65 |
66 | /// 取得Login後的相關資訊 (確認 / 取消)
:
68 | /// - controller: ASAuthorizationController
69 | /// - authorization: ASAuthorization
70 | func loginInformation(with controller: ASAuthorizationController, authorization: ASAuthorization) {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 |
72 | guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential,
[11/12] Compiling WWSignInWith3rd_Apple Extension+Apple.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:38: error: 'ASAuthorization' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:94: error: 'ASAuthorizationControllerDelegate' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationControllerDelegate' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:130: error: 'ASAuthorizationControllerPresentationContextProviding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationControllerPresentationContextProviding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:188: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:65: error: 'fullName' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'fullName' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:18:76: error: 'email' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| | `- error: 'email' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:11:11: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:36:38: error: 'ASAuthorization' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
34 | /// - Parameter scopes: [ASAuthorization.Scope] => [.fullname, .email]
35 | /// - Returns: [ASAuthorizationRequest]
36 | static func _build(with scopes: [ASAuthorization.Scope]?) -> [ASAuthorizationRequest] {
| | `- error: 'ASAuthorization' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
37 |
38 | let authorizationAppleIDRequest = ASAuthorizationAppleIDProvider().createRequest()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:36:67: error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
34 | /// - Parameter scopes: [ASAuthorization.Scope] => [.fullname, .email]
35 | /// - Returns: [ASAuthorizationRequest]
36 | static func _build(with scopes: [ASAuthorization.Scope]?) -> [ASAuthorizationRequest] {
| | `- error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
37 |
38 | let authorizationAppleIDRequest = ASAuthorizationAppleIDProvider().createRequest()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:31:11: error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| | `- error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:86: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:145: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:55:193: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:46:11: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| | `- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:73:69: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
65 |
66 | // MARK: - ASAuthorizationController (class function)
67 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
68 |
69 | /// [測試認證的狀態 (ASAuthorizationAppleIDCredential.user)](https://ciao-chung.com/page-article/sign-in-with-app)
:
71 | /// - userID: 取得的使用者編號
72 | /// - result: Result<ASAuthorizationAppleIDProvider.CredentialState, Error>
73 | func _credentialState(userID: String, result: @escaping (Result<ASAuthorizationAppleIDProvider.CredentialState, Error>) -> Void) {
| | `- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
74 |
75 | let appleIDProvider = ASAuthorizationAppleIDProvider()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:67:11: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
65 |
66 | // MARK: - ASAuthorizationController (class function)
67 | extension ASAuthorizationController {
| | `- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
68 |
69 | /// [測試認證的狀態 (ASAuthorizationAppleIDCredential.user)](https://ciao-chung.com/page-article/sign-in-with-app)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:20:24: error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
| |- error: 'ASAuthorizationRequest' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | let authorizationController = ASAuthorizationController(authorizationRequests: requests)
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:21:39: error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - ASAuthorizationController (static function)
11 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// [產生Apple登入的ViewController](https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple)
:
16 | /// - delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding
17 | /// - Returns: ASAuthorizationController
18 | static func _build(with scopes: [ASAuthorization.Scope] = [.fullName, .email], delegate: ASAuthorizationControllerDelegate & ASAuthorizationControllerPresentationContextProviding) -> ASAuthorizationController {
| `- note: add '@available' attribute to enclosing static method
19 |
20 | let requests = ASAuthorizationRequest._build(with: scopes)
21 | let authorizationController = ASAuthorizationController(authorizationRequests: requests)
| |- error: 'ASAuthorizationController' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 |
23 | authorizationController.delegate = delegate
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:38:43: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
29 |
30 | // MARK: - ASAuthorizationRequest (static function)
31 | extension ASAuthorizationRequest {
| `- note: add '@available' attribute to enclosing extension
32 |
33 | /// [要取得哪些資訊的Request](https://qiita.com/shiz/items/5e094910f742c2ad72a4)
34 | /// - Parameter scopes: [ASAuthorization.Scope] => [.fullname, .email]
35 | /// - Returns: [ASAuthorizationRequest]
36 | static func _build(with scopes: [ASAuthorization.Scope]?) -> [ASAuthorizationRequest] {
| `- note: add '@available' attribute to enclosing static method
37 |
38 | let authorizationAppleIDRequest = ASAuthorizationAppleIDProvider().createRequest()
| |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | authorizationAppleIDRequest.requestedScopes = scopes
40 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:57:35: error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
44 |
45 | // MARK: - ASAuthorizationAppleIDButton (static function)
46 | extension ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing extension
47 |
48 | /// [產生SignInWithApple的原生按鈕 / 按鈕按下後的功能](https://medium.com/@tuzaiz/如何整合-sign-in-with-apple-到自己的-ios-app-上-ios-backend-e64d9de15410)
:
53 | /// - style: ASAuthorizationAppleIDButton.Style
54 | /// - Returns: ASAuthorizationAppleIDButton
55 | static func _build(with frame: CGRect = .zero, cornerRadius: CGFloat = 10, type: ASAuthorizationAppleIDButton.ButtonType = .default, style: ASAuthorizationAppleIDButton.Style = .black) -> ASAuthorizationAppleIDButton {
| `- note: add '@available' attribute to enclosing static method
56 |
57 | let authorizationButton = ASAuthorizationAppleIDButton(type: type, style: style)
| |- error: 'ASAuthorizationAppleIDButton' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 |
59 | authorizationButton.frame = frame
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension+Apple.swift:75:31: error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
65 |
66 | // MARK: - ASAuthorizationController (class function)
67 | extension ASAuthorizationController {
| `- note: add '@available' attribute to enclosing extension
68 |
69 | /// [測試認證的狀態 (ASAuthorizationAppleIDCredential.user)](https://ciao-chung.com/page-article/sign-in-with-app)
:
71 | /// - userID: 取得的使用者編號
72 | /// - result: Result<ASAuthorizationAppleIDProvider.CredentialState, Error>
73 | func _credentialState(userID: String, result: @escaping (Result<ASAuthorizationAppleIDProvider.CredentialState, Error>) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
74 |
75 | let appleIDProvider = ASAuthorizationAppleIDProvider()
| |- error: 'ASAuthorizationAppleIDProvider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 |
77 | appleIDProvider.getCredentialState(forUserID: userID) { (credentialState, error) in
[12/12] Compiling WWSignInWith3rd_Apple Extension.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:64:18: error: cannot find type 'UIWindow' in scope
62 |
63 | // MARK: - UIWindow (function)
64 | public extension UIWindow {
| `- error: cannot find type 'UIWindow' in scope
65 |
66 | /// [取得作用中的KeyWindow](https://stackoverflow.com/questions/57134259/how-to-resolve-keywindow-was-deprecated-in-ios-13-0)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:90:187: error: cannot find type 'UIScrollView' in scope
88 | /// - contentInsetAdjustmentBehavior: scrollView是否為全畫面 => 滿版(導覽列)
89 | /// - Returns: WKWebView
90 | static func _build(delegate: (WKNavigationDelegate & WKUIDelegate)?, frame: CGRect, configuration: WKWebViewConfiguration = WKWebViewConfiguration(), contentInsetAdjustmentBehavior: UIScrollView.ContentInsetAdjustmentBehavior = .never) -> WKWebView {
| `- error: cannot find type 'UIScrollView' in scope
91 |
92 | let webView = WKWebView(frame: frame, configuration: configuration)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:94:17: error: value of type 'WKWebView' has no member 'backgroundColor'
92 | let webView = WKWebView(frame: frame, configuration: configuration)
93 |
94 | webView.backgroundColor = .white
| `- error: value of type 'WKWebView' has no member 'backgroundColor'
95 | webView.navigationDelegate = delegate
96 | webView.uiDelegate = delegate
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:94:36: error: cannot infer contextual base in reference to member 'white'
92 | let webView = WKWebView(frame: frame, configuration: configuration)
93 |
94 | webView.backgroundColor = .white
| `- error: cannot infer contextual base in reference to member 'white'
95 | webView.navigationDelegate = delegate
96 | webView.uiDelegate = delegate
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:97:17: error: value of type 'WKWebView' has no member 'scrollView'
95 | webView.navigationDelegate = delegate
96 | webView.uiDelegate = delegate
97 | webView.scrollView.contentInsetAdjustmentBehavior = contentInsetAdjustmentBehavior
| `- error: value of type 'WKWebView' has no member 'scrollView'
98 |
99 | return webView
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:184:31: error: 'removeAllScriptMessageHandlers()' is only available in macOS 11.0 or newer
170 |
171 | // MARK: - WKWebViewConfiguration (function)
172 | public extension WKWebViewConfiguration {
| `- note: add '@available' attribute to enclosing extension
173 |
174 | /// [不同WKWebView之間實現瀏覽狀態隔離 => 私密瀏覽](https://oldoldb.com/2019/01/12/Session-isolation/)
:
180 |
181 | /// [清除使用者添加的腳本及block](https://stackoverflow.com/questions/79379871/swift-discord-oauth2-redirect-uri-not-supported-by-client)
182 | func _removeAllScripts() {
| `- note: add '@available' attribute to enclosing instance method
183 | userContentController.removeAllUserScripts()
184 | userContentController.removeAllScriptMessageHandlers()
| |- error: 'removeAllScriptMessageHandlers()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
185 | }
186 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWSignInWith3rd_Apple/Sources/WWSignInWith3rd_Apple/Utility/Extension.swift:69:54: error: cannot find type 'UIWindow' in scope
67 | /// - Parameter hasScene: [有沒有使用Scene ~ iOS 13](https://juejin.cn/post/6844903993496305671)
68 | /// - Returns: UIWindow?
69 | static func _keyWindow(hasScene: Bool = true) -> UIWindow? {
| `- error: cannot find type 'UIWindow' in scope
70 |
71 | var keyWindow: UIWindow?
BUILD FAILURE 6.3 macosSpm