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 EventSourceHttpBody, reference main (b000e6), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 02:10:55 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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/EventSourceHttpBody.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/EventSourceHttpBody
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b000e62 Support older versions
Cloned https://github.com/exyte/EventSourceHttpBody.git
Revision (git rev-parse @):
b000e62b83206dd6e00f2066cf08c96f232a4168
SUCCESS checkout https://github.com/exyte/EventSourceHttpBody.git at main
========================================
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": "eventsourcehttpbody",
      "name": "EventSourceHttpBody",
      "url": "https://github.com/exyte/EventSourceHttpBody.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventSourceHttpBody",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/exyte/EventSourceHttpBody.git
[1/129] Fetching eventsourcehttpbody
Fetched https://github.com/exyte/EventSourceHttpBody.git from cache (0.89s)
Creating working copy for https://github.com/exyte/EventSourceHttpBody.git
Working copy of https://github.com/exyte/EventSourceHttpBody.git resolved at main (b000e62)
warning: '.resolve-product-dependencies': dependency 'eventsourcehttpbody' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/exyte/EventSourceHttpBody.git
https://github.com/exyte/EventSourceHttpBody.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventSourceHttpBody",
  "name" : "EventSourceHttpBody",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "EventSourceHttpBody",
      "targets" : [
        "EventSourceHttpBody"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventSourceHttpBody",
      "module_type" : "SwiftTarget",
      "name" : "EventSourceHttpBody",
      "path" : "EventSource",
      "product_memberships" : [
        "EventSourceHttpBody"
      ],
      "sources" : [
        "Event.swift",
        "EventSource.swift",
        "EventStreamParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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 EventSourceHttpBody EventSource.swift
/Users/admin/builder/spi-builder-workspace/EventSource/EventSource.swift:76:12: warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |            `- warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 77 |     static let DefaultRetryTime = 3000
 78 |
/Users/admin/builder/spi-builder-workspace/EventSource/EventSource.swift:81:29: warning: stored property 'lastEventId' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 79 |     public let urlRequest: URLRequest
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
    |                             `- warning: stored property 'lastEventId' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 82 |     private(set) public var retryTime = EventSource.DefaultRetryTime
 83 |     private(set) public var headers: [String: String]
/Users/admin/builder/spi-builder-workspace/EventSource/EventSource.swift:235:35: warning: capture of 'eventHandler' with non-sendable type '(String?, String?, String?) -> Void' in a '@Sendable' closure
233 |
234 |             if let eventName = event.event, let eventHandler = eventListeners[eventName] {
235 |                 mainQueue.async { eventHandler(event.id, event.event, event.data) }
    |                                   |- warning: capture of 'eventHandler' with non-sendable type '(String?, String?, String?) -> Void' in a '@Sendable' closure
    |                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |             }
237 |         }
[4/6] Emitting module EventSourceHttpBody
/Users/admin/builder/spi-builder-workspace/EventSource/EventSource.swift:76:12: warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |            `- warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 77 |     static let DefaultRetryTime = 3000
 78 |
/Users/admin/builder/spi-builder-workspace/EventSource/EventSource.swift:81:29: warning: stored property 'lastEventId' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 79 |     public let urlRequest: URLRequest
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
    |                             `- warning: stored property 'lastEventId' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 82 |     private(set) public var retryTime = EventSource.DefaultRetryTime
 83 |     private(set) public var headers: [String: String]
[5/6] Compiling EventSourceHttpBody EventStreamParser.swift
[6/6] Compiling EventSourceHttpBody Event.swift
Build complete! (4.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventSourceHttpBody",
  "name" : "EventSourceHttpBody",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "EventSourceHttpBody",
      "targets" : [
        "EventSourceHttpBody"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventSourceHttpBody",
      "module_type" : "SwiftTarget",
      "name" : "EventSourceHttpBody",
      "path" : "EventSource",
      "product_memberships" : [
        "EventSourceHttpBody"
      ],
      "sources" : [
        "Event.swift",
        "EventSource.swift",
        "EventStreamParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.