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 main (d1cbb9), with Swift 6.2 (beta) for macOS (SPM) on 30 Aug 2025 16:12:29 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: 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 d1cbb9c 📚 Update documentation
Cloned https://github.com/Ramiz69/PurchaseKit.git
Revision (git rev-parse @):
d1cbb9cf27a2a37bc540505f35e225633f0ba2f1
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 RKPurchasesProtocol.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Compiling RKPurchaseKit RKPurchasesError.swift
[5/11] Compiling RKPurchaseKit RKProductType.swift
[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