The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SettingsAccess, reference main (04a481), with Swift 5.10 for macOS (SPM) on 28 Jan 2025 02:13:07 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.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 04a4815 Updated GitHub CI
Cloned https://github.com/orchetect/SettingsAccess.git
Revision (git rev-parse @):
04a48150a867a485b945e6bda34da3d12c415349
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
[3/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 {
                                           ~^~~~~~~~~~~~~~~

[4/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 {
                                           ~^~~~~~~~~~~~~~~

[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 {
                                           ~^~~~~~~~~~~~~~~

error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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 }
               ^
[7/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 {
                                           ~^~~~~~~~~~~~~~~

[8/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 {
                                           ~^~~~~~~~~~~~~~~

[9/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 {
                                           ~^~~~~~~~~~~~~~~

[10/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 }
               ^
[11/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 {
                                           ~^~~~~~~~~~~~~~~

error: fatalError
BUILD FAILURE 5.10 macosSpm