The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of PersistentCacheKit, reference master (5cd697), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 08:36:24 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davbeck/PersistentCacheKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davbeck/PersistentCacheKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5cd6979 Bump version number
Cloned https://github.com/davbeck/PersistentCacheKit.git
Revision (git rev-parse @):
5cd6979a225a76c04a2f0813bdedcea323ff3e29
SUCCESS checkout https://github.com/davbeck/PersistentCacheKit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/davbeck/PersistentCacheKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/6] Compiling PersistentCacheKit SQLiteCacheStorage.swift
[4/6] Emitting module PersistentCacheKit
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:6:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
  4 | #endif
  5 |
  6 | public protocol CacheStorage: class {
    |                               `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
  7 | 	subscript(_: String) -> Data? { get set }
  8 | 	/// Wait until all operations have been completed and data has been saved.
[5/6] Compiling PersistentCacheKit PersistentCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:6:31: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
  4 | #endif
  5 |
  6 | public protocol CacheStorage: class {
    |                               `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
  7 | 	subscript(_: String) -> Data? { get set }
  8 | 	/// Wait until all operations have been completed and data has been saved.
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:62:9: warning: capture of non-sendable type 'Key.Type' in an isolated closure
 60 | 	public func clearMemoryCache(completion: (() -> Void)? = nil) {
 61 | 		self.queue.async(flags: .barrier) {
 62 | 			self.internalCache = [:]
    |         `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
 63 |
 64 | 			if let completion = completion {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:62:9: warning: capture of non-sendable type 'Value.Type' in an isolated closure
 60 | 	public func clearMemoryCache(completion: (() -> Void)? = nil) {
 61 | 		self.queue.async(flags: .barrier) {
 62 | 			self.internalCache = [:]
    |         `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
 63 |
 64 | 			if let completion = completion {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:60:14: warning: capture of non-sendable type 'Key.Type' in an isolated closure
 58 | 	}
 59 |
 60 | 	public func clearMemoryCache(completion: (() -> Void)? = nil) {
    |              `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
 61 | 		self.queue.async(flags: .barrier) {
 62 | 			self.internalCache = [:]
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:60:14: warning: capture of non-sendable type 'Value.Type' in an isolated closure
 58 | 	}
 59 |
 60 | 	public func clearMemoryCache(completion: (() -> Void)? = nil) {
    |              `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
 61 | 		self.queue.async(flags: .barrier) {
 62 | 			self.internalCache = [:]
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:109:23: warning: capture of non-sendable type 'Value.Type' in an isolated closure
107 |
108 | 			self.queue.async(flags: .barrier) {
109 | 				self.internalCache[key] = newValue
    |                       `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
110 |
111 | 				self.storage?[self.stringKey(for: key)] = data
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:109:5: warning: capture of non-sendable type 'Key.Type' in an isolated closure
107 |
108 | 			self.queue.async(flags: .barrier) {
109 | 				self.internalCache[key] = newValue
    |     `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
110 |
111 | 				self.storage?[self.stringKey(for: key)] = data
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:105:3: warning: capture of non-sendable type 'Key.Type' in an isolated closure
103 | 			}
104 | 		}
105 | 		set {
    |   `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
106 | 			let data = try? self.encoder.encode(newValue)
107 |
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:105:3: warning: capture of non-sendable type 'Value.Type' in an isolated closure
103 | 			}
104 | 		}
105 | 		set {
    |   `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
106 | 			let data = try? self.encoder.encode(newValue)
107 |
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:140:20: warning: capture of non-sendable type 'Key.Type' in an isolated closure
138 | 			} else {
139 | 				self.queue.async {
140 | 					if let data = self.storage?[self.stringKey(for: key)], let item = try? self.decoder.decode(Item<Value>.self, from: data) {
    |                    `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
141 | 						queue.async {
142 | 							completion(item.value)
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:140:20: warning: capture of non-sendable type 'Value.Type' in an isolated closure
138 | 			} else {
139 | 				self.queue.async {
140 | 					if let data = self.storage?[self.stringKey(for: key)], let item = try? self.decoder.decode(Item<Value>.self, from: data) {
    |                    `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
141 | 						queue.async {
142 | 							completion(item.value)
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:134:15: warning: capture of non-sendable type 'Key.Type' in an isolated closure
132 | 	}
133 |
134 | 	private func _fetch(_ key: Key, queue: DispatchQueue = .main, fallback: (() -> Value)?, completion: @escaping (Value?) -> Void) {
    |               `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
135 | 		self.queue.sync {
136 | 			if let item = self.internalCache[key], item.isValid {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:134:15: warning: capture of non-sendable type 'Value.Type' in an isolated closure
132 | 	}
133 |
134 | 	private func _fetch(_ key: Key, queue: DispatchQueue = .main, fallback: (() -> Value)?, completion: @escaping (Value?) -> Void) {
    |               `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
135 | 		self.queue.sync {
136 | 			if let item = self.internalCache[key], item.isValid {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:142:8: warning: capture of non-sendable type 'Value.Type' in an isolated closure
140 | 					if let data = self.storage?[self.stringKey(for: key)], let item = try? self.decoder.decode(Item<Value>.self, from: data) {
141 | 						queue.async {
142 | 							completion(item.value)
    |        `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
143 | 						}
144 | 					} else {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:134:90: warning: capture of non-sendable type 'Value.Type' in an isolated closure
132 | 	}
133 |
134 | 	private func _fetch(_ key: Key, queue: DispatchQueue = .main, fallback: (() -> Value)?, completion: @escaping (Value?) -> Void) {
    |                                                                                          `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
135 | 		self.queue.sync {
136 | 			if let item = self.internalCache[key], item.isValid {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:146:31: warning: capture of non-sendable type 'Value.Type' in an isolated closure
144 | 					} else {
145 | 						queue.async {
146 | 							if let value = fallback?() {
    |                               `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
147 | 								self[key] = value
148 |
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:134:64: warning: capture of non-sendable type 'Value.Type' in an isolated closure
132 | 	}
133 |
134 | 	private func _fetch(_ key: Key, queue: DispatchQueue = .main, fallback: (() -> Value)?, completion: @escaping (Value?) -> Void) {
    |                                                                `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
135 | 		self.queue.sync {
136 | 			if let item = self.internalCache[key], item.isValid {
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:147:9: warning: capture of non-sendable type 'Key.Type' in an isolated closure
145 | 						queue.async {
146 | 							if let value = fallback?() {
147 | 								self[key] = value
    |         `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
148 |
149 | 								completion(value)
/Users/admin/builder/spi-builder-workspace/Sources/PersistentCacheKit/PersistentCache.swift:134:15: warning: capture of non-sendable type 'Key.Type' in an isolated closure
132 | 	}
133 |
134 | 	private func _fetch(_ key: Key, queue: DispatchQueue = .main, fallback: (() -> Value)?, completion: @escaping (Value?) -> Void) {
    |               `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
135 | 		self.queue.sync {
136 | 			if let item = self.internalCache[key], item.isValid {
[6/6] Compiling PersistentCacheKit SQLite.swift
Build complete! (3.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PersistentCacheKit",
  "name" : "PersistentCacheKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "PersistentCacheKit",
      "targets" : [
        "PersistentCacheKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PersistentCacheKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PersistentCacheKitTests",
      "path" : "Tests/PersistentCacheKitTests",
      "sources" : [
        "PersistentCacheKitTests.swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PersistentCacheKit",
      "module_type" : "SwiftTarget",
      "name" : "PersistentCacheKit",
      "path" : "Sources/PersistentCacheKit",
      "product_memberships" : [
        "PersistentCacheKit"
      ],
      "sources" : [
        "PersistentCache.swift",
        "SQLite.swift",
        "SQLiteCacheStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.