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 SecurePropertyStorage, reference 0.8.1 (f19732), with Swift 6.2 (beta) for macOS (SPM) on 24 Jun 2025 11:29:09 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/alexruperez/SecurePropertyStorage.git
Reference: 0.8.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexruperez/SecurePropertyStorage
 * tag               0.8.1      -> FETCH_HEAD
HEAD is now at f197322 Fix ContiguousBytes.data memory issue (#39)
Cloned https://github.com/alexruperez/SecurePropertyStorage.git
Revision (git rev-parse @):
f197322dd972edd1a66a7fb9dce62c773ca94e27
SUCCESS checkout https://github.com/alexruperez/SecurePropertyStorage.git at 0.8.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/alexruperez/SecurePropertyStorage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/18] Write sources
[5/18] Write swift-version-1EA4D86E10B52AF.txt
[7/26] Compiling Storage StorageDelegate.swift
[8/26] Compiling Storage Store.swift
[9/26] Compiling Storage DataConvertible.swift
[10/26] Compiling Storage StorageData.swift
[11/26] Compiling Storage StorageActor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storage/StorageActor.swift:4:23: error: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
2 | @globalActor
3 | public actor StorageActor {
4 |     public static var shared = StorageActor()
  |                       |- error: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
  |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[12/26] Compiling Storage Storage.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/26] Compiling Storage DelegatedStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storage/DelegatedStorage.swift:59:50: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead [#DeprecatedDeclaration]
 57 |     open func object(forKey key: StoreKey) throws -> Any? {
 58 |         guard let data: Data = data(forKey: key),
 59 |               let object = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) else {
    |                                                  `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead [#DeprecatedDeclaration]
 60 |             return nil
 61 |         }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[14/26] Emitting module Storage
/Users/admin/builder/spi-builder-workspace/Sources/Storage/StorageActor.swift:4:23: error: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
2 | @globalActor
3 | public actor StorageActor {
4 |     public static var shared = StorageActor()
  |                       |- error: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
  |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
BUILD FAILURE 6.2 macosSpm