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 FeatureToggles, reference main (b4a412), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 11:00:11 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/invia-flights/swift-feature-toggles.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/invia-flights/swift-feature-toggles
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b4a4126 Merge pull request #1 from PiotrDomo/access_control_fix
Cloned https://github.com/invia-flights/swift-feature-toggles.git
Revision (git rev-parse @):
b4a4126c79b30ee8c76551c4192f2ecd891793e0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/invia-flights/swift-feature-toggles.git at main
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2038] Fetching swift-docc-plugin
[226/5191] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.42s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.42s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.3.0 (0.70s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.69s)
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
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": "swift-feature-toggles",
      "name": "FeatureToggles",
      "url": "https://github.com/invia-flights/swift-feature-toggles.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-feature-toggles",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/invia-flights/swift-feature-toggles.git
[1/417] Fetching swift-feature-toggles
Fetched https://github.com/invia-flights/swift-feature-toggles.git from cache (1.69s)
Creating working copy for https://github.com/invia-flights/swift-feature-toggles.git
Working copy of https://github.com/invia-flights/swift-feature-toggles.git resolved at main (b4a4126)
warning: '.resolve-product-dependencies': dependency 'swift-feature-toggles' 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/invia-flights/swift-feature-toggles.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/8] Compiling FeatureToggles FeatureToggleValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:7:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 |   /// A shared instance.
 7 |   public static var shared = FeatureToggleValues()
   |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'shared' 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
 8 |
 9 |   internal let userDefaults: UserDefaults
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:78:1: warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
76 | }
77 |
78 | extension UserDefaults: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
79 |
[6/8] Compiling FeatureToggles FeatureToggle.swift
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:7:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 |   /// A shared instance.
 7 |   public static var shared = FeatureToggleValues()
   |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'shared' 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
 8 |
 9 |   internal let userDefaults: UserDefaults
[7/8] Compiling FeatureToggles FeatureToggleKey.swift
[8/8] Emitting module FeatureToggles
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:7:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 |   /// A shared instance.
 7 |   public static var shared = FeatureToggleValues()
   |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'shared' 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
 8 |
 9 |   internal let userDefaults: UserDefaults
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:78:1: warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
76 | }
77 |
78 | extension UserDefaults: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
79 |
Build complete! (19.18s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin.git"
    }
  ],
  "manifest_display_name" : "FeatureToggles",
  "name" : "FeatureToggles",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "FeatureToggles",
      "targets" : [
        "FeatureToggles"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FeatureTogglesTests",
      "module_type" : "SwiftTarget",
      "name" : "FeatureTogglesTests",
      "path" : "Tests/FeatureTogglesTests",
      "sources" : [
        "FeatureTogglesTests.swift"
      ],
      "target_dependencies" : [
        "FeatureToggles"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FeatureToggles",
      "module_type" : "SwiftTarget",
      "name" : "FeatureToggles",
      "path" : "Sources/FeatureToggles",
      "product_memberships" : [
        "FeatureToggles"
      ],
      "sources" : [
        "FeatureToggle.swift",
        "FeatureToggleKey.swift",
        "FeatureToggleValues.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/invia-flights/swift-feature-toggles/main
Repository:               invia-flights/swift-feature-toggles
Swift version used:       6.0
    .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0")
Target:                   FeatureToggles
Generating documentation for 'FeatureToggles'...
Converting documentation...
Conversion complete! (0.15s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/invia-flights/swift-feature-toggles/main'
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Compiling SymbolKit SourceRange.swift
[8/53] Compiling SymbolKit Metadata.swift
[9/53] Compiling SymbolKit Module.swift
[10/53] Compiling SymbolKit OperatingSystem.swift
[11/53] Compiling SymbolKit Platform.swift
[12/57] Emitting module Snippets
[13/57] Compiling Snippets Snippet.swift
[14/57] Compiling SymbolKit Mixin+Equals.swift
[15/57] Compiling SymbolKit Mixin+Hash.swift
[16/57] Compiling SymbolKit Mixin.swift
[17/57] Compiling SymbolKit LineList.swift
[18/57] Compiling SymbolKit Position.swift
[19/57] Compiling SymbolKit Relationship.swift
[20/57] Compiling SymbolKit RelationshipKind.swift
[21/57] Compiling SymbolKit SourceOrigin.swift
[22/57] Compiling SymbolKit GenericConstraints.swift
[23/57] Compiling SymbolKit Swift.swift
[24/57] Compiling SymbolKit Names.swift
[25/57] Compiling SymbolKit SPI.swift
[26/57] Compiling SymbolKit Snippet.swift
[27/57] Compiling SymbolKit Extension.swift
[28/57] Compiling SymbolKit SemanticVersion.swift
[29/57] Compiling SymbolKit AccessControl.swift
[30/57] Compiling SymbolKit Availability.swift
[31/57] Compiling SymbolKit AvailabilityItem.swift
[32/57] Compiling SymbolKit Domain.swift
[33/57] Compiling SymbolKit DeclarationFragments.swift
[34/57] Compiling SymbolKit Fragment.swift
[35/57] Compiling SymbolKit FragmentKind.swift
[36/57] Compiling SymbolKit FunctionParameter.swift
[37/57] Compiling SymbolKit FunctionSignature.swift
[38/57] Emitting module SymbolKit
[39/57] Compiling SymbolKit Identifier.swift
[40/57] Compiling SymbolKit KindIdentifier.swift
[41/57] Compiling SymbolKit Location.swift
[42/57] Compiling SymbolKit Mutability.swift
[43/57] Compiling SymbolKit GenericConstraint.swift
[44/57] Compiling SymbolKit GenericParameter.swift
[45/57] Compiling SymbolKit Generics.swift
[46/57] Compiling SymbolKit Namespace.swift
[47/57] Compiling SymbolKit Symbol.swift
[48/57] Compiling SymbolKit SymbolKind.swift
[49/57] Compiling SymbolKit SymbolGraph.swift
[50/57] Compiling SymbolKit GraphCollector.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.59s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/5] Compiling FeatureToggles FeatureToggle.swift
[3/5] Compiling FeatureToggles FeatureToggleKey.swift
[4/5] Emitting module FeatureToggles
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:78:1: warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
76 | }
77 |
78 | extension UserDefaults: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
79 |
[5/5] Compiling FeatureToggles FeatureToggleValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:78:1: warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
76 | }
77 |
78 | extension UserDefaults: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'UserDefaults' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
79 |
Build of target: 'FeatureToggles' complete! (0.53s)
     105
11	/Users/admin/builder/spi-builder-workspace/.docs/invia-flights/swift-feature-toggles/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/invia-flights/swift-feature-toggles/main
File count: 105
Doc size:   11.0MB
Preparing doc bundle ...
Uploading prod-invia-flights-swift-feature-toggles-main-8daf4826.zip to s3://spi-docs-inbox/prod-invia-flights-swift-feature-toggles-main-8daf4826.zip
Copying... [10%]
Copying... [21%]
Copying... [30%]
Copying... [41%]
Copying... [50%]
Copying... [60%]
Copying... [70%]
Copying... [80%]
Copying... [91%]
Copying... [100%]
Done.