The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ProhibitedWord, reference main (58f974), with Swift 6.1 for macOS (SPM) on 3 Oct 2026 23:59:56 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/qalvinahmad/prohibited-word.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/qalvinahmad/prohibited-word
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 58f9746 feat(swift): add root Package.swift for Swift Package Manager
Cloned https://github.com/qalvinahmad/prohibited-word.git
Revision (git rev-parse @):
58f974666576aeb4f2b3b699f974f4d57d3e718f
SUCCESS checkout https://github.com/qalvinahmad/prohibited-word.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/qalvinahmad/prohibited-word.git
https://github.com/qalvinahmad/prohibited-word.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ProhibitedWord",
  "name" : "ProhibitedWord",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "ProhibitedWord",
      "targets" : [
        "ProhibitedWord"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ProhibitedWordTests",
      "module_type" : "SwiftTarget",
      "name" : "ProhibitedWordTests",
      "path" : "packages/swift/Tests/ProhibitedWordTests",
      "sources" : [
        "ProhibitedWordTests.swift"
      ],
      "target_dependencies" : [
        "ProhibitedWord"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ProhibitedWord",
      "module_type" : "SwiftTarget",
      "name" : "ProhibitedWord",
      "path" : "packages/swift/Sources/ProhibitedWord",
      "product_memberships" : [
        "ProhibitedWord"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/words-lite.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/words.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ProhibitedWord.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/4] Write sources
[1/4] Copying words.json
[1/4] Copying words-lite.json
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/7] Compiling ProhibitedWord resource_bundle_accessor.swift
[6/7] Emitting module ProhibitedWord
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:223:13: warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | }
222 |
223 | private var wordDB: DB = {
    |             |- warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'wordDB' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'wordDB' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |   guard let url = Bundle.module.url(forResource: "words", withExtension: "json"),
225 |         let data = try? Data(contentsOf: url),
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:232:13: warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
230 | }()
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
    |             |- warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dictID' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dictID' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | private var cache: [String: Engine] = [:]
234 | private let cacheLock = NSLock()
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:233:13: warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
233 | private var cache: [String: Engine] = [:]
    |             |- warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | private let cacheLock = NSLock()
235 |
[7/7] Compiling ProhibitedWord ProhibitedWord.swift
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:223:13: warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | }
222 |
223 | private var wordDB: DB = {
    |             |- warning: var 'wordDB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'wordDB' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'wordDB' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |   guard let url = Bundle.module.url(forResource: "words", withExtension: "json"),
225 |         let data = try? Data(contentsOf: url),
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:232:13: warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
230 | }()
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
    |             |- warning: var 'dictID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'dictID' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'dictID' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
233 | private var cache: [String: Engine] = [:]
234 | private let cacheLock = NSLock()
/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/ProhibitedWord.swift:233:13: warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 |
232 | private var dictID: String = "\(wordDB.version ?? 0):\(wordDB.langs.count)"
233 | private var cache: [String: Engine] = [:]
    |             |- warning: var 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
234 | private let cacheLock = NSLock()
235 |
Build complete! (4.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ProhibitedWord",
  "name" : "ProhibitedWord",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "ProhibitedWord",
      "targets" : [
        "ProhibitedWord"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ProhibitedWordTests",
      "module_type" : "SwiftTarget",
      "name" : "ProhibitedWordTests",
      "path" : "packages/swift/Tests/ProhibitedWordTests",
      "sources" : [
        "ProhibitedWordTests.swift"
      ],
      "target_dependencies" : [
        "ProhibitedWord"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ProhibitedWord",
      "module_type" : "SwiftTarget",
      "name" : "ProhibitedWord",
      "path" : "packages/swift/Sources/ProhibitedWord",
      "product_memberships" : [
        "ProhibitedWord"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/words-lite.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/packages/swift/Sources/ProhibitedWord/words.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ProhibitedWord.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.