The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build PurchaseKit, reference 1.0.3 (b297cd), with Swift 6.2 (beta) for macOS (SPM) on 30 Aug 2025 16:12:02 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ramiz69/PurchaseKit.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ramiz69/PurchaseKit
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at b297cd1 add subscription helpers, group lookups, and DocC; refresh entitlement handling
Cloned https://github.com/Ramiz69/PurchaseKit.git
Revision (git rev-parse @):
b297cd1ecc854e8f51a062e6fad4f81ab534e8c0
SUCCESS checkout https://github.com/Ramiz69/PurchaseKit.git at 1.0.3
========================================
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 RKPurchasesProtocol.swift
[4/11] Compiling RKPurchaseKit RKPurchasesError.swift
[5/11] Compiling RKPurchaseKit RKProductType.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling RKPurchaseKit RKPurchasedProductEvent.swift
[7/11] Compiling RKPurchaseKit RKStoreProduct.swift
[8/11] Emitting module RKPurchaseKit
/Users/admin/builder/spi-builder-workspace/Sources/PurchaseKit/Manager/RKPurchasesManager.swift:37:24: error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
 35 |     private let continuation: AsyncStream<PurchasedProductEvent>.Continuation
 36 |     private var updateListenerTask: Task<Void, Never>?
 37 |     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
 38 |
 39 |     // 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:37:24: error: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
 35 |     private let continuation: AsyncStream<PurchasedProductEvent>.Continuation
 36 |     private var updateListenerTask: Task<Void, Never>?
 37 |     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
 38 |
 39 |     // MARK: Initial methods
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
BUILD FAILURE 6.2 macosSpm