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.1 for macOS (SPM) on 30 Apr 2025 01:12:51 UTC.

Swift 6 data race errors: 1

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: 4.61.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
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.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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/37] Emitting module Contentful
[5/40] Compiling Contentful TypedQuery.swift
[6/40] Compiling Contentful Client+UIKit.swift
[7/40] Compiling Contentful Util.swift
[8/40] Compiling Contentful Metadata.swift
[9/40] Compiling Contentful Persistence.swift
[10/40] Compiling Contentful Query.swift
[11/40] Compiling Contentful Link.swift
[12/40] Compiling Contentful LinkResolver.swift
[13/40] Compiling Contentful Locale.swift
[14/40] Compiling Contentful Location.swift
[15/40] Compiling Contentful Decodable.swift
[16/40] Compiling Contentful Endpoints.swift
[17/40] Compiling Contentful Entry.swift
[18/40] Compiling Contentful Error.swift
[19/40] Compiling Contentful Client+Sync.swift
[20/40] Compiling Contentful Client.swift
[21/40] Compiling Contentful ClientConfiguration.swift
[22/40] Compiling Contentful ContentType.swift
[23/40] Compiling Contentful ContentfulLogger.swift
[24/40] Compiling Contentful DataCache.swift
[25/40] Compiling Contentful Date.swift
[26/40] Compiling Contentful DateFormatterCache.swift
[27/40] Compiling Contentful QueryOperation.swift
[28/40] Compiling Contentful Resource.swift
[29/40] Compiling Contentful RichText.swift
[30/40] Compiling Contentful Space.swift
[31/40] Compiling Contentful SyncSpace.swift
[32/40] Compiling Contentful Sys.swift
[33/40] Compiling Contentful Field.swift
[34/40] Compiling Contentful FieldType.swift
[35/40] Compiling Contentful ImageOptions.swift
[36/40] Compiling Contentful JSONDecoderBuilder.swift
[37/40] Compiling Contentful Client+AppKit.swift
[38/40] Compiling Contentful ArrayResponse.swift
[39/40] Compiling Contentful Asset.swift
[40/40] Compiling Contentful Client+Fetch.swift
[41/52] Compiling ContentfulPersistence SynchronizationManager+SeedDB.swift
[42/53] Compiling ContentfulPersistence RelationshipsManager.swift
[43/53] Compiling ContentfulPersistence Relationship.swift
[44/53] Compiling ContentfulPersistence RelationshipChildId.swift
[45/53] Compiling ContentfulPersistence RelationshipData.swift
[46/53] Compiling ContentfulPersistence RelationshipCache.swift
[47/53] Compiling ContentfulPersistence PersistenceStore.swift
[48/53] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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")
[49/53] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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/53] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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")
[51/53] Compiling ContentfulPersistence CoreDataStore.swift
[52/53] Compiling ContentfulPersistence DataCache.swift
[53/53] Compiling ContentfulPersistence SynchronizationManager.swift
Build complete! (15.59s)
Fetching https://github.com/contentful/contentful.swift
[1/11124] Fetching contentful.swift
Fetched https://github.com/contentful/contentful.swift from cache (1.76s)
Computing version for https://github.com/contentful/contentful.swift
Computed https://github.com/contentful/contentful.swift at 5.5.13 (2.46s)
Creating working copy for https://github.com/contentful/contentful.swift
Working copy of https://github.com/contentful/contentful.swift resolved at 5.5.13
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.