Build Information
Failed to build PurchaseKit, reference 1.0.0 (00a647
), with Swift 6.2 (beta) for macOS (SPM) on 24 Jun 2025 03:15:52 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ramiz69/PurchaseKit.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ramiz69/PurchaseKit
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 00a647c 📚 Update documentation
Cloned https://github.com/Ramiz69/PurchaseKit.git
Revision (git rev-parse @):
00a647c1095df8422a237a91a70eb661e5235ead
SUCCESS checkout https://github.com/Ramiz69/PurchaseKit.git at 1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Ramiz69/PurchaseKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-1EA4D86E10B52AF.txt
[3/11] Compiling RKPurchaseKit RKPurchasedProductEvent.swift
[4/11] Compiling RKPurchaseKit RKStoreProduct.swift
[5/11] Compiling RKPurchaseKit RKPurchasesProtocol.swift
[6/11] Compiling RKPurchaseKit RKPurchasesError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling RKPurchaseKit RKProductType.swift
[8/11] Emitting module RKPurchaseKit
/Users/admin/builder/spi-builder-workspace/Sources/PurchaseKit/Manager/RKPurchasesManager.swift:29:24: error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
27 | private let continuation: AsyncStream<PurchasedProductEvent>.Continuation
28 | private var updateListenerTask: Task<Void, Never>?
29 | private static var instance: PurchasesManager?
| |- error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: Initial methods
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[9/11] Compiling RKPurchaseKit RKPurchasesManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/PurchaseKit/Manager/RKPurchasesManager.swift:29:24: error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
27 | private let continuation: AsyncStream<PurchasedProductEvent>.Continuation
28 | private var updateListenerTask: Task<Void, Never>?
29 | private static var instance: PurchasesManager?
| |- error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: Initial methods
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
BUILD FAILURE 6.2 macosSpm