The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MockDuck, reference main (4729d1), with Swift 6.4 for macOS (SPM) on 17 Sep 2026 02:05:57 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buzzfeed/MockDuck.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buzzfeed/MockDuck
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4729d15 Merge pull request #32 from buzzfeed/feature/update-installation-readme
Cloned https://github.com/buzzfeed/MockDuck.git
Revision (git rev-parse @):
4729d150c199f6920219c1ea969d54dcd0efe943
SUCCESS checkout https://github.com/buzzfeed/MockDuck.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/buzzfeed/MockDuck.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[19 / 28]
[20 / 29] MockDuck
[30 / 77]
[35 / 77]
[40 / 77]
[41 / 77]
[45 / 77]
[47 / 77]
[50 / 77]
[54 / 77]
[56 / 77]
[57 / 77]
[68 / 77] MockDuck
[69 / 77] MockDuck
Build complete! (8.36 sec)
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDataTask.swift:14:13: warning: class 'MockDataTask' must restate inherited '@unchecked Sendable' conformance
12 | /// possible. When it is unable to load a response from disk, it can optionally use a fallback
13 | /// URLSession to handle the request normally.
14 | final class MockDataTask: URLSessionDataTask {
   |             `- warning: class 'MockDataTask' must restate inherited '@unchecked Sendable' conformance
15 |
16 |     typealias TaskCompletion = (MockRequestResponse?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDuck.swift:13:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 11 |
 12 | /// A delegate protocol that can be used to modify how MockDuck functions.
 13 | public protocol MockDuckDelegate: class {
    |                                   `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 14 |
 15 |     /// A hook that allows one to normalize a request before it is turned into a hash that uniquely
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDuck.swift:149:52: warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
147 |
148 |     // This is the URLSession subclass that we use to handle all mocked network requests.
149 |     internal private(set) static var mockSession = MockSession()
    |                                                    `- warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
150 |
151 |     /// This is the object responsible for loading cached requests from disks as well as recording
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockSession.swift:13:13: warning: class 'MockSession' must restate inherited '@unchecked Sendable' conformance
11 | /// MockSession is a basic subclass of URLSession, created so that we can hook into the creation of
12 | /// NSURLSession tasks and provide our own tasks that can load cached requests from disk.
13 | final class MockSession: URLSession {
   |             `- warning: class 'MockSession' must restate inherited '@unchecked Sendable' conformance
14 |     private let queue = DispatchQueue(label: "com.buzzfeed.MockDuck.MockSessionQueue", attributes: [])
15 |
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockURLProtocol.swift:13:7: warning: conformance of 'URLProtocol' to 'Sendable' is unavailable in macOS; this is an error in the Swift 6 language mode
11 | /// This is the URLProtocol subclass that intercepts all network requests and uses `MockSession` to
12 | /// stub out the responses. One of these is instantiated per request.
13 | class MockURLProtocol: URLProtocol, URLSessionDelegate, URLSessionDataDelegate {
   |       `- warning: conformance of 'URLProtocol' to 'Sendable' is unavailable in macOS; this is an error in the Swift 6 language mode
14 |     private struct Constants {
15 |         static let ProtocolHandled = "com.buzzfeed.MockDuck.URLProtocolHandled"
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h: 0:1242 | NS_SWIFT_SENDABLE
1243 | API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
1244 | @interface NSURLSessionConfiguration : NSObject <NSCopying>
     +---  -------------------------------------------------------------
     |1 | @_nonSendable(_assumed)
     |  | `- note: conformance of 'URLProtocol' to 'Sendable' has been explicitly marked unavailable here
     +------------------------------------------------------------------
1245 |
1246 | /// A default session configuration object.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockSession.swift:13:13: warning: class 'MockSession' must restate inherited '@unchecked Sendable' conformance
11 | /// MockSession is a basic subclass of URLSession, created so that we can hook into the creation of
12 | /// NSURLSession tasks and provide our own tasks that can load cached requests from disk.
13 | final class MockSession: URLSession {
   |             `- warning: class 'MockSession' must restate inherited '@unchecked Sendable' conformance
14 |     private let queue = DispatchQueue(label: "com.buzzfeed.MockDuck.MockSessionQueue", attributes: [])
15 |
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/Utilities/CryptoUtils.swift:16:13: warning: 'CC_MD5' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
14 |         let hash = data.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) -> [UInt8] in
15 |             var hash = [UInt8](repeating: 0, count: Int(CC_MD5_DIGEST_LENGTH))
16 |             CC_MD5(bytes.baseAddress, CC_LONG(data.count), &hash)
   |             `- warning: 'CC_MD5' was deprecated in macOS 10.15: This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
17 |             return hash
18 |         }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockURLProtocol.swift:13:7: warning: conformance of 'URLProtocol' to 'Sendable' is unavailable in macOS; this is an error in the Swift 6 language mode
11 | /// This is the URLProtocol subclass that intercepts all network requests and uses `MockSession` to
12 | /// stub out the responses. One of these is instantiated per request.
13 | class MockURLProtocol: URLProtocol, URLSessionDelegate, URLSessionDataDelegate {
   |       `- warning: conformance of 'URLProtocol' to 'Sendable' is unavailable in macOS; this is an error in the Swift 6 language mode
14 |     private struct Constants {
15 |         static let ProtocolHandled = "com.buzzfeed.MockDuck.URLProtocolHandled"
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h: 0:1242 | NS_SWIFT_SENDABLE
1243 | API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
1244 | @interface NSURLSessionConfiguration : NSObject <NSCopying>
     +---  -------------------------------------------------------------
     |1 | @_nonSendable(_assumed)
     |  | `- note: conformance of 'URLProtocol' to 'Sendable' has been explicitly marked unavailable here
     +------------------------------------------------------------------
1245 |
1246 | /// A default session configuration object.
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDuck.swift:149:52: warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
147 |
148 |     // This is the URLSession subclass that we use to handle all mocked network requests.
149 |     internal private(set) static var mockSession = MockSession()
    |                                                    `- warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
150 |
151 |     /// This is the object responsible for loading cached requests from disks as well as recording
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDataTask.swift:14:13: warning: class 'MockDataTask' must restate inherited '@unchecked Sendable' conformance
12 | /// possible. When it is unable to load a response from disk, it can optionally use a fallback
13 | /// URLSession to handle the request normally.
14 | final class MockDataTask: URLSessionDataTask {
   |             `- warning: class 'MockDataTask' must restate inherited '@unchecked Sendable' conformance
15 |
16 |     typealias TaskCompletion = (MockRequestResponse?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDataTask.swift:29:15: warning: 'init()' was deprecated in macOS 10.15: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
27 |         self.request = request
28 |         self.completion = completion
29 |         super.init()
   |               `- warning: 'init()' was deprecated in macOS 10.15: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
30 |     }
31 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDuck.swift:13:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 11 |
 12 | /// A delegate protocol that can be used to modify how MockDuck functions.
 13 | public protocol MockDuckDelegate: class {
    |                                   `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 14 |
 15 |     /// A hook that allows one to normalize a request before it is turned into a hash that uniquely
/Users/admin/builder/spi-builder-workspace/MockDuck/Sources/MockDuck.swift:149:52: warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
147 |
148 |     // This is the URLSession subclass that we use to handle all mocked network requests.
149 |     internal private(set) static var mockSession = MockSession()
    |                                                    `- warning: 'init()' was deprecated in macOS 10.15: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
150 |
151 |     /// This is the object responsible for loading cached requests from disks as well as recording
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MockDuck",
  "name" : "MockDuck",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "MockDuck",
      "targets" : [
        "MockDuck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MockDuckTests",
      "module_type" : "SwiftTarget",
      "name" : "MockDuckTests",
      "path" : "MockDuckTests/Sources",
      "sources" : [
        "CryptoTests.swift",
        "MockBundleTests.swift",
        "MockDuckTests.swift",
        "MockURLProtocolTests.swift",
        "RequestHandlerTests.swift",
        "RequestHashTests.swift"
      ],
      "target_dependencies" : [
        "MockDuck"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MockDuck",
      "module_type" : "SwiftTarget",
      "name" : "MockDuck",
      "path" : "MockDuck/Sources",
      "product_memberships" : [
        "MockDuck"
      ],
      "sources" : [
        "MockBundle.swift",
        "MockDataTask.swift",
        "MockDuck.swift",
        "MockRequest.swift",
        "MockRequestResponse.swift",
        "MockResponse.swift",
        "MockSession.swift",
        "MockURLProtocol.swift",
        "RequestResponseCommonProtocol.swift",
        "Utilities/CryptoUtils.swift",
        "Utilities/EncodingUtils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.