Build Information
Failed to build PurchaseKit, reference main (2fc85c
), with Swift 6.2 (beta) for macOS (SPM) on 24 Jun 2025 03:16:03 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ramiz69/PurchaseKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2fc85ce 📚 Update documentation
Cloned https://github.com/Ramiz69/PurchaseKit.git
Revision (git rev-parse @):
2fc85ce6c2a6c90c66a3f1ac89cff50dfbf6748b
SUCCESS checkout https://github.com/Ramiz69/PurchaseKit.git at main
========================================
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 RKPurchasesProtocol.swift
[5/11] Compiling RKPurchaseKit RKStoreProduct.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