The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DeepSeekKit, reference 1.0.1 (be5675), with Swift 6.3 for Android on 16 Apr 2026 13:17:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/DeepSeekKit.git
Reference: 1.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guitaripod/DeepSeekKit
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at be56758 docs: Enhance DocC documentation throughout the framework
Cloned https://github.com/guitaripod/DeepSeekKit.git
Revision (git rev-parse @):
be567583dc60ef0266e7200d39f775beba934b1c
SUCCESS checkout https://github.com/guitaripod/DeepSeekKit.git at 1.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/guitaripod/DeepSeekKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
[229/19800] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin from cache (1.04s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.04s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.95s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.45s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.17s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.61s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/15] Write sources
[8/15] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/42] Emitting module DeepSeekKit
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
[11/45] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/45] Emitting module ArgumentParserToolInfo
[13/46] Wrapping AST for ArgumentParserToolInfo for debugging
[15/92] Emitting module ArgumentParser
[16/98] Compiling ArgumentParser ParentCommand.swift
[17/98] Compiling ArgumentParser AsyncParsableCommand.swift
[18/98] Compiling ArgumentParser CommandConfiguration.swift
[19/98] Compiling ArgumentParser CommandGroup.swift
[20/98] Compiling ArgumentParser EnumerableFlag.swift
[21/98] Compiling ArgumentParser ExpressibleByArgument.swift
[22/98] Compiling ArgumentParser ParsableArguments.swift
[23/98] Compiling ArgumentParser ArgumentVisibility.swift
[24/98] Compiling ArgumentParser CompletionKind.swift
[25/98] Compiling ArgumentParser Errors.swift
[26/98] Compiling ArgumentParser Flag.swift
[27/98] Compiling ArgumentParser NameSpecification.swift
[28/98] Compiling ArgumentParser Option.swift
[29/98] Compiling ArgumentParser OptionGroup.swift
[30/98] Compiling ArgumentParser BashCompletionsGenerator.swift
[31/98] Compiling ArgumentParser CompletionsGenerator.swift
[32/98] Compiling ArgumentParser FishCompletionsGenerator.swift
[33/98] Compiling ArgumentParser ZshCompletionsGenerator.swift
[34/98] Compiling ArgumentParser Argument.swift
[35/98] Compiling ArgumentParser ArgumentDiscussion.swift
[36/98] Compiling ArgumentParser ArgumentHelp.swift
[37/98] Compiling ArgumentParser Tree.swift
[38/98] Compiling ArgumentParser CodingKeyValidator.swift
[39/98] Compiling ArgumentParser NonsenseFlagsValidator.swift
[40/98] Compiling ArgumentParser ParsableArgumentsValidation.swift
[41/98] Compiling ArgumentParser PositionalArgumentsValidator.swift
[42/98] Compiling ArgumentParser UniqueNamesValidator.swift
[43/98] Compiling ArgumentParser InputOrigin.swift
[44/98] Compiling ArgumentParser Name.swift
[45/98] Compiling ArgumentParser Parsed.swift
[46/98] Compiling ArgumentParser ParsedValues.swift
[47/98] Compiling ArgumentParser ParserError.swift
[48/98] Compiling ArgumentParser SplitArguments.swift
[49/98] Compiling ArgumentParser DumpHelpGenerator.swift
[50/98] Compiling ArgumentParser HelpCommand.swift
[51/98] Compiling ArgumentParser HelpGenerator.swift
[52/98] Compiling ArgumentParser MessageInfo.swift
[53/98] Compiling ArgumentParser UsageGenerator.swift
[54/98] Compiling ArgumentParser CollectionExtensions.swift
[55/98] Compiling ArgumentParser Foundation.swift
[56/98] Compiling ArgumentParser Mutex.swift
[57/98] Compiling ArgumentParser Platform.swift
[58/98] Compiling ArgumentParser SequenceExtensions.swift
[59/98] Compiling ArgumentParser StringExtensions.swift
[60/98] Compiling ArgumentParser SwiftExtensions.swift
[69/98] Compiling ArgumentParser CommandParser.swift
[70/98] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:16: error: cannot find 'CFBooleanGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                `- error: cannot find 'CFBooleanGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:231:40: error: cannot find 'CFGetTypeID' in scope
229 |         return boolID == "c" || boolID == "B"
230 |         #else
231 |         return CFBooleanGetTypeID() == CFGetTypeID(self)
    |                                        `- error: cannot find 'CFGetTypeID' in scope
232 |         #endif
233 |     }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:46:48: error: cannot find type 'URLRequest' in scope
44 |     // MARK: - Private Methods
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
47 |         var request = URLRequest(url: url)
48 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:54:79: error: cannot find type 'URLRequest' in scope
52 |     }
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
   |                                                                               `- error: cannot find type 'URLRequest' in scope
