Build Information
Failed to build InAppMaster, reference 1.0.0 (514471), with Swift 6.2 for macOS (SPM) on 11 Aug 2026 16:07:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/moslienko/InAppMaster.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moslienko/InAppMaster
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 5144715 Merge pull request #1 from moslienko/develop
Cloned https://github.com/moslienko/InAppMaster.git
Revision (git rev-parse @):
51447154a984588bf15730488154d98ec9516d11
SUCCESS checkout https://github.com/moslienko/InAppMaster.git at 1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/moslienko/InAppMaster.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Compiling InAppMaster InAppLegacyService.swift
[4/11] Emitting module InAppMaster
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Data/InAppProductProtocol.swift:20:21: error: 'Product' is only available in macOS 12.0 or newer
9 | import StoreKit
10 |
11 | public protocol InAppProductProtocol {
| `- note: add '@available' attribute to enclosing protocol
12 | var id: String { get }
13 | var title: String { get }
:
18 | var rawSKProduct: SKProduct? { get }
19 | @available(iOS 15.0, *)
20 | var rawProduct: Product? { get }
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/Product+InAppProductProtocol.swift:34:28: error: 'Product' is only available in macOS 12.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | extension Product: InAppProductProtocol {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public var title: String {
:
32 |
33 | @available(iOS 15.0, *)
34 | public var rawProduct: Product? {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
35 | self
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/Product+InAppProductProtocol.swift:11:11: error: 'Product' is only available in macOS 12.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | extension Product: InAppProductProtocol {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public var title: String {
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/SKProduct+InAppProductProtocol.swift:39:28: error: 'Product' is only available in macOS 12.0 or newer
8 | import StoreKit
9 |
10 | extension SKProduct: InAppProductProtocol {
| `- note: add '@available' attribute to enclosing extension
11 | public var id: String {
12 | self.productIdentifier
:
37 |
38 | @available(iOS 15.0, *)
39 | public var rawProduct: Product? {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
40 | nil
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:18:32: error: 'Product' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
16 | static let shared = InAppModernService()
17 |
18 | private var iapProducts = [Product]()
| `- error: 'Product' is only available in macOS 12.0 or newer
19 | private var updatesTask: Task<Void, Never>?
20 | private var finishedTransactionIDs = Set<UInt64>()
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:19:30: error: 'Task' is only available in macOS 10.15 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
17 |
18 | private var iapProducts = [Product]()
19 | private var updatesTask: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
20 | private var finishedTransactionIDs = Set<UInt64>()
21 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:16:45: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
9 | import StoreKit
10 |
11 | final public class InAppRefreshReceiptService: NSObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | // MARK: - Params
14 | static public let shared = InAppRefreshReceiptService()
15 |
16 | private var receiptRefreshContinuation: CheckedContinuation<Void, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
17 | private var receiptRefreshRequest: SKReceiptRefreshRequest?
18 |
[5/11] Compiling InAppMaster InAppStoreKitError.swift
[6/11] Compiling InAppMaster Product+InAppProductProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/Product+InAppProductProtocol.swift:34:28: error: 'Product' is only available in macOS 12.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | extension Product: InAppProductProtocol {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public var title: String {
:
32 |
33 | @available(iOS 15.0, *)
34 | public var rawProduct: Product? {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
35 | self
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/Product+InAppProductProtocol.swift:11:11: error: 'Product' is only available in macOS 12.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | extension Product: InAppProductProtocol {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public var title: String {
[7/11] Compiling InAppMaster InAppRefreshReceiptService.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:16:45: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
9 | import StoreKit
10 |
11 | final public class InAppRefreshReceiptService: NSObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | // MARK: - Params
14 | static public let shared = InAppRefreshReceiptService()
15 |
16 | private var receiptRefreshContinuation: CheckedContinuation<Void, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
17 | private var receiptRefreshRequest: SKReceiptRefreshRequest?
18 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:30:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
9 | import StoreKit
10 |
11 | final public class InAppRefreshReceiptService: NSObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | // MARK: - Params
:
23 |
24 | /// Refreshes the App Store receipt.
25 | public func refreshReceipt() async throws {
| `- note: add '@available' attribute to enclosing instance method
26 | if receiptRefreshContinuation != nil {
27 | throw InAppStoreKitError.pending
28 | }
29 |
30 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | self.receiptRefreshContinuation = continuation
32 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:30:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:30:58: note: expanded code originates here
9 | import StoreKit
10 |
11 | final public class InAppRefreshReceiptService: NSObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | // MARK: - Params
:
23 |
24 | /// Refreshes the App Store receipt.
25 | public func refreshReceipt() async throws {
| `- note: add '@available' attribute to enclosing instance method
26 | if receiptRefreshContinuation != nil {
27 | throw InAppStoreKitError.pending
28 | }
29 |
30 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift
|28 |
|29 |
|30 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------------------
31 | self.receiptRefreshContinuation = continuation
32 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppRefreshReceiptService.swift:47:37: error: 'resume()' is only available in macOS 10.15 or newer
40 |
41 | // MARK: - SKRequestDelegate
42 | extension InAppRefreshReceiptService: SKRequestDelegate {
| `- note: add '@available' attribute to enclosing extension
43 |
44 | /// Called when the receipt refresh request finishes successfully.
45 | /// - Parameter request: The request that finished.
46 | public func requestDidFinish(_ request: SKRequest) {
| `- note: add '@available' attribute to enclosing instance method
47 | receiptRefreshContinuation?.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | receiptRefreshContinuation = nil
49 | receiptRefreshRequest = nil
[8/11] Compiling InAppMaster InAppModernService.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:18:32: error: 'Product' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
16 | static let shared = InAppModernService()
17 |
18 | private var iapProducts = [Product]()
| `- error: 'Product' is only available in macOS 12.0 or newer
19 | private var updatesTask: Task<Void, Never>?
20 | private var finishedTransactionIDs = Set<UInt64>()
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:19:30: error: 'Task' is only available in macOS 10.15 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
17 |
18 | private var iapProducts = [Product]()
19 | private var updatesTask: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
20 | private var finishedTransactionIDs = Set<UInt64>()
21 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:28:23: error: 'Task' is only available in macOS 10.15 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
24 |
25 | // MARK: - Init
26 | private init() {
| `- note: add '@available' attribute to enclosing initializer
27 | // External events
28 | updatesTask = Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | for await result in Transaction.updates {
30 | guard case .verified(let transaction) = result else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:28:23: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
24 |
25 | // MARK: - Init
26 | private init() {
| `- note: add '@available' attribute to enclosing initializer
27 | // External events
28 | updatesTask = Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | for await result in Transaction.updates {
30 | guard case .verified(let transaction) = result else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:29:33: error: 'Transaction' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
24 |
25 | // MARK: - Init
26 | private init() {
| `- note: add '@available' attribute to enclosing initializer
27 | // External events
28 | updatesTask = Task { @MainActor in
29 | for await result in Transaction.updates {
| |- error: 'Transaction' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
30 | guard case .verified(let transaction) = result else { continue }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:29:45: error: 'updates' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
24 |
25 | // MARK: - Init
26 | private init() {
| `- note: add '@available' attribute to enclosing initializer
27 | // External events
28 | updatesTask = Task { @MainActor in
29 | for await result in Transaction.updates {
| |- error: 'updates' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
30 | guard case .verified(let transaction) = result else { continue }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:53:40: error: 'purchase(options:)' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
43 | /// Initiates a purchase for the product.
44 | /// - Parameter id: The identifier of the product to be purchased.
45 | func purchaseMyProduct(id: String) async throws {
| `- note: add '@available' attribute to enclosing instance method
46 | guard !iapProducts.isEmpty else {
47 | throw InAppStoreKitError.productsNotFetched
:
51 | }
52 |
53 | let result = try await product.purchase()
| |- error: 'purchase(options:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
54 |
55 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:78:19: error: 'AppStore' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
73 | /// Restores previously purchased products.
74 | /// - Returns: A set of product identifiers for currently active purchases.
75 | func restorePurchase() async throws -> Set<String> {
| `- note: add '@available' attribute to enclosing instance method
76 | var purchasedProductIDs: Set<String> = []
77 |
78 | try await AppStore.sync()
| |- error: 'AppStore' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
79 | for await result in Transaction.currentEntitlements {
80 | guard case .verified(let transaction) = result else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:78:28: error: 'sync()' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
73 | /// Restores previously purchased products.
74 | /// - Returns: A set of product identifiers for currently active purchases.
75 | func restorePurchase() async throws -> Set<String> {
| `- note: add '@available' attribute to enclosing instance method
76 | var purchasedProductIDs: Set<String> = []
77 |
78 | try await AppStore.sync()
| |- error: 'sync()' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
79 | for await result in Transaction.currentEntitlements {
80 | guard case .verified(let transaction) = result else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:79:29: error: 'Transaction' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
73 | /// Restores previously purchased products.
74 | /// - Returns: A set of product identifiers for currently active purchases.
75 | func restorePurchase() async throws -> Set<String> {
| `- note: add '@available' attribute to enclosing instance method
76 | var purchasedProductIDs: Set<String> = []
77 |
78 | try await AppStore.sync()
79 | for await result in Transaction.currentEntitlements {
| |- error: 'Transaction' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
80 | guard case .verified(let transaction) = result else { continue }
81 | if transaction.revocationDate == nil {
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:79:41: error: 'currentEntitlements' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
73 | /// Restores previously purchased products.
74 | /// - Returns: A set of product identifiers for currently active purchases.
75 | func restorePurchase() async throws -> Set<String> {
| `- note: add '@available' attribute to enclosing instance method
76 | var purchasedProductIDs: Set<String> = []
77 |
78 | try await AppStore.sync()
79 | for await result in Transaction.currentEntitlements {
| |- error: 'currentEntitlements' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
80 | guard case .verified(let transaction) = result else { continue }
81 | if transaction.revocationDate == nil {
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:104:34: error: 'Product' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
94 | /// - Parameter productIdentifiers: The product identifiers to fetch.
95 | /// - Returns: An array of products matching the provided identifiers.
96 | func fetchAvailableProducts(
| `- note: add '@available' attribute to enclosing instance method
97 | productIdentifiers: [String]
98 | ) async throws -> [any InAppProductProtocol] {
:
102 | }
103 |
104 | let products = try await Product.products(for: identifiers)
| |- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
105 | self.iapProducts = products
106 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:104:42: error: 'products(for:)' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
94 | /// - Parameter productIdentifiers: The product identifiers to fetch.
95 | /// - Returns: An array of products matching the provided identifiers.
96 | func fetchAvailableProducts(
| `- note: add '@available' attribute to enclosing instance method
97 | productIdentifiers: [String]
98 | ) async throws -> [any InAppProductProtocol] {
:
102 | }
103 |
104 | let products = try await Product.products(for: identifiers)
| |- error: 'products(for:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
105 | self.iapProducts = products
106 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:113:29: error: 'Transaction' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
110 | /// Returns the JWS representation of the currently active subscription.
111 | /// - Returns: The JWS string of the active subscription, or `nil` if none is active.
112 | public func getCurrentActiveSubscriptionJWS() async -> String? {
| `- note: add '@available' attribute to enclosing instance method
113 | for await result in Transaction.currentEntitlements {
| |- error: 'Transaction' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
114 | if case .verified(let transaction) = result,
115 | transaction.revocationDate == nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:113:41: error: 'currentEntitlements' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
110 | /// Returns the JWS representation of the currently active subscription.
111 | /// - Returns: The JWS string of the active subscription, or `nil` if none is active.
112 | public func getCurrentActiveSubscriptionJWS() async -> String? {
| `- note: add '@available' attribute to enclosing instance method
113 | for await result in Transaction.currentEntitlements {
| |- error: 'currentEntitlements' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
114 | if case .verified(let transaction) = result,
115 | transaction.revocationDate == nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppModernService.swift:117:31: error: 'jwsRepresentation' is only available in macOS 12.0 or newer
11 | @available(iOS 15.0, *)
12 | @MainActor
13 | final public class InAppModernService {
| `- note: add '@available' attribute to enclosing class
14 |
15 | // MARK: - Params
:
110 | /// Returns the JWS representation of the currently active subscription.
111 | /// - Returns: The JWS string of the active subscription, or `nil` if none is active.
112 | public func getCurrentActiveSubscriptionJWS() async -> String? {
| `- note: add '@available' attribute to enclosing instance method
113 | for await result in Transaction.currentEntitlements {
114 | if case .verified(let transaction) = result,
115 | transaction.revocationDate == nil,
116 | (transaction.expirationDate ?? .distantFuture) > Date() {
117 | return result.jwsRepresentation
| |- error: 'jwsRepresentation' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
118 | }
119 | }
[9/11] Compiling InAppMaster InAppService.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:47:13: error: 'Task' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
46 | if #available(iOS 15.0, *) {
47 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | do {
49 | let products = try await modernService.fetchAvailableProducts(
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:47:13: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
46 | if #available(iOS 15.0, *) {
47 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | do {
49 | let products = try await modernService.fetchAvailableProducts(
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:52:27: error: 'MainActor' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
:
50 | productIdentifiers: self.configuredProductIdentifiers
51 | )
52 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | completion(.success(products))
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:52:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
:
50 | productIdentifiers: self.configuredProductIdentifiers
51 | )
52 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | completion(.success(products))
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:56:27: error: 'MainActor' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
:
54 | }
55 | } catch {
56 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | completion(.failure(error))
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:56:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
41 | /// Fetch the available in-app products from the App Store.
42 | /// - Parameter completion: A closure called with the result containing the fetched products on success, or an error on failure.
43 | public func fetchProducts(
| `- note: add '@available' attribute to enclosing instance method
44 | completion: @escaping (Result<[any InAppProductProtocol], Error>) -> Void
45 | ) {
:
54 | }
55 | } catch {
56 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | completion(.failure(error))
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:78:13: error: 'Task' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
74 | /// - id: The identifier of the product.
75 | /// - completion: A closure called with the result containing the purchased on success, or an error on failure.
76 | public func purchaseProduct(id: String, completion: @escaping (Result<String, Error>) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if #available(iOS 15.0, *) {
78 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | do {
80 | try await modernService.purchaseMyProduct(id: id)
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:78:13: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
74 | /// - id: The identifier of the product.
75 | /// - completion: A closure called with the result containing the purchased on success, or an error on failure.
76 | public func purchaseProduct(id: String, completion: @escaping (Result<String, Error>) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if #available(iOS 15.0, *) {
78 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | do {
80 | try await modernService.purchaseMyProduct(id: id)
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:105:13: error: 'Task' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
101 | /// Restores previously purchased.
102 | /// - Parameter completion: A closure called with the result containing the identifiers of the restored products on success, or an error on failure.
103 | public func restoreProducts(completion: @escaping (Result<[String], Error>) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
104 | if #available(iOS 15.0, *) {
105 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | do {
107 | let purchasedProducts = try await modernService.restorePurchase()
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Services/InAppService.swift:105:13: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | final public class InAppService {
| `- note: add '@available' attribute to enclosing class
11 |
12 | // MARK: - Params
:
101 | /// Restores previously purchased.
102 | /// - Parameter completion: A closure called with the result containing the identifiers of the restored products on success, or an error on failure.
103 | public func restoreProducts(completion: @escaping (Result<[String], Error>) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
104 | if #available(iOS 15.0, *) {
105 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | do {
107 | let purchasedProducts = try await modernService.restorePurchase()
[10/11] Compiling InAppMaster SKProduct+InAppProductProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Extensions/SKProduct+InAppProductProtocol.swift:39:28: error: 'Product' is only available in macOS 12.0 or newer
8 | import StoreKit
9 |
10 | extension SKProduct: InAppProductProtocol {
| `- note: add '@available' attribute to enclosing extension
11 | public var id: String {
12 | self.productIdentifier
:
37 |
38 | @available(iOS 15.0, *)
39 | public var rawProduct: Product? {
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
40 | nil
41 | }
[11/11] Compiling InAppMaster InAppProductProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppMaster/Data/InAppProductProtocol.swift:20:21: error: 'Product' is only available in macOS 12.0 or newer
9 | import StoreKit
10 |
11 | public protocol InAppProductProtocol {
| `- note: add '@available' attribute to enclosing protocol
12 | var id: String { get }
13 | var title: String { get }
:
18 | var rawSKProduct: SKProduct? { get }
19 | @available(iOS 15.0, *)
20 | var rawProduct: Product? { get }
| | `- error: 'Product' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
21 | }
22 |
BUILD FAILURE 6.2 macosSpm