The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkKit, reference main (4a656b), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 05:38:27 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sabapathy7/NetworkKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sabapathy7/NetworkKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a656bb Update README.md
Cloned https://github.com/sabapathy7/NetworkKit.git
Revision (git rev-parse @):
4a656bbf7ee7cba82cb14c5c1841623d7c067a23
SUCCESS checkout https://github.com/sabapathy7/NetworkKit.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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "networkkit",
      "name": "NetworkKit",
      "url": "https://github.com/sabapathy7/NetworkKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NetworkKit",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sabapathy7/NetworkKit.git
[1/273] Fetching networkkit
Fetched https://github.com/sabapathy7/NetworkKit.git from cache (0.82s)
Creating working copy for https://github.com/sabapathy7/NetworkKit.git
Working copy of https://github.com/sabapathy7/NetworkKit.git resolved at main (4a656bb)
warning: '.resolve-product-dependencies': dependency 'networkkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/sabapathy7/NetworkKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module NetworkKit
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:15:10: error: method cannot be declared public because its result uses an internal type
  6 | //
  7 |
  8 | import Combine
    | `- note: generic struct 'AnyPublisher' imported as 'internal' from 'Combine' here
  9 | import Foundation
 10 |
    :
 13 |     func sendRequest<T: Decodable>(endpoint: EndPoint) async throws -> T
 14 |     func sendRequest<T: Decodable>(endpoint: EndPoint, resultHandler: @Sendable @escaping (Result<T, NetworkError>) -> Void)
 15 |     func sendRequest<T: Decodable>(endpoint: EndPoint, type: T.Type) -> AnyPublisher<T, NetworkError>
    |          |- error: method cannot be declared public because its result uses an internal type
    |          `- note: generic struct 'AnyPublisher' is imported by this file as 'internal' from 'Combine'
 16 | }
 17 |
Combine.AnyPublisher:2:23: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyPublisher<Output, Failure> : CustomStringConvertible, CustomPlaygroundDisplayConvertible where Failure : Error {
  |                       `- note: type declared here
3 |     public var description: String { get }
4 |     public var playgroundDescription: Any { get }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:36:17: error: method cannot be declared public because its result uses an internal type
  6 | //
  7 |
  8 | import Combine
    | `- note: generic struct 'AnyPublisher' imported as 'internal' from 'Combine' here
  9 | import Foundation
 10 |
    :
 34 |     }
 35 |
 36 |     public func sendRequest<T>(endpoint: EndPoint, type: T.Type) -> AnyPublisher<T, NetworkError> where T: Decodable {
    |                 |- error: method cannot be declared public because its result uses an internal type
    |                 `- note: generic struct 'AnyPublisher' is imported by this file as 'internal' from 'Combine'
 37 |         guard let urlRequest = createRequest(endPoint: endpoint) else {
 38 |             preconditionFailure("Failed URLRequest")
Combine.AnyPublisher:2:23: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyPublisher<Output, Failure> : CustomStringConvertible, CustomPlaygroundDisplayConvertible where Failure : Error {
  |                       `- note: type declared here
3 |     public var description: String { get }
4 |     public var playgroundDescription: Any { get }
[4/7] Compiling NetworkKit RequestMethod.swift
[5/7] Compiling NetworkKit EndPoint.swift
[6/7] Compiling NetworkKit NetworkError.swift
[7/7] Compiling NetworkKit Networkable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:15:10: error: method cannot be declared public because its result uses an internal type
  6 | //
  7 |
  8 | import Combine
    | `- note: generic struct 'AnyPublisher' imported as 'internal' from 'Combine' here
  9 | import Foundation
 10 |
    :
 13 |     func sendRequest<T: Decodable>(endpoint: EndPoint) async throws -> T
 14 |     func sendRequest<T: Decodable>(endpoint: EndPoint, resultHandler: @Sendable @escaping (Result<T, NetworkError>) -> Void)
 15 |     func sendRequest<T: Decodable>(endpoint: EndPoint, type: T.Type) -> AnyPublisher<T, NetworkError>
    |          |- error: method cannot be declared public because its result uses an internal type
    |          `- note: generic struct 'AnyPublisher' is imported by this file as 'internal' from 'Combine'
 16 | }
 17 |
Combine.AnyPublisher:2:23: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyPublisher<Output, Failure> : CustomStringConvertible, CustomPlaygroundDisplayConvertible where Failure : Error {
  |                       `- note: type declared here
3 |     public var description: String { get }
4 |     public var playgroundDescription: Any { get }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:36:17: error: method cannot be declared public because its result uses an internal type
  6 | //
  7 |
  8 | import Combine
    | `- note: generic struct 'AnyPublisher' imported as 'internal' from 'Combine' here
  9 | import Foundation
 10 |
    :
 34 |     }
 35 |
 36 |     public func sendRequest<T>(endpoint: EndPoint, type: T.Type) -> AnyPublisher<T, NetworkError> where T: Decodable {
    |                 |- error: method cannot be declared public because its result uses an internal type
    |                 `- note: generic struct 'AnyPublisher' is imported by this file as 'internal' from 'Combine'
 37 |         guard let urlRequest = createRequest(endPoint: endpoint) else {
 38 |             preconditionFailure("Failed URLRequest")
Combine.AnyPublisher:2:23: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyPublisher<Output, Failure> : CustomStringConvertible, CustomPlaygroundDisplayConvertible where Failure : Error {
  |                       `- note: type declared here
3 |     public var description: String { get }
4 |     public var playgroundDescription: Any { get }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:69:25: warning: capture of non-Sendable type 'T.Type' in an isolated closure [#SendableMetatypes]
 67 |                 .dataTask(with: urlRequest) { data, response, _ in
 68 |                     guard response is HTTPURLResponse else {
 69 |                         continuation.resume(throwing: NetworkError.invalidURL)
    |                         `- warning: capture of non-Sendable type 'T.Type' in an isolated closure [#SendableMetatypes]
 70 |                         return
 71 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:99:17: warning: capture of non-Sendable type 'T.Type' in an isolated closure [#SendableMetatypes]
 97 |         let urlTask = URLSession.shared.dataTask(with: urlRequest) { data, response, error in
 98 |             guard error == nil else {
 99 |                 resultHandler(.failure(.invalidURL))
    |                 `- warning: capture of non-Sendable type 'T.Type' in an isolated closure [#SendableMetatypes]
100 |                 return
101 |             }
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
BUILD FAILURE 6.3 macosSpm