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 SettingsAccess, reference main (851893), with Swift 5.10 for macOS (SPM) on 11 Jun 2025 22:01:38 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orchetect/SettingsAccess.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/orchetect/SettingsAccess
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8518936 Updated README
Cloned https://github.com/orchetect/SettingsAccess.git
Revision (git rev-parse @):
85189360657ea7bd5463c8ba6a62475c8b68043a
SUCCESS checkout https://github.com/orchetect/SettingsAccess.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/orchetect/SettingsAccess.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Emitting module SettingsAccess
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:17:16: warning: main actor-isolated static property 'defaultValue' cannot be used to satisfy nonisolated protocol requirement
    static let defaultValue = OpenSettingsAccessAction()
               ^
SwiftUI.EnvironmentKey:4:16: note: 'defaultValue' declared here
    static var defaultValue: Self.Value { get }
               ^
[4/11] Compiling SettingsAccess Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[5/11] Compiling SettingsAccess SettingsLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[6/11] Compiling SettingsAccess PrePostActionsButtonStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[7/11] Compiling SettingsAccess OpenSettingsInjectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[8/11] Compiling SettingsAccess Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:17:16: warning: main actor-isolated static property 'defaultValue' cannot be used to satisfy nonisolated protocol requirement
    static let defaultValue = OpenSettingsAccessAction()
               ^
SwiftUI.EnvironmentKey:4:16: note: 'defaultValue' declared here
    static var defaultValue: Self.Value { get }
               ^
[9/11] Compiling SettingsAccess LegacyOpenSettingsError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[10/11] Compiling SettingsAccess OpenSettingsAccessAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

[11/11] Compiling SettingsAccess OpenSettingsError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SettingsAccess/Environment.swift:16:45: error: attribute can only be applied to declarations, not types
@MainActor private struct OpenSettingsKey: @preconcurrency EnvironmentKey {
                                           ~^~~~~~~~~~~~~~~

error: fatalError
BUILD FAILURE 5.10 macosSpm