The Swift Package Index logo.Swift Package Index

Build Information

Successful build of WWCacheManager, reference 1.1.0 (f1cb47), with Swift 6.1 for macOS (SPM) on 27 Jun 2026 17:18:38 UTC.

Swift 6 data race errors: 0

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: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWCacheManager.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWCacheManager
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at f1cb47f - 增加執行緒安全功能 (讀寫鎖) - Swift 5.7 + iOS 16
Cloned https://github.com/William-Weng/WWCacheManager.git
Revision (git rev-parse @):
f1cb47f9ecf8bd4c323432a1145f4b5628bb7bab
SUCCESS checkout https://github.com/William-Weng/WWCacheManager.git at 1.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/William-Weng/WWCacheManager.git
https://github.com/William-Weng/WWCacheManager.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWCacheManager",
  "name" : "WWCacheManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "WWCacheManager",
      "targets" : [
        "WWCacheManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWCacheManager",
      "module_type" : "SwiftTarget",
      "name" : "WWCacheManager",
      "path" : "Sources/WWCacheManager",
      "product_memberships" : [
        "WWCacheManager"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "WWCacheManager.swift",
        "WWCacheValue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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
[1/3] Copying Privacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Compiling WWCacheManager WWCacheValue.swift
[5/7] Compiling WWCacheManager resource_bundle_accessor.swift
[6/7] Emitting module WWCacheManager
[7/7] Compiling WWCacheManager WWCacheManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:80:13: warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |              `- note: generic class 'WWCacheManager' does not conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 78 |
 79 |         queue.async(flags: .barrier) { [self] in
 80 |             cache[key] = value
    |             `- warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 81 |             costs[key] = cost
 82 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:80:19: warning: capture of 'key' with non-sendable type 'KeyType' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |                             `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 78 |
 79 |         queue.async(flags: .barrier) { [self] in
 80 |             cache[key] = value
    |                   `- warning: capture of 'key' with non-sendable type 'KeyType' in a '@Sendable' closure
 81 |             costs[key] = cost
 82 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:80:26: warning: capture of 'value' with non-sendable type 'ObjectType' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |                                      `- note: consider making generic parameter 'ObjectType' conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 78 |
 79 |         queue.async(flags: .barrier) { [self] in
 80 |             cache[key] = value
    |                          `- warning: capture of 'value' with non-sendable type 'ObjectType' in a '@Sendable' closure
 81 |             costs[key] = cost
 82 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:90:13: warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |              `- note: generic class 'WWCacheManager' does not conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 88 |
 89 |         queue.async(flags: .barrier) { [self] in
 90 |             cache.removeValue(forKey: key)
    |             `- warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 91 |             costs.removeValue(forKey: key)
 92 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:90:39: warning: capture of 'key' with non-sendable type 'KeyType' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |                             `- note: consider making generic parameter 'KeyType' conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 88 |
 89 |         queue.async(flags: .barrier) { [self] in
 90 |             cache.removeValue(forKey: key)
    |                                       `- warning: capture of 'key' with non-sendable type 'KeyType' in a '@Sendable' closure
 91 |             costs.removeValue(forKey: key)
 92 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:99:13: warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |              `- note: generic class 'WWCacheManager' does not conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
 97 |
 98 |         queue.async(flags: .barrier) { [self] in
 99 |             cache.removeAll()
    |             `- warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
100 |             costs.removeAll()
101 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:109:13: warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |              `- note: generic class 'WWCacheManager' does not conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
107 |
108 |         queue.async(flags: .barrier) { [self] in
109 |             _countLimit = limit
    |             `- warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
110 |         }
111 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:118:13: warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
 14 |
 15 | // MARK: - WWCacheManager
 16 | public class WWCacheManager<KeyType, ObjectType> where KeyType: Hashable {
    |              `- note: generic class 'WWCacheManager' does not conform to the 'Sendable' protocol
 17 |
 18 |     /// 併發 queue(讀寫鎖實現)
    :
116 |
117 |         queue.async(flags: .barrier) { [self] in
118 |             _totalCostLimit = limit
    |             `- warning: capture of 'self' with non-sendable type 'WWCacheManager<KeyType, ObjectType>' in a '@Sendable' closure
119 |         }
120 |     }
Build complete! (3.96s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWCacheManager",
  "name" : "WWCacheManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "WWCacheManager",
      "targets" : [
        "WWCacheManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWCacheManager",
      "module_type" : "SwiftTarget",
      "name" : "WWCacheManager",
      "path" : "Sources/WWCacheManager",
      "product_memberships" : [
        "WWCacheManager"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWCacheManager/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "WWCacheManager.swift",
        "WWCacheValue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.