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

Successful build of BundleInfoVersioning, reference master (d7d2b3), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 09:33:56 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nsagora/bundle-info-versioning.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nsagora/bundle-info-versioning
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d7d2b3e Merge pull request #6 from nsagora/swiftui-issue
Cloned https://github.com/nsagora/bundle-info-versioning.git
Revision (git rev-parse @):
d7d2b3ed03022fceb97c4109b1973f2a81636506
SUCCESS checkout https://github.com/nsagora/bundle-info-versioning.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "bundle-info-versioning",
      "name": "BundleInfoVersioning",
      "url": "https://github.com/nsagora/bundle-info-versioning.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bundle-info-versioning",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/nsagora/bundle-info-versioning.git
[1/310] Fetching bundle-info-versioning
Fetched https://github.com/nsagora/bundle-info-versioning.git from cache (0.98s)
Creating working copy for https://github.com/nsagora/bundle-info-versioning.git
Working copy of https://github.com/nsagora/bundle-info-versioning.git resolved at master (d7d2b3e)
warning: '.resolve-product-dependencies': dependency 'bundle-info-versioning' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nsagora/bundle-info-versioning.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling BundleInfoVersioning UserDefaultsStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/BundleInfoVersioning/Storage/UserDefaultsStorage.swift:5:25: warning: static property 'prefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | internal class UserDefaultsStorage: Storage {
 4 |
 5 |     internal static var prefix = "com.nsagora.storage."
   |                         |- warning: static property 'prefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'prefix' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: annotate 'prefix' with '@MainActor' if property should only be accessed from the main actor
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var userDefautlts = UserDefaults.standard
[4/8] Compiling BundleInfoVersioning Dictionary+Extensions.swift
[5/8] Compiling BundleInfoVersioning BundleInfoVersioning.swift
[6/8] Compiling BundleInfoVersioning UserDefaults+Extension.swift
[7/8] Emitting module BundleInfoVersioning
/Users/admin/builder/spi-builder-workspace/Sources/BundleInfoVersioning/Storage/UserDefaultsStorage.swift:5:25: warning: static property 'prefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | internal class UserDefaultsStorage: Storage {
 4 |
 5 |     internal static var prefix = "com.nsagora.storage."
   |                         |- warning: static property 'prefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'prefix' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: annotate 'prefix' with '@MainActor' if property should only be accessed from the main actor
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var userDefautlts = UserDefaults.standard
[8/8] Compiling BundleInfoVersioning Storage.swift
Build complete! (7.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BundleInfoVersioning",
  "name" : "BundleInfoVersioning",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "BundleInfoVersioning",
      "targets" : [
        "BundleInfoVersioning"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BundleInfoVersioningTests",
      "module_type" : "SwiftTarget",
      "name" : "BundleInfoVersioningTests",
      "path" : "Tests/BundleInfoVersioningTests",
      "sources" : [
        "BundleInfoObserverTests.swift",
        "Fakes/FakeBundle.swift",
        "Fakes/FakeStorage.swift",
        "Fakes/FakeUserDefaults.swift",
        "UserDefaultsStorageTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "BundleInfoVersioning"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BundleInfoVersioning",
      "module_type" : "SwiftTarget",
      "name" : "BundleInfoVersioning",
      "path" : "Sources/BundleInfoVersioning",
      "product_memberships" : [
        "BundleInfoVersioning"
      ],
      "sources" : [
        "BundleInfoVersioning.swift",
        "Extensions/Dictionary+Extensions.swift",
        "Extensions/UserDefaults+Extension.swift",
        "Storage/Storage.swift",
        "Storage/UserDefaultsStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.