The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AIGitNarrator, reference main (c97fa9), with Swift 6.3 for Android on 18 Apr 2026 06:05:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/pmusolino/AI-Git-Narrator.git
Reference: main
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/pmusolino/AI-Git-Narrator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c97fa9a feat: update commit message prompt instructions for Conventional Commits
Cloned https://github.com/pmusolino/AI-Git-Narrator.git
Revision (git rev-parse @):
c97fa9a778066261c26ed9d6a58bad7b70e5a7e1
SUCCESS checkout https://github.com/pmusolino/AI-Git-Narrator.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/pmusolino/AI-Git-Narrator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
[1/17529] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (2.31s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (3.38s)
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 GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/11] Write sources
[5/11] Write swift-version--4F562202D5529B1.txt
[7/13] Emitting module ArgumentParserToolInfo
[8/13] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/14] Wrapping AST for ArgumentParserToolInfo for debugging
[11/60] Compiling ArgumentParser ParentCommand.swift
[12/60] Compiling ArgumentParser AsyncParsableCommand.swift
[13/60] Compiling ArgumentParser CommandConfiguration.swift
[14/60] Compiling ArgumentParser CommandGroup.swift
[15/60] Compiling ArgumentParser EnumerableFlag.swift
[16/60] Compiling ArgumentParser ExpressibleByArgument.swift
[17/60] Compiling ArgumentParser ParsableArguments.swift
[18/66] Emitting module ArgumentParser
[19/66] Compiling ArgumentParser InputOrigin.swift
[20/66] Compiling ArgumentParser Name.swift
[21/66] Compiling ArgumentParser Parsed.swift
[22/66] Compiling ArgumentParser ParsedValues.swift
[23/66] Compiling ArgumentParser ParserError.swift
[24/66] Compiling ArgumentParser SplitArguments.swift
[25/66] Compiling ArgumentParser ArgumentVisibility.swift
[26/66] Compiling ArgumentParser CompletionKind.swift
[27/66] Compiling ArgumentParser Errors.swift
[28/66] Compiling ArgumentParser Flag.swift
[29/66] Compiling ArgumentParser NameSpecification.swift
[30/66] Compiling ArgumentParser Option.swift
[31/66] Compiling ArgumentParser OptionGroup.swift
[32/66] Compiling ArgumentParser Tree.swift
[33/66] Compiling ArgumentParser CodingKeyValidator.swift
[34/66] Compiling ArgumentParser NonsenseFlagsValidator.swift
[35/66] Compiling ArgumentParser ParsableArgumentsValidation.swift
[36/66] Compiling ArgumentParser PositionalArgumentsValidator.swift
[37/66] Compiling ArgumentParser UniqueNamesValidator.swift
[38/66] Compiling ArgumentParser DumpHelpGenerator.swift
[39/66] Compiling ArgumentParser HelpCommand.swift
[40/66] Compiling ArgumentParser HelpGenerator.swift
[41/66] Compiling ArgumentParser MessageInfo.swift
[42/66] Compiling ArgumentParser UsageGenerator.swift
[43/66] Compiling ArgumentParser CollectionExtensions.swift
[44/66] Compiling ArgumentParser BashCompletionsGenerator.swift
[45/66] Compiling ArgumentParser CompletionsGenerator.swift
[46/66] Compiling ArgumentParser FishCompletionsGenerator.swift
[47/66] Compiling ArgumentParser ZshCompletionsGenerator.swift
[48/66] Compiling ArgumentParser Argument.swift
[49/66] Compiling ArgumentParser ArgumentDiscussion.swift
[50/66] Compiling ArgumentParser ArgumentHelp.swift
[51/66] Compiling ArgumentParser ParsableCommand.swift
[52/66] Compiling ArgumentParser ArgumentDecoder.swift
[53/66] Compiling ArgumentParser ArgumentDefinition.swift
[54/66] Compiling ArgumentParser ArgumentSet.swift
[55/66] Compiling ArgumentParser CommandParser.swift
[56/66] Compiling ArgumentParser InputKey.swift
[57/66] Compiling ArgumentParser Foundation.swift
[58/66] Compiling ArgumentParser Mutex.swift
[59/66] Compiling ArgumentParser Platform.swift
[60/66] Compiling ArgumentParser SequenceExtensions.swift
[61/66] Compiling ArgumentParser StringExtensions.swift
[62/66] Compiling ArgumentParser SwiftExtensions.swift
[63/75] Wrapping AST for ArgumentParser for debugging
[65/79] Compiling AIGitNarrator GitCommit.swift
[66/80] Compiling AIGitNarrator GitDiff.swift
[67/80] Compiling AIGitNarrator PromptBuilder.swift
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |         self.timeoutInterval = timeout ?? 120
 27 |
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |         config.timeoutIntervalForRequest = self.timeoutInterval
 30 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         config.timeoutIntervalForRequest = self.timeoutInterval
 30 |         config.timeoutIntervalForResource = self.timeoutInterval
 31 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         }
 38 |
 39 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         request.httpMethod = "POST"
 41 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:69:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 67 |
 68 |         do {
 69 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |
 71 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:98:49: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 96 |                 throw LanguageModelError.parsingError("Failed to parse content from Gemini response. Check response structure.")
 97 |             }
 98 |             return text.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                 `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 99 |         } catch let error as LanguageModelError {
100 |             throw error // Re-throw known errors
[68/80] Compiling AIGitNarrator GeminiService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 26 |         self.timeoutInterval = timeout ?? 120
 27 |
 28 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 29 |         config.timeoutIntervalForRequest = self.timeoutInterval
 30 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         config.timeoutIntervalForRequest = self.timeoutInterval
 30 |         config.timeoutIntervalForResource = self.timeoutInterval
 31 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         }
 38 |
 39 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         request.httpMethod = "POST"
 41 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:69:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 67 |
 68 |         do {
 69 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |
 71 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:98:49: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 96 |                 throw LanguageModelError.parsingError("Failed to parse content from Gemini response. Check response structure.")
 97 |             }
 98 |             return text.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                 `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 99 |         } catch let error as LanguageModelError {
100 |             throw error // Re-throw known errors
[69/80] Compiling AIGitNarrator LanguageModelFactory.swift
[70/80] Compiling AIGitNarrator LanguageModelService.swift
[71/80] Compiling AIGitNarrator OllamaService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:30:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 28 |         self.timeoutInterval = timeout ?? 120
 29 |
 30 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 31 |         config.timeoutIntervalForRequest = self.timeoutInterval
 32 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 31 |         config.timeoutIntervalForRequest = self.timeoutInterval
 32 |         config.timeoutIntervalForResource = self.timeoutInterval
 33 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 34 |     }
 35 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:45:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 43 |         self.timeoutInterval = timeout ?? 120
 44 |
 45 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 46 |         config.timeoutIntervalForRequest = self.timeoutInterval
 47 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:48:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |         config.timeoutIntervalForRequest = self.timeoutInterval
 47 |         config.timeoutIntervalForResource = self.timeoutInterval
 48 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |     }
 50 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |         }
 55 |
 56 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.httpMethod = "POST"
 58 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:83:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 81 |
 82 |         do {
 83 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 84 |
 85 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:98:53: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 96 |             }
 97 |
 98 |             return response.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                     `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 99 |         } catch let error as LanguageModelError {
100 |             throw error // Re-throw known errors
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:27:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 |         self.timeoutInterval = timeout ?? 120
26 |
27 |         let config = URLSessionConfiguration.default
   |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 |         config.timeoutIntervalForRequest = self.timeoutInterval
29 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:30:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 |         config.timeoutIntervalForRequest = self.timeoutInterval
29 |         config.timeoutIntervalForResource = self.timeoutInterval
30 |         self.urlSession = URLSession(configuration: config)
   |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |     }
32 |
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:38:23: error: cannot find 'URLRequest' in scope
36 |         }
37 |
38 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
39 |         request.httpMethod = "POST"
40 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:57:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 |
56 |         do {
57 |             let (data, response) = try await urlSession.data(for: request)
   |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
58 |
59 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:74:52: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
72 |                 throw LanguageModelError.parsingError("Failed to parse content from OpenAI response")
73 |             }
74 |             return content.trimmingCharacters(in: .whitespacesAndNewlines)
   |                                                    `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
