Build Information
Failed to build WebClient, reference v1.1.0 (e1781c), with Swift 6.0 for macOS (SPM) on 16 Jan 2026 14:31:20 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
126 | /// Encodes the multipart form data to a Data object.
127 | /// - Returns: The encoded form data.
128 | public func encode() -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
129 | var body = Data()
130 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:303:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
301 |
302 | extension MultipartFormData: Encoding {
303 | public func encode<T: Encodable>(_ value: T) throws -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
304 | // This encoder is used for endpoint body encoding
305 | // For multipart, we expect the value to be the MultipartFormData itself
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[18/31] Compiling WebClient MultipartFormData.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:48:9: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
46 |
47 | /// Query parameters to include in the URL.
48 | var queryItems: [URLQueryItem]? { get }
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
49 |
50 | /// Additional HTTP headers for this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:64:9: error: property must be declared internal because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
62 | public extension MultipartEndpoint {
63 | var pathComponents: [PathComponent]? { nil }
64 | var queryItems: [URLQueryItem]? { nil }
| |- error: property must be declared internal because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
65 | var headers: [String: String]? { nil }
66 | var retryPolicy: RetryPolicy? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:92:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
90 | /// - defaultHeaders: Default headers to include.
91 | /// - Returns: A configured URLRequest, or nil if the URL couldn't be constructed.
92 | func urlRequest(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
93 | relativeTo baseURL: URL,
94 | defaultHeaders: [String: String] = [:]
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:144:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
142 |
143 | /// The data for this part.
144 | public let data: Data
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
145 |
146 | public init(name: String, filename: String? = nil, mimeType: String = "application/octet-stream", data: Data) {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:146:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
144 | public let data: Data
145 |
146 | public init(name: String, filename: String? = nil, mimeType: String = "application/octet-stream", data: Data) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
147 | self.name = name
148 | self.filename = filename
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:41: error: struct 'UUID' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: struct 'UUID' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: struct 'UUID' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:2:15: note: struct 'UUID' is not '@usableFromInline' or public
1 | @available(macOS 10.8, iOS 6.0, tvOS 9.0, watchOS 2.0, *)
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
| `- note: struct 'UUID' is not '@usableFromInline' or public
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:41: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:4:12: note: initializer 'init()' is not '@usableFromInline' or public
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:48: error: property 'uuidString' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: property 'uuidString' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: property 'uuidString' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:7:16: note: property 'uuidString' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
7 | public var uuidString: String { get }
| `- note: property 'uuidString' is not '@usableFromInline' or public
8 | public func hash(into hasher: inout Hasher)
9 | public var description: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:206:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
204 |
205 | /// Returns an async stream of data chunks.
206 | public func makeAsyncStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
207 | AsyncStream { continuation in
208 | Task {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:49: error: struct 'UUID' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: struct 'UUID' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: struct 'UUID' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:2:15: note: struct 'UUID' is not '@usableFromInline' or public
1 | @available(macOS 10.8, iOS 6.0, tvOS 9.0, watchOS 2.0, *)
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
| `- note: struct 'UUID' is not '@usableFromInline' or public
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:49: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:4:12: note: initializer 'init()' is not '@usableFromInline' or public
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:56: error: property 'uuidString' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: property 'uuidString' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: property 'uuidString' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:7:16: note: property 'uuidString' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
7 | public var uuidString: String { get }
| `- note: property 'uuidString' is not '@usableFromInline' or public
8 | public func hash(into hasher: inout Hasher)
9 | public var description: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:67:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
65 | /// - filename: Optional filename for the data.
66 | /// - mimeType: The MIME type of the data. Defaults to "application/octet-stream".
67 | public mutating func append(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
68 | name: String,
69 | data: Data,
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:88:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
86 | /// - mimeType: The MIME type of the file. If not provided, it will be inferred from the file extension.
87 | /// - Throws: An error if the file cannot be read.
88 | public mutating func append(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
89 | name: String,
90 | fileURL: URL,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:112:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
110 | /// - encoder: The JSON encoder to use. Defaults to a new JSONEncoder.
111 | /// - Throws: An encoding error if the value cannot be encoded.
112 | public mutating func append<T: Encodable>(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'JSONEncoder' is imported by this file as 'internal' from 'Foundation'
113 | name: String,
114 | json value: T,
Foundation.JSONEncoder:2:12: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: type declared here
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:115:32: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
113 | name: String,
114 | json value: T,
115 | encoder: JSONEncoder = JSONEncoder()
| `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
116 | ) throws {
117 | let data = try encoder.encode(value)
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: class 'JSONEncoder' is not '@usableFromInline' or public
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:115:32: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
113 | name: String,
114 | json value: T,
115 | encoder: JSONEncoder = JSONEncoder()
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
116 | ) throws {
117 | let data = try encoder.encode(value)
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 | open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 | open var userInfo: [CodingUserInfoKey : Any] { get set }
47 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
48 | open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:128:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
126 | /// Encodes the multipart form data to a Data object.
127 | /// - Returns: The encoded form data.
128 | public func encode() -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
129 | var body = Data()
130 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:303:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
301 |
302 | extension MultipartFormData: Encoding {
303 | public func encode<T: Encodable>(_ value: T) throws -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
304 | // This encoder is used for endpoint body encoding
305 | // For multipart, we expect the value to be the MultipartFormData itself
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[19/31] Compiling WebClient WebClient+Multipart.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:48:9: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
46 |
47 | /// Query parameters to include in the URL.
48 | var queryItems: [URLQueryItem]? { get }
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
49 |
50 | /// Additional HTTP headers for this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:64:9: error: property must be declared internal because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
62 | public extension MultipartEndpoint {
63 | var pathComponents: [PathComponent]? { nil }
64 | var queryItems: [URLQueryItem]? { nil }
| |- error: property must be declared internal because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
65 | var headers: [String: String]? { nil }
66 | var retryPolicy: RetryPolicy? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:92:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
90 | /// - defaultHeaders: Default headers to include.
91 | /// - Returns: A configured URLRequest, or nil if the URL couldn't be constructed.
92 | func urlRequest(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
93 | relativeTo baseURL: URL,
94 | defaultHeaders: [String: String] = [:]
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:144:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
142 |
143 | /// The data for this part.
144 | public let data: Data
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
145 |
146 | public init(name: String, filename: String? = nil, mimeType: String = "application/octet-stream", data: Data) {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:146:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
144 | public let data: Data
145 |
146 | public init(name: String, filename: String? = nil, mimeType: String = "application/octet-stream", data: Data) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
147 | self.name = name
148 | self.filename = filename
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:41: error: struct 'UUID' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: struct 'UUID' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: struct 'UUID' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:2:15: note: struct 'UUID' is not '@usableFromInline' or public
1 | @available(macOS 10.8, iOS 6.0, tvOS 9.0, watchOS 2.0, *)
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
| `- note: struct 'UUID' is not '@usableFromInline' or public
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:41: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:4:12: note: initializer 'init()' is not '@usableFromInline' or public
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:168:48: error: property 'uuidString' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: property 'uuidString' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
166 | /// - chunkSize: The size of data chunks to yield. Defaults to 64KB.
167 | public init(
168 | boundary: String = "WebClient-\(UUID().uuidString)",
| `- error: property 'uuidString' is internal and cannot be referenced from a default argument value
169 | parts: [MultipartPart],
170 | chunkSize: Int = 64 * 1024
Foundation.UUID:7:16: note: property 'uuidString' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
7 | public var uuidString: String { get }
| `- note: property 'uuidString' is not '@usableFromInline' or public
8 | public func hash(into hasher: inout Hasher)
9 | public var description: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartEndpoint.swift:206:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that upload multipart form data.
:
204 |
205 | /// Returns an async stream of data chunks.
206 | public func makeAsyncStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
207 | AsyncStream { continuation in
208 | Task {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:49: error: struct 'UUID' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: struct 'UUID' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: struct 'UUID' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:2:15: note: struct 'UUID' is not '@usableFromInline' or public
1 | @available(macOS 10.8, iOS 6.0, tvOS 9.0, watchOS 2.0, *)
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
| `- note: struct 'UUID' is not '@usableFromInline' or public
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:49: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:4:12: note: initializer 'init()' is not '@usableFromInline' or public
2 | public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable {
3 | public var uuid: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) { get }
4 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:38:56: error: property 'uuidString' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: property 'uuidString' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
36 | /// Creates a new multipart form data with an optional custom boundary.
37 | /// - Parameter boundary: The boundary string. Defaults to a UUID-based boundary.
38 | public init(boundary: String = "WebClient-\(UUID().uuidString)") {
| `- error: property 'uuidString' is internal and cannot be referenced from a default argument value
39 | self.boundary = boundary
40 | }
Foundation.UUID:7:16: note: property 'uuidString' is not '@usableFromInline' or public
5 | public init?(uuidString string: __shared String)
6 | public init(uuid: uuid_t)
7 | public var uuidString: String { get }
| `- note: property 'uuidString' is not '@usableFromInline' or public
8 | public func hash(into hasher: inout Hasher)
9 | public var description: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:67:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
65 | /// - filename: Optional filename for the data.
66 | /// - mimeType: The MIME type of the data. Defaults to "application/octet-stream".
67 | public mutating func append(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
68 | name: String,
69 | data: Data,
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:88:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
86 | /// - mimeType: The MIME type of the file. If not provided, it will be inferred from the file extension.
87 | /// - Throws: An error if the file cannot be read.
88 | public mutating func append(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
89 | name: String,
90 | fileURL: URL,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:112:26: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
110 | /// - encoder: The JSON encoder to use. Defaults to a new JSONEncoder.
111 | /// - Throws: An encoding error if the value cannot be encoded.
112 | public mutating func append<T: Encodable>(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'JSONEncoder' is imported by this file as 'internal' from 'Foundation'
113 | name: String,
114 | json value: T,
Foundation.JSONEncoder:2:12: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: type declared here
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:115:32: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
113 | name: String,
114 | json value: T,
115 | encoder: JSONEncoder = JSONEncoder()
| `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
116 | ) throws {
117 | let data = try encoder.encode(value)
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: class 'JSONEncoder' is not '@usableFromInline' or public
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:115:32: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
113 | name: String,
114 | json value: T,
115 | encoder: JSONEncoder = JSONEncoder()
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
116 | ) throws {
117 | let data = try encoder.encode(value)
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 | open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 | open var userInfo: [CodingUserInfoKey : Any] { get set }
47 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
48 | open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:128:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
126 | /// Encodes the multipart form data to a Data object.
127 | /// - Returns: The encoded form data.
128 | public func encode() -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
129 | var body = Data()
130 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Multipart/MultipartFormData.swift:303:17: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents a multipart/form-data body for file uploads and form submissions.
:
301 |
302 | extension MultipartFormData: Encoding {
303 | public func encode<T: Encodable>(_ value: T) throws -> Data {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
304 | // This encoder is used for endpoint body encoding
305 | // For multipart, we expect the value to be the MultipartFormData itself
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[20/31] Compiling WebClient RequestProviding.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
67 | ///
68 | /// Defaults to `nil`.
69 | var queryItems: [URLQueryItem]? { get }
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
70 |
71 | /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
112 | var method: HTTPMethod { .get }
113 | var pathComponents: [PathComponent]? { nil }
114 | var queryItems: [URLQueryItem]? { nil }
| |- error: property must be declared internal because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 | var headers: [String: String]? { nil }
116 | var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
136 | /// - defaultEncoder: Default encoder to use if none specified.
137 | /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 | func urlRequest(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: class 'JSONEncoder' is not '@usableFromInline' or public
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 | open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 | open var userInfo: [CodingUserInfoKey : Any] { get set }
47 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
48 | open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
37 | /// - response: The HTTP response.
38 | /// - Returns: The decoded success value.
39 | func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 | /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
44 | /// - response: The HTTP response.
45 | /// - Returns: The decoded failure value.
46 | func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 | try decoder.decode(Success.self, from: data)
60 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
62 |
63 | public extension ResponseHandling where Success == Void {
64 | func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 | ()
66 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
70 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 | try decoder.decode(Failure.self, from: data)
80 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
82 |
83 | public extension ResponseHandling where Failure == Void {
84 | func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 | ()
86 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
90 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
52 | /// - Parameter data: The error response body.
53 | /// - Returns: The decoded failure, or `nil` if decoding fails.
54 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
55 | }
56 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
58 |
59 | public extension StreamingEndpoint {
60 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
61 | }
62 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[21/31] Compiling WebClient ResponseHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
67 | ///
68 | /// Defaults to `nil`.
69 | var queryItems: [URLQueryItem]? { get }
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
70 |
71 | /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
112 | var method: HTTPMethod { .get }
113 | var pathComponents: [PathComponent]? { nil }
114 | var queryItems: [URLQueryItem]? { nil }
| |- error: property must be declared internal because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 | var headers: [String: String]? { nil }
116 | var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
136 | /// - defaultEncoder: Default encoder to use if none specified.
137 | /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 | func urlRequest(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: class 'JSONEncoder' is not '@usableFromInline' or public
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 | open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 | open var userInfo: [CodingUserInfoKey : Any] { get set }
47 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
48 | open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
37 | /// - response: The HTTP response.
38 | /// - Returns: The decoded success value.
39 | func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 | /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
44 | /// - response: The HTTP response.
45 | /// - Returns: The decoded failure value.
46 | func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 | try decoder.decode(Success.self, from: data)
60 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
62 |
63 | public extension ResponseHandling where Success == Void {
64 | func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 | ()
66 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
70 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 | try decoder.decode(Failure.self, from: data)
80 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
82 |
83 | public extension ResponseHandling where Failure == Void {
84 | func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 | ()
86 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
90 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
52 | /// - Parameter data: The error response body.
53 | /// - Returns: The decoded failure, or `nil` if decoding fails.
54 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
55 | }
56 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
58 |
59 | public extension StreamingEndpoint {
60 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
61 | }
62 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[22/31] Compiling WebClient StreamingEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
67 | ///
68 | /// Defaults to `nil`.
69 | var queryItems: [URLQueryItem]? { get }
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
70 |
71 | /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
1 | import Foundation
| `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
112 | var method: HTTPMethod { .get }
113 | var pathComponents: [PathComponent]? { nil }
114 | var queryItems: [URLQueryItem]? { nil }
| |- error: property must be declared internal because its type uses an internal type
| `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 | var headers: [String: String]? { nil }
116 | var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public var name: String
4 | public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
136 | /// - defaultEncoder: Default encoder to use if none specified.
137 | /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 | func urlRequest(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | open class JSONEncoder {
| `- note: class 'JSONEncoder' is not '@usableFromInline' or public
3 | public struct OutputFormatting : OptionSet, Sendable {
4 | public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint constructs its HTTP request.
:
139 | relativeTo baseURL: URL,
140 | defaultHeaders: [String: String] = [:],
141 | defaultEncoder: any Encoding = JSONEncoder()
| `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 | ) -> URLRequest? {
143 | // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 | open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 | open var userInfo: [CodingUserInfoKey : Any] { get set }
47 | public init()
| `- note: initializer 'init()' is not '@usableFromInline' or public
48 | open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
37 | /// - response: The HTTP response.
38 | /// - Returns: The decoded success value.
39 | func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 | /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
44 | /// - response: The HTTP response.
45 | /// - Returns: The decoded failure value.
46 | func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 | try decoder.decode(Success.self, from: data)
60 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
62 |
63 | public extension ResponseHandling where Success == Void {
64 | func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 | ()
66 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
70 | func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 | try decoder.decode(Failure.self, from: data)
80 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
82 |
83 | public extension ResponseHandling where Failure == Void {
84 | func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 | ()
86 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol that defines how an endpoint handles HTTP responses.
:
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
| `- error: extension cannot be declared public because its generic requirement uses an internal type
90 | func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 | data
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
52 | /// - Parameter data: The error response body.
53 | /// - Returns: The decoded failure, or `nil` if decoding fails.
54 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
55 | }
56 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that return streaming responses.
:
58 |
59 | public extension StreamingEndpoint {
60 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
61 | }
62 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[23/31] Compiling WebClient Decoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:19:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
17 | /// - Returns: The decoded value.
18 | /// - Throws: An error if decoding fails.
19 | func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
20 | }
21 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:24:1: error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
22 | // MARK: - Default Conformances
23 |
24 | extension JSONDecoder: Decoding {}
| `- error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
26 | extension PropertyListDecoder: Decoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:26:1: error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
24 | extension JSONDecoder: Decoding {}
25 |
26 | extension PropertyListDecoder: Decoding {}
| `- error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:17:10: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
15 | /// - Returns: The encoded data.
16 | /// - Throws: An error if encoding fails.
17 | func encode<T: Encodable>(_ value: T) throws -> Data
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
18 | }
19 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:22:1: error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
20 | // MARK: - Default Conformances
21 |
22 | extension JSONEncoder: Encoding {}
| `- error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
23 |
24 | extension PropertyListEncoder: Encoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:24:1: error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
22 | extension JSONEncoder: Encoding {}
23 |
24 | extension PropertyListEncoder: Encoding {}
| `- error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
[24/31] Compiling WebClient Encoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:19:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
17 | /// - Returns: The decoded value.
18 | /// - Throws: An error if decoding fails.
19 | func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
20 | }
21 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:24:1: error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
22 | // MARK: - Default Conformances
23 |
24 | extension JSONDecoder: Decoding {}
| `- error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
26 | extension PropertyListDecoder: Decoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:26:1: error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
24 | extension JSONDecoder: Decoding {}
25 |
26 | extension PropertyListDecoder: Decoding {}
| `- error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:17:10: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
15 | /// - Returns: The encoded data.
16 | /// - Throws: An error if encoding fails.
17 | func encode<T: Encodable>(_ value: T) throws -> Data
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
18 | }
19 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:22:1: error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
20 | // MARK: - Default Conformances
21 |
22 | extension JSONEncoder: Encoding {}
| `- error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
23 |
24 | extension PropertyListEncoder: Encoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:24:1: error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
22 | extension JSONEncoder: Encoding {}
23 |
24 | extension PropertyListEncoder: Encoding {}
| `- error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
[25/31] Compiling WebClient Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:19:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
17 | /// - Returns: The decoded value.
18 | /// - Throws: An error if decoding fails.
19 | func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
20 | }
21 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:24:1: error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
22 | // MARK: - Default Conformances
23 |
24 | extension JSONDecoder: Decoding {}
| `- error: cannot use conformance of 'JSONDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
26 | extension PropertyListDecoder: Decoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Decoding.swift:26:1: error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListDecoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can decode `Decodable` values from `Data`.
:
24 | extension JSONDecoder: Decoding {}
25 |
26 | extension PropertyListDecoder: Decoding {}
| `- error: cannot use conformance of 'PropertyListDecoder' to 'Sendable' here; 'Foundation' was not imported publicly
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:17:10: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
15 | /// - Returns: The encoded data.
16 | /// - Throws: An error if encoding fails.
17 | func encode<T: Encodable>(_ value: T) throws -> Data
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
18 | }
19 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:22:1: error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'JSONEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
20 | // MARK: - Default Conformances
21 |
22 | extension JSONEncoder: Encoding {}
| `- error: cannot use conformance of 'JSONEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
23 |
24 | extension PropertyListEncoder: Encoding {}
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/Encoding.swift:24:1: error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
1 | import Foundation
| `- note: extension of class 'PropertyListEncoder' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for types that can encode `Encodable` values to `Data`.
:
22 | extension JSONEncoder: Encoding {}
23 |
24 | extension PropertyListEncoder: Encoding {}
| `- error: cannot use conformance of 'PropertyListEncoder' to 'Sendable' here; 'Foundation' was not imported publicly
25 |
[26/31] Compiling WebClient DownloadEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
29 |
30 | /// Decodes a failure response from error data.
31 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
33 |
34 | public extension DownloadEndpoint {
35 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 | func decodeFailure(from data: Data) -> Failure? {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 | try? JSONDecoder().decode(Failure.self, from: data)
41 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
47 | public struct DownloadResult: Sendable {
48 | /// The downloaded data.
49 | public let data: Data
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 | /// The HTTP response.
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
50 |
51 | /// The HTTP response.
52 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
57 | }
58 |
59 | public init(data: Data, response: HTTPURLResponse) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 | self.data = data
61 | self.response = response
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
68 | public struct FileDownloadResult: Sendable {
69 | /// The URL where the file was saved.
70 | public let fileURL: URL
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 | /// The HTTP response.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
71 |
72 | /// The HTTP response.
73 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
76 | public let bytesDownloaded: Int64
77 |
78 | public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 | self.fileURL = fileURL
80 | self.response = response
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
91 | public final class ProgressTracker: ObservableObject, Sendable {
92 | /// The current progress.
93 | @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
94 |
95 | /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
94 |
95 | /// Whether the transfer is in progress.
96 | @Published public private(set) var isTransferring: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
97 |
98 | /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
97 |
98 | /// Whether the transfer completed successfully.
99 | @Published public private(set) var isCompleted: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 | /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
100 |
101 | /// The error if the transfer failed.
102 | @Published public private(set) var error: (any Error)?
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 | public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
58 | /// - Returns: The file download result.
59 | /// - Throws: `WebClientError<E.Failure>` on failure.
60 | func download<E: DownloadEndpoint>(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
61 | _ endpoint: E,
62 | to fileURL: URL,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 | /// The HTTP response.
381 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 | /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
394 |
395 | /// An async sequence of data chunks.
396 | public var chunks: AsyncThrowingStream<Data, any Error> {
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 | AsyncThrowingStream { continuation in
398 | Task {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[27/31] Compiling WebClient DownloadProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
29 |
30 | /// Decodes a failure response from error data.
31 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
33 |
34 | public extension DownloadEndpoint {
35 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 | func decodeFailure(from data: Data) -> Failure? {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 | try? JSONDecoder().decode(Failure.self, from: data)
41 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
47 | public struct DownloadResult: Sendable {
48 | /// The downloaded data.
49 | public let data: Data
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 | /// The HTTP response.
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
50 |
51 | /// The HTTP response.
52 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
57 | }
58 |
59 | public init(data: Data, response: HTTPURLResponse) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 | self.data = data
61 | self.response = response
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
68 | public struct FileDownloadResult: Sendable {
69 | /// The URL where the file was saved.
70 | public let fileURL: URL
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 | /// The HTTP response.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
71 |
72 | /// The HTTP response.
73 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
76 | public let bytesDownloaded: Int64
77 |
78 | public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 | self.fileURL = fileURL
80 | self.response = response
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
91 | public final class ProgressTracker: ObservableObject, Sendable {
92 | /// The current progress.
93 | @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
94 |
95 | /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
94 |
95 | /// Whether the transfer is in progress.
96 | @Published public private(set) var isTransferring: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
97 |
98 | /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
97 |
98 | /// Whether the transfer completed successfully.
99 | @Published public private(set) var isCompleted: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 | /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
100 |
101 | /// The error if the transfer failed.
102 | @Published public private(set) var error: (any Error)?
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 | public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
58 | /// - Returns: The file download result.
59 | /// - Throws: `WebClientError<E.Failure>` on failure.
60 | func download<E: DownloadEndpoint>(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
61 | _ endpoint: E,
62 | to fileURL: URL,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 | /// The HTTP response.
381 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 | /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
394 |
395 | /// An async sequence of data chunks.
396 | public var chunks: AsyncThrowingStream<Data, any Error> {
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 | AsyncThrowingStream { continuation in
398 | Task {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[28/31] Compiling WebClient WebClient+Download.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
29 |
30 | /// Decodes a failure response from error data.
31 | func decodeFailure(from data: Data) -> Failure?
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
33 |
34 | public extension DownloadEndpoint {
35 | func decodeFailure(from _: Data) -> Failure? { nil }
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 | func decodeFailure(from data: Data) -> Failure? {
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 | try? JSONDecoder().decode(Failure.self, from: data)
41 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
47 | public struct DownloadResult: Sendable {
48 | /// The downloaded data.
49 | public let data: Data
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 | /// The HTTP response.
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
50 |
51 | /// The HTTP response.
52 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
57 | }
58 |
59 | public init(data: Data, response: HTTPURLResponse) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 | self.data = data
61 | self.response = response
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
68 | public struct FileDownloadResult: Sendable {
69 | /// The URL where the file was saved.
70 | public let fileURL: URL
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 | /// The HTTP response.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
71 |
72 | /// The HTTP response.
73 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 | /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// A protocol for endpoints that support download progress tracking.
:
76 | public let bytesDownloaded: Int64
77 |
78 | public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 | self.fileURL = fileURL
80 | self.response = response
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
91 | public final class ProgressTracker: ObservableObject, Sendable {
92 | /// The current progress.
93 | @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
94 |
95 | /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
94 |
95 | /// Whether the transfer is in progress.
96 | @Published public private(set) var isTransferring: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
97 |
98 | /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
97 |
98 | /// Whether the transfer completed successfully.
99 | @Published public private(set) var isCompleted: Bool = false
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 | /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
1 | import Foundation
| `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents the progress of a download or upload operation.
:
100 |
101 | /// The error if the transfer failed.
102 | @Published public private(set) var error: (any Error)?
| |- error: property cannot be declared public because its property wrapper type uses an internal type
| `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 | public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
| `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
58 | /// - Returns: The file download result.
59 | /// - Throws: `WebClientError<E.Failure>` on failure.
60 | func download<E: DownloadEndpoint>(
| |- error: method must be declared internal because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
61 | _ endpoint: E,
62 | to fileURL: URL,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 | /// The HTTP response.
381 | public let response: HTTPURLResponse
| |- error: property cannot be declared public because its type uses an internal type
| `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 | /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
1 | @available(macOS 10.2, *)
2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
| `- note: type declared here
3 | @available(macOS 10.7, *)
4 | public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | // MARK: - WebClient Download Extension
:
394 |
395 | /// An async sequence of data chunks.
396 | public var chunks: AsyncThrowingStream<Data, any Error> {
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 | AsyncThrowingStream { continuation in
398 | Task {
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
[29/31] Compiling WebClient RateLimitInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
53 | }
54 |
55 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
56 | _ request: URLRequest,
57 | context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
| `- note: type declared here
3 | public typealias ReferenceType = NSURLRequest
4 | public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
103 | }
104 |
105 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 | _ data: Data,
107 | response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
163 |
164 | /// The rate limit reset time, if provided by the server.
165 | public let resetTime: Date?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 | /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
166 |
167 | /// Creates a rate limited error.
168 | public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 | self.retryAfter = retryAfter
170 | self.remaining = remaining
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
77 | /// - host: The host being connected to.
78 | /// - Returns: `true` if validation passes, `false` otherwise.
79 | public func validate(serverTrust: SecTrust, host: String) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
80 | guard let pin = pin(for: host) else {
81 | // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
212 |
213 | /// Checks if a certificate matches this pin.
214 | public func matches(certificate: SecCertificate) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 | // Check public key hashes
216 | if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
235 |
236 | /// Extracts and hashes the public key from a certificate.
237 | public static func publicKeyHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 | guard let publicKey = SecCertificateCopyKey(certificate) else {
239 | return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
250 |
251 | /// Hashes the entire certificate.
252 | public static func certificateHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 | let data = SecCertificateCopyData(certificate) as Data
254 | let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | import CryptoKit
2 | import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 | public var errorDescription: String? {
276 | "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: type declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
[30/31] Compiling WebClient RateLimiter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
53 | }
54 |
55 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
56 | _ request: URLRequest,
57 | context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
| `- note: type declared here
3 | public typealias ReferenceType = NSURLRequest
4 | public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
103 | }
104 |
105 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 | _ data: Data,
107 | response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
163 |
164 | /// The rate limit reset time, if provided by the server.
165 | public let resetTime: Date?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 | /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
166 |
167 | /// Creates a rate limited error.
168 | public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 | self.retryAfter = retryAfter
170 | self.remaining = remaining
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
77 | /// - host: The host being connected to.
78 | /// - Returns: `true` if validation passes, `false` otherwise.
79 | public func validate(serverTrust: SecTrust, host: String) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
80 | guard let pin = pin(for: host) else {
81 | // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
212 |
213 | /// Checks if a certificate matches this pin.
214 | public func matches(certificate: SecCertificate) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 | // Check public key hashes
216 | if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
235 |
236 | /// Extracts and hashes the public key from a certificate.
237 | public static func publicKeyHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 | guard let publicKey = SecCertificateCopyKey(certificate) else {
239 | return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
250 |
251 | /// Hashes the entire certificate.
252 | public static func certificateHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 | let data = SecCertificateCopyData(certificate) as Data
254 | let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | import CryptoKit
2 | import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 | public var errorDescription: String? {
276 | "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: type declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
[31/31] Compiling WebClient CertificatePinning.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
53 | }
54 |
55 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
56 | _ request: URLRequest,
57 | context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
| `- note: type declared here
3 | public typealias ReferenceType = NSURLRequest
4 | public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
103 | }
104 |
105 | public func intercept(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 | _ data: Data,
107 | response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
163 |
164 | /// The rate limit reset time, if provided by the server.
165 | public let resetTime: Date?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 | /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Date' imported as 'internal' from 'Foundation' here
2 |
3 | /// A request interceptor that enforces rate limiting before requests are sent.
:
166 |
167 | /// Creates a rate limited error.
168 | public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 | self.retryAfter = retryAfter
170 | self.remaining = remaining
Foundation.Date:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
| `- note: type declared here
3 | public static let timeIntervalBetween1970AndReferenceDate: Double
4 | public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
77 | /// - host: The host being connected to.
78 | /// - Returns: `true` if validation passes, `false` otherwise.
79 | public func validate(serverTrust: SecTrust, host: String) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
80 | guard let pin = pin(for: host) else {
81 | // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
212 |
213 | /// Checks if a certificate matches this pin.
214 | public func matches(certificate: SecCertificate) -> Bool {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 | // Check public key hashes
216 | if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
235 |
236 | /// Extracts and hashes the public key from a certificate.
237 | public static func publicKeyHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 | guard let publicKey = SecCertificateCopyKey(certificate) else {
239 | return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
1 | import CryptoKit
2 | import Foundation
| `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
250 |
251 | /// Hashes the entire certificate.
252 | public static func certificateHash(for certificate: SecCertificate) -> String? {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 | let data = SecCertificateCopyData(certificate) as Data
254 | let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | import CryptoKit
2 | import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
3 |
4 | /// Configuration for SSL/TLS certificate pinning.
:
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 | public var errorDescription: String? {
276 | "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: type declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
BUILD FAILURE 6.0 macosSpm