The Swift Package Index logo.Swift Package Index

Build Information

Successful build of RestEssentials, reference master (dc7366), with Swift 6.1 for macOS (SPM) on 20 Apr 2026 14:13:52 UTC.

Swift 6 data race errors: 3

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.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sean7512/RestEssentials.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sean7512/RestEssentials
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at dc7366d remove build file and update package.swift
Cloned https://github.com/sean7512/RestEssentials.git
Revision (git rev-parse @):
dc7366d999f449e2c6eedf30251b80f70c88069a
SUCCESS checkout https://github.com/sean7512/RestEssentials.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sean7512/RestEssentials.git
https://github.com/sean7512/RestEssentials.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RestEssentials",
  "name" : "RestEssentials",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "RestEssentials",
      "targets" : [
        "RestEssentials"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RestEssentialsTests",
      "module_type" : "SwiftTarget",
      "name" : "RestEssentialsTests",
      "path" : "Sources/RestEssentialsTests",
      "sources" : [
        "RestControllerTests.swift"
      ],
      "target_dependencies" : [
        "RestEssentials"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RestEssentials",
      "module_type" : "SwiftTarget",
      "name" : "RestEssentials",
      "path" : "Sources/RestEssentials",
      "product_memberships" : [
        "RestEssentials"
      ],
      "sources" : [
        "Deserializer.swift",
        "JSON.swift",
        "RestController.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/6] Compiling RestEssentials JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/JSON.swift:22:24: warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | /// Represents any valid JSON type: another JSON object, an array, a string, a number, or a boolean.
 20 | public struct JSON : CustomStringConvertible, ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral {
    |               `- note: consider making struct 'JSON' conform to the 'Sendable' protocol
 21 |
 22 |     private static let kJSONNull = JSON(rawValue: Void())
    |                        |- warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'kJSONNull' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     private let raw: JSONValue
[4/6] Compiling RestEssentials RestController.swift
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:14: warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 50 | ///
 51 | /// **NOTE:** Ensure to configure `App Transport Security` appropriately.
 52 | public class RestController : NSObject, URLSessionDelegate {
    |              `- warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 53 |
 54 |     fileprivate static let kDefaultRequestTimeout = 60 as TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:17: warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
 63 |
 64 |     private let url: URL
 65 |     private var session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
 66 |
 67 |     /// This generator will be called before every useage of this RestController
[5/6] Emitting module RestEssentials
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/JSON.swift:22:24: warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | /// Represents any valid JSON type: another JSON object, an array, a string, a number, or a boolean.
 20 | public struct JSON : CustomStringConvertible, ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral {
    |               `- note: consider making struct 'JSON' conform to the 'Sendable' protocol
 21 |
 22 |     private static let kJSONNull = JSON(rawValue: Void())
    |                        |- warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'kJSONNull' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     private let raw: JSONValue
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:14: warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 50 | ///
 51 | /// **NOTE:** Ensure to configure `App Transport Security` appropriately.
 52 | public class RestController : NSObject, URLSessionDelegate {
    |              `- warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 53 |
 54 |     fileprivate static let kDefaultRequestTimeout = 60 as TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:17: warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
 63 |
 64 |     private let url: URL
 65 |     private var session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
 66 |
 67 |     /// This generator will be called before every useage of this RestController
[6/6] Compiling RestEssentials Deserializer.swift
Build complete! (7.03s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RestEssentials",
  "name" : "RestEssentials",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "RestEssentials",
      "targets" : [
        "RestEssentials"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RestEssentialsTests",
      "module_type" : "SwiftTarget",
      "name" : "RestEssentialsTests",
      "path" : "Sources/RestEssentialsTests",
      "sources" : [
        "RestControllerTests.swift"
      ],
      "target_dependencies" : [
        "RestEssentials"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RestEssentials",
      "module_type" : "SwiftTarget",
      "name" : "RestEssentials",
      "path" : "Sources/RestEssentials",
      "product_memberships" : [
        "RestEssentials"
      ],
      "sources" : [
        "Deserializer.swift",
        "JSON.swift",
        "RestController.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.