The Swift Package Index logo.Swift Package Index

Build Information

Successful build of FullyRESTful, reference main (88b484), with Swift 6.1 for macOS (SPM) on 20 Jun 2025 09:23:43 UTC.

Swift 6 data race errors: 2

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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/southkin/FullyRESTful.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/southkin/FullyRESTful
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 88b484e try
Cloned https://github.com/southkin/FullyRESTful.git
Revision (git rev-parse @):
88b484e112ae202a03bbe40a87cc24540f3e52d5
SUCCESS checkout https://github.com/southkin/FullyRESTful.git at main
Fetching https://github.com/southkin/KinKit
[1/198] Fetching kinkit
Fetched https://github.com/southkin/KinKit from cache (0.71s)
Computing version for https://github.com/southkin/KinKit
Computed https://github.com/southkin/KinKit at 1.0.2 (1.20s)
Creating working copy for https://github.com/southkin/KinKit
Working copy of https://github.com/southkin/KinKit resolved at 1.0.2
========================================
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": "fullyrestful",
      "name": "FullyRESTful",
      "url": "https://github.com/southkin/FullyRESTful.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FullyRESTful",
      "dependencies": [
        {
          "identity": "kinkit",
          "name": "KinKit",
          "url": "https://github.com/southkin/KinKit",
          "version": "1.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KinKit",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/southkin/FullyRESTful.git
[1/293] Fetching fullyrestful
Fetched https://github.com/southkin/FullyRESTful.git from cache (0.79s)
Fetching https://github.com/southkin/KinKit from cache
Fetched https://github.com/southkin/KinKit from cache (0.44s)
Computing version for https://github.com/southkin/KinKit
Computed https://github.com/southkin/KinKit at 1.0.3 (0.89s)
Creating working copy for https://github.com/southkin/FullyRESTful.git
Working copy of https://github.com/southkin/FullyRESTful.git resolved at main (88b484e)
Creating working copy for https://github.com/southkin/KinKit
Working copy of https://github.com/southkin/KinKit resolved at 1.0.3
warning: '.resolve-product-dependencies': dependency 'fullyrestful' is not used by any target
Found 1 product dependencies
  - KinKit
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/southkin/FullyRESTful.git
https://github.com/southkin/FullyRESTful.git
{
  "dependencies" : [
    {
      "identity" : "kinkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/southkin/KinKit"
    }
  ],
  "manifest_display_name" : "FullyRESTful",
  "name" : "FullyRESTful",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "FullyRESTful",
      "targets" : [
        "FullyRESTful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FullyRESTfulTests",
      "module_type" : "SwiftTarget",
      "name" : "FullyRESTfulTests",
      "path" : "Tests/FullyRESTfulTests",
      "sources" : [
        "FullyRESTfulTests.swift"
      ],
      "target_dependencies" : [
        "FullyRESTful"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FullyRESTful",
      "module_type" : "SwiftTarget",
      "name" : "FullyRESTful",
      "path" : "Sources/FullyRESTful",
      "product_dependencies" : [
        "KinKit"
      ],
      "product_memberships" : [
        "FullyRESTful"
      ],
      "sources" : [
        "FullyRESTful.swift",
        "ServerInfo.swift",
        "TestAPI.swift",
        "Websocket.swift",
        "extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/17] Compiling Shared URLSessionExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/17] Compiling Shared DictionaryExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/17] Compiling Shared URLRequestExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/17] Compiling Shared StringExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/17] Compiling Shared EncodableExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/17] Compiling Shared DataExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/17] Compiling Shared DecimalExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/17] Emitting module Shared
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/17] Compiling Shared Shared.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/17] Compiling KinKit UIKitExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/17] Emitting module KinKit
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/17] Compiling KinKit SwiftUIExtension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/17] Compiling KinKit KinKit.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/23] Compiling FullyRESTful extensions.swift
[19/23] Compiling FullyRESTful Websocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:162:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebSocketConnectionManager' may have shared mutable state; this is an error in the Swift 6 language mode
159 | // MARK: - WebSocket 연결 매니저 (싱글톤)
160 |
161 | final class WebSocketConnectionManager {
    |             `- note: class 'WebSocketConnectionManager' does not conform to the 'Sendable' protocol
162 |     static let shared = WebSocketConnectionManager()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebSocketConnectionManager' 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
163 |
164 |     fileprivate var connections: [URL: WebSocketConnection] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:95:23: warning: capture of 'self' with non-sendable type 'WebSocketConnection?' in a '@Sendable' closure
 60 | // MARK: - 개별 연결 객체
 61 |
 62 | fileprivate final class WebSocketConnection {
    |                         `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
 63 |     let url: URL
 64 |     private var task: URLSessionWebSocketTask?
    :
 93 |     private func listen() {
 94 |         task?.receive { [weak self] result in
 95 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'WebSocketConnection?' in a '@Sendable' closure
 96 |
 97 |             switch result {
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:122:21: warning: capture of 'self' with non-sendable type 'WebSocketConnection?' in a '@Sendable' closure
 60 | // MARK: - 개별 연결 객체
 61 |
 62 | fileprivate final class WebSocketConnection {
    |                         `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
 63 |     let url: URL
 64 |     private var task: URLSessionWebSocketTask?
    :
120 |                     print("❌ WebSocket 핑 실패")
121 |                 } else {
122 |                     self?.ping()
    |                     `- warning: capture of 'self' with non-sendable type 'WebSocketConnection?' in a '@Sendable' closure
123 |                 }
124 |             }
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:118:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
116 |     private func ping() {
117 |         DispatchQueue.main.asyncAfter(deadline: .now() + pingInterval) {
118 |             self.task?.sendPing { [weak self] error in
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
119 |                 if error != nil {
120 |                     print("❌ WebSocket 핑 실패")
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:192:34: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
190 |
191 |         if let connection = connections[url] {
192 |             try await connection.send(message)
    |                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending main actor-isolated 'message' to nonisolated instance method 'send' risks causing data races between nonisolated and main actor-isolated uses
193 |         }
194 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:192:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
190 |
191 |         if let connection = connections[url] {
192 |             try await connection.send(message)
    |                                  |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: sending main actor-isolated 'connection' to nonisolated instance method 'send' risks causing data races between nonisolated and main actor-isolated uses
193 |         }
194 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:56:53: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
 54 |
 55 |     func send(_ message: WebSocketSendMessageModel) async throws {
 56 |         try await WebSocketConnectionManager.shared.send(message, for: self)
    |                                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                     `- note: sending task-isolated 'message' to main actor-isolated instance method 'send(_:for:)' risks causing data races between main actor-isolated and task-isolated uses
 57 |     }
 58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:56:53: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 54 |
 55 |     func send(_ message: WebSocketSendMessageModel) async throws {
 56 |         try await WebSocketConnectionManager.shared.send(message, for: self)
    |                                                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                                     `- note: sending task-isolated 'self' to main actor-isolated instance method 'send(_:for:)' risks causing data races between main actor-isolated and task-isolated uses
 57 |     }
 58 | }
[20/23] Compiling FullyRESTful ServerInfo.swift
[21/23] Compiling FullyRESTful FullyRESTful.swift
[22/23] Emitting module FullyRESTful
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/TestAPI.swift:12:16: warning: static property 'server' is not concurrency-safe because non-'Sendable' type 'ServerInfo' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | enum TestAPI {
 12 |     static let server:ServerInfo = .init(domain: "https://reqres.in", defaultHeader: ["Content-Type":"application/json"])
    |                |- warning: static property 'server' is not concurrency-safe because non-'Sendable' type 'ServerInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'server' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | }
 14 | struct TestUserInfo : Codable {
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/ServerInfo.swift:8:15: note: consider making struct 'ServerInfo' conform to the 'Sendable' protocol
 6 | //
 7 |
 8 | public struct ServerInfo {
   |               `- note: consider making struct 'ServerInfo' conform to the 'Sendable' protocol
 9 |     public enum AfterResolve {
10 |         case retry
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/Websocket.swift:162:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebSocketConnectionManager' may have shared mutable state; this is an error in the Swift 6 language mode
159 | // MARK: - WebSocket 연결 매니저 (싱글톤)
160 |
161 | final class WebSocketConnectionManager {
    |             `- note: class 'WebSocketConnectionManager' does not conform to the 'Sendable' protocol
162 |     static let shared = WebSocketConnectionManager()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebSocketConnectionManager' 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
163 |
164 |     fileprivate var connections: [URL: WebSocketConnection] = [:]
[23/23] Compiling FullyRESTful TestAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/TestAPI.swift:12:16: warning: static property 'server' is not concurrency-safe because non-'Sendable' type 'ServerInfo' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | enum TestAPI {
 12 |     static let server:ServerInfo = .init(domain: "https://reqres.in", defaultHeader: ["Content-Type":"application/json"])
    |                |- warning: static property 'server' is not concurrency-safe because non-'Sendable' type 'ServerInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'server' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | }
 14 | struct TestUserInfo : Codable {
/Users/admin/builder/spi-builder-workspace/Sources/FullyRESTful/ServerInfo.swift:8:15: note: consider making struct 'ServerInfo' conform to the 'Sendable' protocol
 6 | //
 7 |
 8 | public struct ServerInfo {
   |               `- note: consider making struct 'ServerInfo' conform to the 'Sendable' protocol
 9 |     public enum AfterResolve {
10 |         case retry
Build complete! (12.14s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "kinkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/southkin/KinKit"
    }
  ],
  "manifest_display_name" : "FullyRESTful",
  "name" : "FullyRESTful",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "FullyRESTful",
      "targets" : [
        "FullyRESTful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FullyRESTfulTests",
      "module_type" : "SwiftTarget",
      "name" : "FullyRESTfulTests",
      "path" : "Tests/FullyRESTfulTests",
      "sources" : [
        "FullyRESTfulTests.swift"
      ],
      "target_dependencies" : [
        "FullyRESTful"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FullyRESTful",
      "module_type" : "SwiftTarget",
      "name" : "FullyRESTful",
      "path" : "Sources/FullyRESTful",
      "product_dependencies" : [
        "KinKit"
      ],
      "product_memberships" : [
        "FullyRESTful"
      ],
      "sources" : [
        "FullyRESTful.swift",
        "ServerInfo.swift",
        "TestAPI.swift",
        "Websocket.swift",
        "extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.