75 |         } catch let error as LanguageModelError {
76 |             throw error // Re-throw known errors
[72/80] Compiling AIGitNarrator OpenAIService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:30:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 28 |         self.timeoutInterval = timeout ?? 120
 29 |
 30 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 31 |         config.timeoutIntervalForRequest = self.timeoutInterval
 32 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 31 |         config.timeoutIntervalForRequest = self.timeoutInterval
 32 |         config.timeoutIntervalForResource = self.timeoutInterval
 33 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 34 |     }
 35 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:45:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 43 |         self.timeoutInterval = timeout ?? 120
 44 |
 45 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 46 |         config.timeoutIntervalForRequest = self.timeoutInterval
 47 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:48:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |         config.timeoutIntervalForRequest = self.timeoutInterval
 47 |         config.timeoutIntervalForResource = self.timeoutInterval
 48 |         self.urlSession = URLSession(configuration: config)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |     }
 50 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:56:23: error: cannot find 'URLRequest' in scope
 54 |         }
 55 |
 56 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 57 |         request.httpMethod = "POST"
 58 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:83:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 81 |
 82 |         do {
 83 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 84 |
 85 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:98:53: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 96 |             }
 97 |
 98 |             return response.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                     `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
 99 |         } catch let error as LanguageModelError {
100 |             throw error // Re-throw known errors
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:27:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 |         self.timeoutInterval = timeout ?? 120
26 |
27 |         let config = URLSessionConfiguration.default
   |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 |         config.timeoutIntervalForRequest = self.timeoutInterval
29 |         config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:30:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 |         config.timeoutIntervalForRequest = self.timeoutInterval
29 |         config.timeoutIntervalForResource = self.timeoutInterval
30 |         self.urlSession = URLSession(configuration: config)
   |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |     }
32 |
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:38:23: error: cannot find 'URLRequest' in scope
36 |         }
37 |
38 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
39 |         request.httpMethod = "POST"
40 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:57:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 |
56 |         do {
57 |             let (data, response) = try await urlSession.data(for: request)
   |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
58 |
59 |             guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:74:52: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
72 |                 throw LanguageModelError.parsingError("Failed to parse content from OpenAI response")
73 |             }
74 |             return content.trimmingCharacters(in: .whitespacesAndNewlines)
   |                                                    `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
75 |         } catch let error as LanguageModelError {
76 |             throw error // Re-throw known errors
[73/80] Compiling AIGitNarrator LanguageModelError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[74/80] Emitting module AIGitNarrator
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 17 |     private let temperature: Double?
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 17 |     private let baseURL: String
 18 |     private let timeoutInterval: TimeInterval
 19 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-Sendable type 'AnyObject'
 20 |
 21 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
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/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
16 |     private let temperature: Double
17 |     private let timeoutInterval: TimeInterval
18 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-Sendable type 'AnyObject'
19 |
20 |     init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
[75/80] Compiling AIGitNarrator GitHelper.swift
[76/80] Compiling AIGitNarrator LLMProvider.swift
[77/80] Compiling AIGitNarrator main.swift
BUILD FAILURE 6.3 android