55 |         var request = URLRequest(url: url)
56 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:47:23: error: cannot find 'URLRequest' in scope
45 |
46 |     private func createGETRequest(url: URL) -> URLRequest {
47 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
48 |         request.httpMethod = "GET"
49 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:55:23: error: cannot find 'URLRequest' in scope
53 |
54 |     private func createPOSTRequest<T: Encodable>(url: URL, body: T) throws -> URLRequest {
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = "POST"
57 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
14 |         decoder: JSONDecoder = JSONDecoder(),
15 |         encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T {
   |                                           `- error: cannot find type 'URLRequest' in scope
23 |         let data = try await performRaw(request)
24 |
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:45:32: error: cannot find type 'URLRequest' in scope
43 |     }
44 |
45 |     func performRaw(_ request: URLRequest) async throws -> Data {
   |                                `- error: cannot find type 'URLRequest' in scope
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:8:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 6 | /// URLSession-based implementation of the networking protocol.
 7 | final class URLSessionNetworking: NetworkingProtocol {
 8 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetworking' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 9 |     private let decoder: JSONDecoder
10 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/URLSessionNetworking.swift:48:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
46 |         do {
47 |             return try await withCheckedThrowingContinuation { continuation in
48 |                 let task = session.dataTask(with: request) { data, response, error in
   |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
49 |                     if let error = error {
50 |                         continuation.resume(throwing: DeepSeekError.networkError(error))
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:38:33: error: cannot find type 'URLRequest' in scope
36 |
37 |     /// Creates a request to get user balance.
38 |     func getBalanceRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
39 |         // Balance endpoint uses the root API URL without /v1
40 |         let balanceURL = URL(string: "https://api.deepseek.com/user/balance")!
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:19:76: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Creates a request for the chat completions endpoint.
19 |     func chatCompletionRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
   |                                                                            `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL.appendingPathComponent("chat/completions")
21 |         return try createPOSTRequest(url: url, body: request)
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:25:68: error: cannot find type 'URLRequest' in scope
23 |
24 |     /// Creates a request for the completions endpoint (beta).
25 |     func completionRequest(_ request: CompletionRequest) throws -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
26 |         let betaURL = URL(string: "https://api.deepseek.com/beta")!
27 |         let url = betaURL.appendingPathComponent("completions")
/host/spi-builder-workspace/Sources/DeepSeekKit/Networking/RequestBuilder.swift:32:33: error: cannot find type 'URLRequest' in scope
30 |
31 |     /// Creates a request to list models.
32 |     func listModelsRequest() -> URLRequest {
   |                                 `- error: cannot find type 'URLRequest' in scope
33 |         let url = baseURL.appendingPathComponent("models")
34 |         return createGETRequest(url: url)
[84/98] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[85/98] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[86/98] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
[87/98] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |     /// - Returns: The decoded response object.
17 |     /// - Throws: `DeepSeekError` if the request fails or decoding fails.
18 |     func perform<T: Decodable>(_ request: URLRequest, expecting type: T.Type) async throws -> T
   |                                           `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Performs a network request and returns the raw data.
/host/spi-builder-workspace/Sources/DeepSeekKit/Core/NetworkingProtocol.swift:25:32: error: cannot find type 'URLRequest' in scope
23 |     /// - Returns: The raw response data.
24 |     /// - Throws: `DeepSeekError` if the request fails.
25 |     func performRaw(_ request: URLRequest) async throws -> Data
   |                                `- error: cannot find type 'URLRequest' in scope
26 | }
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     ) {
44 |         self.apiKey = apiKey
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         apiKey: String,
41 |         baseURL: URL = URL(string: "https://api.deepseek.com/v1")!,
42 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 |     ) {
44 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/DeepSeekKit/DeepSeekClient.swift:55:28: error: cannot find 'URLSessionStreamingHandler' in scope
53 |         streamingHandler = CURLStreamingHandler()
54 |         #else
55 |         streamingHandler = URLSessionStreamingHandler()
   |                            `- error: cannot find 'URLSessionStreamingHandler' in scope
56 |         #endif
57 |
BUILD FAILURE 6.3 android