The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkKit, reference 1.0.8 (5773ed), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 08:47:44 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sabapathy7/NetworkKit.git
Reference: 1.0.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sabapathy7/NetworkKit
 * tag               1.0.8      -> FETCH_HEAD
HEAD is now at 5773ed2 Updates InternalImportsByDefault to enableExperimentalFeature and removed public from import library - Combine
Cloned https://github.com/sabapathy7/NetworkKit.git
Revision (git rev-parse @):
5773ed26c325cf85667bd6f68043989d9a5aee22
SUCCESS checkout https://github.com/sabapathy7/NetworkKit.git at 1.0.8
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/sabapathy7/NetworkKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/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
 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
 70 |                         return
 71 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:65:60: warning: capture of non-sendable type 'T.Type' in an isolated closure
 63 |             throw NetworkError.decode
 64 |         }
 65 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 66 |             let task = URLSession(configuration: .default, delegate: nil, delegateQueue: .main)
 67 |                 .dataTask(with: urlRequest) { data, response, _ in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:99:17: warning: capture of non-sendable type 'T.Type' in an isolated closure
 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
100 |                 return
101 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkKit/Networkable.swift:92:43: warning: capture of non-sendable type 'T.Type' in an isolated closure
 90 |
 91 |     public func sendRequest<T: Decodable>(endpoint: EndPoint,
 92 |                                           resultHandler: @Sendable @escaping (Result<T, NetworkError>) -> Void) {
    |                                           `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 93 |
 94 |         guard let urlRequest = createRequest(endPoint: endpoint) else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling NetworkKit EndPoint.swift
[5/7] Compiling NetworkKit NetworkError.swift
[6/7] Compiling NetworkKit RequestMethod.swift
[7/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 }
BUILD FAILURE 6.2 macosSpm