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 ContentfulPersistence, reference master (44e998), with Swift 6.0 for macOS (SPM) on 8 Apr 2025 04:03:28 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/contentful/contentful-persistence.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/contentful/contentful-persistence.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 44e9988 chore: update codeowners and catalog-info.yaml to DX [DX-5] (#169)
Submodule path 'Carthage/Checkouts/OHHTTPStubs': checked out 'e9b4beccfca092edaabf2082c0c12535950e005f'
Submodule path 'Carthage/Checkouts/contentful.swift': checked out '8977d5d6a780b322183214f408b82066b6381b2b'
Submodule 'Carthage/Checkouts/OHHTTPStubs' (https://github.com/mariuskatcontentful/OHHTTPStubs.git) registered for path 'Carthage/Checkouts/OHHTTPStubs'
Submodule 'Carthage/Checkouts/contentful.swift' (https://github.com/contentful/contentful.swift.git) registered for path 'Carthage/Checkouts/contentful.swift'
Cloning into '/Users/admin/builder/spi-builder-workspace/Carthage/Checkouts/OHHTTPStubs'...
Cloning into '/Users/admin/builder/spi-builder-workspace/Carthage/Checkouts/contentful.swift'...
Cloned https://github.com/contentful/contentful-persistence.swift.git
Revision (git rev-parse @):
44e99889f66d4d5e9da0829fc09949fff4366b09
SUCCESS checkout https://github.com/contentful/contentful-persistence.swift.git at master
Fetching https://github.com/contentful/contentful.swift
[1/11121] Fetching contentful.swift
Fetched https://github.com/contentful/contentful.swift from cache (1.95s)
Computing version for https://github.com/contentful/contentful.swift
Computed https://github.com/contentful/contentful.swift at 5.5.1 (0.60s)
Creating working copy for https://github.com/contentful/contentful.swift
Working copy of https://github.com/contentful/contentful.swift resolved at 5.5.1
========================================
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": "contentful-persistence.swift",
      "name": "ContentfulPersistence",
      "url": "https://github.com/contentful/contentful-persistence.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/contentful-persistence.swift",
      "dependencies": [
        {
          "identity": "contentful.swift",
          "name": "Contentful",
          "url": "https://github.com/contentful/contentful.swift",
          "version": "5.5.13",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/contentful.swift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/contentful/contentful-persistence.swift.git
[1/12773] Fetching contentful-persistence.swift
Fetched https://github.com/contentful/contentful-persistence.swift.git from cache (2.11s)
Fetching https://github.com/contentful/contentful.swift from cache
Fetched https://github.com/contentful/contentful.swift from cache (0.53s)
Computing version for https://github.com/contentful/contentful.swift
Computed https://github.com/contentful/contentful.swift at 5.5.13 (2.53s)
Creating working copy for https://github.com/contentful/contentful.swift
Working copy of https://github.com/contentful/contentful.swift resolved at 5.5.13
Creating working copy for https://github.com/contentful/contentful-persistence.swift.git
Working copy of https://github.com/contentful/contentful-persistence.swift.git resolved at master (44e9988)
warning: '.resolve-product-dependencies': dependency 'contentful-persistence.swift' is not used by any target
Found 1 product dependencies
  - Contentful
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/contentful/contentful-persistence.swift.git
https://github.com/contentful/contentful-persistence.swift.git
{
  "dependencies" : [
    {
      "identity" : "contentful.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.5.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/contentful/contentful.swift"
    }
  ],
  "manifest_display_name" : "ContentfulPersistence",
  "name" : "ContentfulPersistence",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ContentfulPersistence",
      "targets" : [
        "ContentfulPersistence"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContentfulPersistence",
      "module_type" : "SwiftTarget",
      "name" : "ContentfulPersistence",
      "path" : "Sources/ContentfulPersistence",
      "product_dependencies" : [
        "Contentful"
      ],
      "product_memberships" : [
        "ContentfulPersistence"
      ],
      "sources" : [
        "CoreDataStore.swift",
        "DataCache.swift",
        "DateFormatterCache.swift",
        "Persistable.swift",
        "PersistenceStore.swift",
        "Relationships/Relationship.swift",
        "Relationships/RelationshipCache.swift",
        "Relationships/RelationshipChildId.swift",
        "Relationships/RelationshipData.swift",
        "Relationships/RelationshipsManager.swift",
        "SynchronizationManager+SeedDB.swift",
        "SynchronizationManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/36] Emitting module Contentful
[5/39] Compiling Contentful Endpoints.swift
[6/39] Compiling Contentful Entry.swift
[7/39] Compiling Contentful Error.swift
[8/39] Compiling Contentful Field.swift
[9/39] Compiling Contentful LinkResolver.swift
[10/39] Compiling Contentful Locale.swift
[11/39] Compiling Contentful Location.swift
[12/39] Compiling Contentful Client+Sync.swift
[13/39] Compiling Contentful Client.swift
[14/39] Compiling Contentful ClientConfiguration.swift
[15/39] Compiling Contentful ContentType.swift
[16/39] Compiling Contentful TypedQuery.swift
[17/39] Compiling Contentful Client+UIKit.swift
[18/39] Compiling Contentful Util.swift
[19/39] Compiling Contentful Space.swift
[20/39] Compiling Contentful SyncSpace.swift
[21/39] Compiling Contentful Sys.swift
[22/39] Compiling Contentful ContentfulLogger.swift
[23/39] Compiling Contentful DataCache.swift
[24/39] Compiling Contentful Date.swift
[25/39] Compiling Contentful Decodable.swift
[26/39] Compiling Contentful Metadata.swift
[27/39] Compiling Contentful Persistence.swift
[28/39] Compiling Contentful Query.swift
[29/39] Compiling Contentful QueryOperation.swift
[30/39] Compiling Contentful Resource.swift
[31/39] Compiling Contentful RichText.swift
[32/39] Compiling Contentful FieldType.swift
[33/39] Compiling Contentful ImageOptions.swift
[34/39] Compiling Contentful JSONDecoderBuilder.swift
[35/39] Compiling Contentful Link.swift
[36/39] Compiling Contentful Client+AppKit.swift
[37/39] Compiling Contentful ArrayResponse.swift
[38/39] Compiling Contentful Asset.swift
[39/39] Compiling Contentful Client+Fetch.swift
[40/51] Compiling ContentfulPersistence Relationship.swift
[41/52] Compiling ContentfulPersistence SynchronizationManager+SeedDB.swift
[42/52] Compiling ContentfulPersistence RelationshipsManager.swift
[43/52] Compiling ContentfulPersistence RelationshipChildId.swift
[44/52] Compiling ContentfulPersistence DateFormatterCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentfulPersistence/DateFormatterCache.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class DateFormatterCache {
   |       `- note: class 'DateFormatterCache' does not conform to the 'Sendable' protocol
11 |     static let shared = DateFormatterCache()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- 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
12 |
13 |     private let queue = DispatchQueue(label: "com.contentful-persistence.formattercache")
[45/52] Compiling ContentfulPersistence Persistable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentfulPersistence/DateFormatterCache.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class DateFormatterCache {
   |       `- note: class 'DateFormatterCache' does not conform to the 'Sendable' protocol
11 |     static let shared = DateFormatterCache()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- 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
12 |
13 |     private let queue = DispatchQueue(label: "com.contentful-persistence.formattercache")
[46/52] Compiling ContentfulPersistence RelationshipCache.swift
[47/52] Compiling ContentfulPersistence PersistenceStore.swift
[48/52] Compiling ContentfulPersistence RelationshipData.swift
[49/52] Emitting module ContentfulPersistence
/Users/admin/builder/spi-builder-workspace/Sources/ContentfulPersistence/DateFormatterCache.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class DateFormatterCache {
   |       `- note: class 'DateFormatterCache' does not conform to the 'Sendable' protocol
11 |     static let shared = DateFormatterCache()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- 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
12 |
13 |     private let queue = DispatchQueue(label: "com.contentful-persistence.formattercache")
[50/52] Compiling ContentfulPersistence CoreDataStore.swift
[51/52] Compiling ContentfulPersistence DataCache.swift
[52/52] Compiling ContentfulPersistence SynchronizationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContentfulPersistence/DateFormatterCache.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class DateFormatterCache {
   |       `- note: class 'DateFormatterCache' does not conform to the 'Sendable' protocol
11 |     static let shared = DateFormatterCache()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DateFormatterCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- 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
12 |
13 |     private let queue = DispatchQueue(label: "com.contentful-persistence.formattercache")
Build complete! (23.83s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "contentful.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.5.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/contentful/contentful.swift"
    }
  ],
  "manifest_display_name" : "ContentfulPersistence",
  "name" : "ContentfulPersistence",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ContentfulPersistence",
      "targets" : [
        "ContentfulPersistence"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContentfulPersistence",
      "module_type" : "SwiftTarget",
      "name" : "ContentfulPersistence",
      "path" : "Sources/ContentfulPersistence",
      "product_dependencies" : [
        "Contentful"
      ],
      "product_memberships" : [
        "ContentfulPersistence"
      ],
      "sources" : [
        "CoreDataStore.swift",
        "DataCache.swift",
        "DateFormatterCache.swift",
        "Persistable.swift",
        "PersistenceStore.swift",
        "Relationships/Relationship.swift",
        "Relationships/RelationshipCache.swift",
        "Relationships/RelationshipChildId.swift",
        "Relationships/RelationshipData.swift",
        "Relationships/RelationshipsManager.swift",
        "SynchronizationManager+SeedDB.swift",
        "SynchronizationManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.