The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MakNetworkManager, reference main (86e2c1), with Swift 6.2 for macOS (SPM) on 10 Nov 2025 07:46:36 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZaighamFarid/MakNetworkManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZaighamFarid/MakNetworkManager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 86e2c15 Merge pull request #1 from ZaighamFarid/feature/swift-package-fix
Cloned https://github.com/ZaighamFarid/MakNetworkManager.git
Revision (git rev-parse @):
86e2c15049b2c3384257411f0c77689cf6691317
SUCCESS checkout https://github.com/ZaighamFarid/MakNetworkManager.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": "maknetworkmanager",
      "name": "MakNetworkManager",
      "url": "https://github.com/ZaighamFarid/MakNetworkManager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MakNetworkManager",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ZaighamFarid/MakNetworkManager.git
[1/108] Fetching maknetworkmanager
Fetched https://github.com/ZaighamFarid/MakNetworkManager.git from cache (0.68s)
Creating working copy for https://github.com/ZaighamFarid/MakNetworkManager.git
Working copy of https://github.com/ZaighamFarid/MakNetworkManager.git resolved at main (86e2c15)
warning: '.resolve-product-dependencies': dependency 'maknetworkmanager' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ZaighamFarid/MakNetworkManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
[3/19] Compiling MakNetworkManager NetworkProtocols.swift
[4/19] Compiling MakNetworkManager ReachabilityProtocol.swift
[5/19] Compiling MakNetworkManager AuthProviderProtocol.swift
[6/19] Compiling MakNetworkManager LoggerProtocol.swift
[7/19] Compiling MakNetworkManager APIResponse.swift
[8/19] Compiling MakNetworkManager HTTPMethod.swift
[9/19] Compiling MakNetworkManager NetworkError.swift
[10/19] Compiling MakNetworkManager APIRequest.swift
[11/20] Compiling MakNetworkManager RequestExecutor.swift
[12/20] Compiling MakNetworkManager ResponseHandler.swift
[13/20] Compiling MakNetworkManager NetworkConfiguration.swift
[14/20] Compiling MakNetworkManager ConferenceAPI.swift
[15/20] Compiling MakNetworkManager TokenAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:135:34: warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
133 |         return try await withCheckedThrowingContinuation { continuation in
134 |             refreshQueue.async(flags: .barrier) { [weak self] in
135 |                 guard let self = self else {
    |                                  `- warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
136 |                     continuation.resume(throwing: NetworkError.unknown("Service deallocated"))
137 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:172:25: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
170 |
171 |                     self.refreshQueue.async(flags: .barrier) {
172 |                         self.isRefreshingToken = false
    |                         `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
173 |                     }
174 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:182:17: warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
180 |         return try await withCheckedThrowingContinuation { continuation in
181 |             refreshQueue.async(flags: .barrier) { [weak self] in
182 |                 self?.pendingRequests.append((request, continuation))
    |                 `- warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
183 |                 self?.logger.debug("Request queued while token refresh in progress", file: #file, function: #function, line: #line)
184 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:190:47: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
188 |     private func retryPendingRequests() async {
189 |         let requests = refreshQueue.sync { self.pendingRequests }
190 |         refreshQueue.async(flags: .barrier) { self.pendingRequests.removeAll() }
    |                                               `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
191 |
192 |         for (request, continuation) in requests {
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:206:47: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
204 |     private func failPendingRequests(with error: NetworkError) async {
205 |         let requests = refreshQueue.sync { self.pendingRequests }
206 |         refreshQueue.async(flags: .barrier) { self.pendingRequests.removeAll() }
    |                                               `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
207 |
208 |         for (_, continuation) in requests {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[16/20] Compiling MakNetworkManager APIService.swift
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:135:34: warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
133 |         return try await withCheckedThrowingContinuation { continuation in
134 |             refreshQueue.async(flags: .barrier) { [weak self] in
135 |                 guard let self = self else {
    |                                  `- warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
136 |                     continuation.resume(throwing: NetworkError.unknown("Service deallocated"))
137 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:172:25: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
170 |
171 |                     self.refreshQueue.async(flags: .barrier) {
172 |                         self.isRefreshingToken = false
    |                         `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
173 |                     }
174 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:182:17: warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
180 |         return try await withCheckedThrowingContinuation { continuation in
181 |             refreshQueue.async(flags: .barrier) { [weak self] in
182 |                 self?.pendingRequests.append((request, continuation))
    |                 `- warning: capture of 'self' with non-Sendable type 'APIService?' in a '@Sendable' closure [#SendableClosureCaptures]
183 |                 self?.logger.debug("Request queued while token refresh in progress", file: #file, function: #function, line: #line)
184 |             }
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:190:47: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
188 |     private func retryPendingRequests() async {
189 |         let requests = refreshQueue.sync { self.pendingRequests }
190 |         refreshQueue.async(flags: .barrier) { self.pendingRequests.removeAll() }
    |                                               `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
191 |
192 |         for (request, continuation) in requests {
/Users/admin/builder/spi-builder-workspace/Sources/MakNetworkManager/Implementation/APIService.swift:206:47: warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
  9 |
 10 | /// Main network service that coordinates all API requests
 11 | public class APIService {
    |              `- note: class 'APIService' does not conform to the 'Sendable' protocol
 12 |     private let configuration: NetworkConfiguration
 13 |     private let requestBuilder: RequestBuilding
    :
204 |     private func failPendingRequests(with error: NetworkError) async {
205 |         let requests = refreshQueue.sync { self.pendingRequests }
206 |         refreshQueue.async(flags: .barrier) { self.pendingRequests.removeAll() }
    |                                               `- warning: capture of 'self' with non-Sendable type 'APIService' in a '@Sendable' closure [#SendableClosureCaptures]
207 |
208 |         for (_, continuation) in requests {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[17/20] Compiling MakNetworkManager Reachability.swift
[18/20] Compiling MakNetworkManager RequestBuilder.swift
[19/20] Emitting module MakNetworkManager
[20/20] Compiling MakNetworkManager ConferenceService.swift
Build complete! (5.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MakNetworkManager",
  "name" : "MakNetworkManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "MakNetworkManager",
      "targets" : [
        "MakNetworkManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MakNetworkManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "MakNetworkManagerTests",
      "path" : "Tests/MakNetworkManagerTests",
      "sources" : [
        "APIServiceTests.swift",
        "Mocks/URLProtocolMock.swift",
        "RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "MakNetworkManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MakNetworkManager",
      "module_type" : "SwiftTarget",
      "name" : "MakNetworkManager",
      "path" : "Sources/MakNetworkManager",
      "product_memberships" : [
        "MakNetworkManager"
      ],
      "sources" : [
        "Configuration/NetworkConfiguration.swift",
        "Endpoints/ConferenceAPI.swift",
        "Endpoints/TokenAPI.swift",
        "Implementation/APIService.swift",
        "Implementation/Reachability.swift",
        "Implementation/RequestBuilder.swift",
        "Implementation/RequestExecutor.swift",
        "Implementation/ResponseHandler.swift",
        "Models/APIResponse.swift",
        "Models/HTTPMethod.swift",
        "Models/NetworkError.swift",
        "Protocols/APIRequest.swift",
        "Protocols/AuthProviderProtocol.swift",
        "Protocols/LoggerProtocol.swift",
        "Protocols/NetworkProtocols.swift",
        "Protocols/ReachabilityProtocol.swift",
        "Services/ConferenceService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.