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 0.1.5 (3a39be), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 11:03:31 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: 0.1.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/invia-flights/swift-feature-toggles
 * tag               0.1.5      -> FETCH_HEAD
HEAD is now at 3a39bee Lower `swift-tools-version` requirement
Cloned https://github.com/invia-flights/swift-feature-toggles.git
Revision (git rev-parse @):
3a39bee52f105b5d6b545d47bb72dbbed806ac5d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/invia-flights/swift-feature-toggles.git at 0.1.5
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin.git
[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.34s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.34s)
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.74s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.72s)
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
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
========================================
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.68s)
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 0.1.5 (3a39bee)
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] Emitting module FeatureToggles
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:8: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
 6 |
 7 | 	/// A shared instance.
 8 |   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
 9 |
10 |   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 FeatureToggleKey.swift
[7/8] Compiling FeatureToggles FeatureToggleValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:8: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
 6 |
 7 | 	/// A shared instance.
 8 |   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
 9 |
10 |   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 |
[8/8] Compiling FeatureToggles FeatureToggle.swift
/Users/admin/builder/spi-builder-workspace/Sources/FeatureToggles/FeatureToggleValues.swift:8: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
 6 |
 7 | 	/// A shared instance.
 8 |   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
 9 |
10 |   internal let userDefaults: UserDefaults
Build complete! (20.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/0.1.5
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.14s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/invia-flights/swift-feature-toggles/0.1.5'
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 SymbolKit SemanticVersion.swift
[7/53] Compiling SymbolKit AccessControl.swift
[8/53] Compiling SymbolKit Availability.swift
[9/53] Compiling SymbolKit AvailabilityItem.swift
[10/53] Compiling SymbolKit Domain.swift
[11/56] Compiling Snippets SnippetParser.swift
[12/56] Emitting module Snippets
[13/57] Compiling Snippets Snippet.swift
[14/57] Emitting module SymbolKit
[15/57] Compiling SymbolKit Relationship.swift
[16/57] Compiling SymbolKit RelationshipKind.swift
[17/57] Compiling SymbolKit SourceOrigin.swift
[18/57] Compiling SymbolKit GenericConstraints.swift
[19/57] Compiling SymbolKit Swift.swift
[20/57] Compiling SymbolKit Names.swift
[21/57] Compiling SymbolKit SPI.swift
[22/57] Compiling SymbolKit Snippet.swift
[23/57] Compiling SymbolKit Extension.swift
[24/57] Compiling SymbolKit DeclarationFragments.swift
[25/57] Compiling SymbolKit Fragment.swift
[26/57] Compiling SymbolKit FragmentKind.swift
[27/57] Compiling SymbolKit FunctionParameter.swift
[28/57] Compiling SymbolKit FunctionSignature.swift
[29/57] Compiling SymbolKit Symbol.swift
[30/57] Compiling SymbolKit SymbolKind.swift
[31/57] Compiling SymbolKit SymbolGraph.swift
[32/57] Compiling SymbolKit GraphCollector.swift
[33/57] Compiling SymbolKit Identifier.swift
[34/57] Compiling SymbolKit KindIdentifier.swift
[35/57] Compiling SymbolKit Location.swift
[36/57] Compiling SymbolKit Mutability.swift
[37/57] Compiling SymbolKit GenericConstraint.swift
[38/57] Compiling SymbolKit GenericParameter.swift
[39/57] Compiling SymbolKit Generics.swift
[40/57] Compiling SymbolKit Namespace.swift
[41/57] Compiling SymbolKit SourceRange.swift
[42/57] Compiling SymbolKit Metadata.swift
[43/57] Compiling SymbolKit Module.swift
[44/57] Compiling SymbolKit OperatingSystem.swift
[45/57] Compiling SymbolKit Platform.swift
[46/57] Compiling SymbolKit Mixin+Equals.swift
[47/57] Compiling SymbolKit Mixin+Hash.swift
[48/57] Compiling SymbolKit Mixin.swift
[49/57] Compiling SymbolKit LineList.swift
[50/57] Compiling SymbolKit Position.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] Emitting module snippet_extract
[57/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.70s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/5] Compiling FeatureToggles FeatureToggleKey.swift
[3/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 |
[4/5] Compiling FeatureToggles FeatureToggle.swift
[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.54s)
     103
11	/Users/admin/builder/spi-builder-workspace/.docs/invia-flights/swift-feature-toggles/0.1.5
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/invia-flights/swift-feature-toggles/0.1.5
File count: 103
Doc size:   11.0MB
Preparing doc bundle ...
Uploading prod-invia-flights-swift-feature-toggles-0.1.5-763f322b.zip to s3://spi-docs-inbox/prod-invia-flights-swift-feature-toggles-0.1.5-763f322b.zip
Copying... [10%]
Copying... [21%]
Copying... [30%]
Copying... [41%]
Copying... [50%]
Copying... [60%]
Copying... [70%]
Copying... [80%]
Copying... [90%]
Copying... [100%]
Done.