The Swift Package Index logo.Swift Package Index

Build Information

Successful build of UserDefaultsWrapper, reference 1.0.0 (7578f6), with Swift 6.1 for Wasm on 15 Aug 2025 17:24:01 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.66.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yharshal/UserDefaultsWrapper.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/yharshal/UserDefaultsWrapper
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 7578f6d added codeowners
Cloned https://github.com/yharshal/UserDefaultsWrapper.git
Revision (git rev-parse @):
7578f6d618cde8df75605099a6d31ffbc449a0ec
SUCCESS checkout https://github.com/yharshal/UserDefaultsWrapper.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/yharshal/UserDefaultsWrapper.git
https://github.com/yharshal/UserDefaultsWrapper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserDefaultsWrapper",
  "name" : "UserDefaultsWrapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "UserDefaultsWrapper",
      "targets" : [
        "UserDefaultsWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UserDefaultsWrapperExample",
      "targets" : [
        "UserDefaultsWrapperExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultsWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperTests",
      "path" : "Tests/UserDefaultsWrapperTests",
      "sources" : [
        "UserDefaultsWrapperTests.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefaultsWrapperExample",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperExample",
      "path" : "Sources/UserDefaultsWrapperExample",
      "product_memberships" : [
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "Example.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "UserDefaultsWrapper",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapper",
      "path" : "Sources/UserDefaultsWrapper",
      "product_memberships" : [
        "UserDefaultsWrapper",
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "UserDefaults+Codable.swift",
        "UserDefaultsConvertible.swift",
        "UserDefaultsWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling UserDefaultsWrapper UserDefaults+Codable.swift
[5/11] Compiling UserDefaultsWrapper UserDefaultsConvertible.swift
[6/11] Emitting module UserDefaultsWrapper
[7/11] Compiling UserDefaultsWrapper UserDefaultsWrapper.swift
[8/12] Wrapping AST for UserDefaultsWrapper for debugging
[10/14] Compiling UserDefaultsWrapperExample Example.swift
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:14:16: warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     @UserDefault(key: "username", defaultValue: "Guest")
14 |     static var username: String
   |                |- warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'username' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'username' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:17:16: warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
17 |     static var launchCount: Int
   |                |- warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'launchCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'launchCount' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:20:16: warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
20 |     static var userRatings: Double
   |                |- warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userRatings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userRatings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:23:16: warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
23 |     static var userID: UUID
   |                |- warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userID' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userID' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:26:16: warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
26 |     static var hasCompletedOnboarding: Bool
   |                |- warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'hasCompletedOnboarding' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'hasCompletedOnboarding' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[11/14] Emitting module UserDefaultsWrapperExample
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:14:16: warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     @UserDefault(key: "username", defaultValue: "Guest")
14 |     static var username: String
   |                |- warning: static property 'username' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'username' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'username' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:17:16: warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @UserDefault(key: "launchCount", defaultValue: 0)
17 |     static var launchCount: Int
   |                |- warning: static property 'launchCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'launchCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'launchCount' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:20:16: warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     @UserDefault(key: "userRatings", defaultValue: 4.0)
20 |     static var userRatings: Double
   |                |- warning: static property 'userRatings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userRatings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userRatings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:23:16: warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 |     @UserDefault(key: "userID", defaultValue: UUID())
23 |     static var userID: UUID
   |                |- warning: static property 'userID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'userID' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'userID' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
/host/spi-builder-workspace/Sources/UserDefaultsWrapperExample/Example.swift:26:16: warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     @UserDefault(key: "hasCompletedOnboarding", defaultValue: true)
26 |     static var hasCompletedOnboarding: Bool
   |                |- warning: static property 'hasCompletedOnboarding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'hasCompletedOnboarding' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'hasCompletedOnboarding' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[12/15] Wrapping AST for UserDefaultsWrapperExample for debugging
[13/15] Write Objects.LinkFileList
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a: archive member '_FoundationCollections.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a: archive member 'Foundation.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a: archive member 'FoundationEssentials.autolink' is neither Wasm object file nor LLVM bitcode
wasm-ld: warning: /root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a: archive member 'FoundationInternationalization.autolink' is neither Wasm object file nor LLVM bitcode
[14/15] Linking UserDefaultsWrapperExample.wasm
Build complete! (9.49s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UserDefaultsWrapper",
  "name" : "UserDefaultsWrapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "UserDefaultsWrapper",
      "targets" : [
        "UserDefaultsWrapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UserDefaultsWrapperExample",
      "targets" : [
        "UserDefaultsWrapperExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UserDefaultsWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperTests",
      "path" : "Tests/UserDefaultsWrapperTests",
      "sources" : [
        "UserDefaultsWrapperTests.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UserDefaultsWrapperExample",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapperExample",
      "path" : "Sources/UserDefaultsWrapperExample",
      "product_memberships" : [
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "Example.swift"
      ],
      "target_dependencies" : [
        "UserDefaultsWrapper"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "UserDefaultsWrapper",
      "module_type" : "SwiftTarget",
      "name" : "UserDefaultsWrapper",
      "path" : "Sources/UserDefaultsWrapper",
      "product_memberships" : [
        "UserDefaultsWrapper",
        "UserDefaultsWrapperExample"
      ],
      "sources" : [
        "UserDefaults+Codable.swift",
        "UserDefaultsConvertible.swift",
        "UserDefaultsWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.