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 LDSwiftEventSource, reference main (193c09), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 21:09:17 UTC.

Swift 6 data race errors: 3

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LaunchDarkly/swift-eventsource.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LaunchDarkly/swift-eventsource
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 193c097 chore: Drop macos-12 build (#86)
Cloned https://github.com/LaunchDarkly/swift-eventsource.git
Revision (git rev-parse @):
193c097f324666691f71b49b1e70249ef21f9f62
SUCCESS checkout https://github.com/LaunchDarkly/swift-eventsource.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": "swift-eventsource",
      "name": "LDSwiftEventSource",
      "url": "https://github.com/LaunchDarkly/swift-eventsource.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-eventsource",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LaunchDarkly/swift-eventsource.git
[1/1573] Fetching swift-eventsource
Fetched https://github.com/LaunchDarkly/swift-eventsource.git from cache (1.00s)
Creating working copy for https://github.com/LaunchDarkly/swift-eventsource.git
Working copy of https://github.com/LaunchDarkly/swift-eventsource.git resolved at main (193c097)
warning: '.resolve-product-dependencies': dependency 'swift-eventsource' 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/LaunchDarkly/swift-eventsource.git
https://github.com/LaunchDarkly/swift-eventsource.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LDSwiftEventSource",
  "name" : "LDSwiftEventSource",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "LDSwiftEventSource",
      "targets" : [
        "LDSwiftEventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LDSwiftEventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSourceTests",
      "path" : "Tests",
      "sources" : [
        "EventParserTests.swift",
        "LDSwiftEventSourceTests.swift",
        "MockHandler.swift",
        "TestUtil.swift",
        "UTF8LineParserTests.swift"
      ],
      "target_dependencies" : [
        "LDSwiftEventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LDSwiftEventSource",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSource",
      "path" : "Source",
      "product_memberships" : [
        "LDSwiftEventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "LDSwiftEventSource.swift",
        "Logs.swift",
        "Types.swift",
        "UTF8LineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/8] Compiling LDSwiftEventSource UTF8LineParser.swift
[4/8] Compiling LDSwiftEventSource Logs.swift
[5/8] Compiling LDSwiftEventSource Types.swift
/Users/admin/builder/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[6/8] Compiling LDSwiftEventSource LDSwiftEventSource.swift
/Users/admin/builder/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/Users/admin/builder/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
[7/8] Emitting module LDSwiftEventSource
/Users/admin/builder/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/Users/admin/builder/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
/Users/admin/builder/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[8/8] Compiling LDSwiftEventSource EventParser.swift
/Users/admin/builder/spi-builder-workspace/Source/EventParser.swift:68:22: error: no 'contains' candidates produce the expected type '(Substring.Element) throws -> Bool' (aka '(Character) throws -> Bool') for parameter #0
66 |             eventType = String(value)
67 |         case Constants.retryLabel:
68 |             if value.allSatisfy(("0"..."9").contains), let reconnectionTime = Int64(value) {
   |                      `- error: no 'contains' candidates produce the expected type '(Substring.Element) throws -> Bool' (aka '(Character) throws -> Bool') for parameter #0
69 |                 currentRetry = Double(reconnectionTime) * 0.001
70 |             }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/7] Compiling LDSwiftEventSource Types.swift
[3/7] Compiling LDSwiftEventSource Logs.swift
[4/7] Compiling LDSwiftEventSource UTF8LineParser.swift
[5/7] Emitting module LDSwiftEventSource
[6/7] Compiling LDSwiftEventSource LDSwiftEventSource.swift
[7/7] Compiling LDSwiftEventSource EventParser.swift
Build complete! (0.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LDSwiftEventSource",
  "name" : "LDSwiftEventSource",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "LDSwiftEventSource",
      "targets" : [
        "LDSwiftEventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LDSwiftEventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSourceTests",
      "path" : "Tests",
      "sources" : [
        "EventParserTests.swift",
        "LDSwiftEventSourceTests.swift",
        "MockHandler.swift",
        "TestUtil.swift",
        "UTF8LineParserTests.swift"
      ],
      "target_dependencies" : [
        "LDSwiftEventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LDSwiftEventSource",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSource",
      "path" : "Source",
      "product_memberships" : [
        "LDSwiftEventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "LDSwiftEventSource.swift",
        "Logs.swift",
        "Types.swift",
        "UTF8LineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.