Build Information
Failed to build AIGitNarrator, reference main (010730
), with Swift 6.1 for Android on 10 Jun 2025 03:55:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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 0107302 Docs: Added installation instructions to README
Cloned https://github.com/pmusolino/AI-Git-Narrator.git
Revision (git rev-parse @):
010730288127b0a15a4fbbb0a42aecaa2076f891
SUCCESS checkout https://github.com/pmusolino/AI-Git-Narrator.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/pmusolino/AI-Git-Narrator.git
https://github.com/pmusolino/AI-Git-Narrator.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "AIGitNarrator",
"name" : "AIGitNarrator",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "AIGitNarrator",
"targets" : [
"AIGitNarrator"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "AIGitNarrator",
"module_type" : "SwiftTarget",
"name" : "AIGitNarrator",
"path" : "Sources",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"AIGitNarrator"
],
"sources" : [
"GitHelper.swift",
"LLMs/LLMProvider.swift",
"LLMs/LanguageModelFactory.swift",
"LLMs/LanguageModelService.swift",
"LLMs/PromptBuilder.swift",
"LLMs/Services/GeminiService.swift",
"LLMs/Services/OllamaService.swift",
"LLMs/Services/OpenAIService.swift",
"Models/GitCommit.swift",
"Models/GitDiff.swift",
"Models/LanguageModelError.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.78s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.23s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/10] Write sources
[4/10] Write swift-version-24593BA9C3E375BF.txt
[6/12] Emitting module ArgumentParserToolInfo
[7/12] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/13] Wrapping AST for ArgumentParserToolInfo for debugging
[10/51] Emitting module ArgumentParser
[11/56] Compiling ArgumentParser BashCompletionsGenerator.swift
[12/56] Compiling ArgumentParser CompletionsGenerator.swift
[13/56] Compiling ArgumentParser FishCompletionsGenerator.swift
[14/56] Compiling ArgumentParser ZshCompletionsGenerator.swift
[15/56] Compiling ArgumentParser Argument.swift
[16/56] Compiling ArgumentParser ArgumentHelp.swift
[17/56] Compiling ArgumentParser OptionGroup.swift
[18/56] Compiling ArgumentParser AsyncParsableCommand.swift
[19/56] Compiling ArgumentParser CommandConfiguration.swift
[20/56] Compiling ArgumentParser CommandGroup.swift
[21/56] Compiling ArgumentParser EnumerableFlag.swift
[22/56] Compiling ArgumentParser ExpressibleByArgument.swift
[23/56] Compiling ArgumentParser ParsableArguments.swift
[24/56] Compiling ArgumentParser ParsableArgumentsValidation.swift
[25/56] Compiling ArgumentParser ParsableCommand.swift
[26/56] Compiling ArgumentParser ArgumentDecoder.swift
[27/56] Compiling ArgumentParser CollectionExtensions.swift
[28/56] Compiling ArgumentParser Platform.swift
[29/56] Compiling ArgumentParser SequenceExtensions.swift
[30/56] Compiling ArgumentParser StringExtensions.swift
[31/56] Compiling ArgumentParser Tree.swift
[32/56] Compiling ArgumentParser ArgumentVisibility.swift
[33/56] Compiling ArgumentParser CompletionKind.swift
[34/56] Compiling ArgumentParser Errors.swift
[35/56] Compiling ArgumentParser Flag.swift
[36/56] Compiling ArgumentParser NameSpecification.swift
[37/56] Compiling ArgumentParser Option.swift
[38/56] Compiling ArgumentParser Name.swift
[39/56] Compiling ArgumentParser Parsed.swift
[40/56] Compiling ArgumentParser ParsedValues.swift
[41/56] Compiling ArgumentParser ParserError.swift
[42/56] Compiling ArgumentParser SplitArguments.swift
[43/56] Compiling ArgumentParser ArgumentDefinition.swift
[44/56] Compiling ArgumentParser ArgumentSet.swift
[45/56] Compiling ArgumentParser CommandParser.swift
[46/56] Compiling ArgumentParser InputKey.swift
[47/56] Compiling ArgumentParser InputOrigin.swift
[48/56] Compiling ArgumentParser DumpHelpGenerator.swift
[49/56] Compiling ArgumentParser HelpCommand.swift
[50/56] Compiling ArgumentParser HelpGenerator.swift
[51/56] Compiling ArgumentParser MessageInfo.swift
[52/56] Compiling ArgumentParser UsageGenerator.swift
[53/57] Wrapping AST for ArgumentParser for debugging
[55/69] Compiling AIGitNarrator GitDiff.swift
[56/70] 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 'URLSession' (aka '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 'URLSession' (aka '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
[57/70] 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 'URLSession' (aka '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 'URLSession' (aka '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
[58/70] Compiling AIGitNarrator GitCommit.swift
[59/70] Compiling AIGitNarrator LanguageModelError.swift
[60/70] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
[61/70] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[62/70] Compiling AIGitNarrator LanguageModelFactory.swift
[63/70] Compiling AIGitNarrator LanguageModelService.swift
[64/70] Compiling AIGitNarrator GitHelper.swift
[65/70] Compiling AIGitNarrator LLMProvider.swift
[66/70] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
[67/70] Compiling AIGitNarrator main.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/7] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling ArgumentParserToolInfo ToolInfo.swift
[4/9] Emitting module ArgumentParserToolInfo
[6/47] Emitting module ArgumentParser
[7/52] Compiling ArgumentParser BashCompletionsGenerator.swift
[8/52] Compiling ArgumentParser CompletionsGenerator.swift
[9/52] Compiling ArgumentParser FishCompletionsGenerator.swift
[10/52] Compiling ArgumentParser ZshCompletionsGenerator.swift
[11/52] Compiling ArgumentParser Argument.swift
[12/52] Compiling ArgumentParser ArgumentHelp.swift
[13/52] Compiling ArgumentParser ExpressibleByArgument.swift
[14/52] Compiling ArgumentParser ParsableArguments.swift
[15/52] Compiling ArgumentParser ParsableArgumentsValidation.swift
[16/52] Compiling ArgumentParser ParsableCommand.swift
[17/52] Compiling ArgumentParser ArgumentDecoder.swift
[18/52] Compiling ArgumentParser CollectionExtensions.swift
[19/52] Compiling ArgumentParser Platform.swift
[20/52] Compiling ArgumentParser SequenceExtensions.swift
[21/52] Compiling ArgumentParser StringExtensions.swift
[22/52] Compiling ArgumentParser Tree.swift
[23/52] Compiling ArgumentParser Name.swift
[24/52] Compiling ArgumentParser Parsed.swift
[25/52] Compiling ArgumentParser ParsedValues.swift
[26/52] Compiling ArgumentParser ParserError.swift
[27/52] Compiling ArgumentParser SplitArguments.swift
[28/52] Compiling ArgumentParser OptionGroup.swift
[29/52] Compiling ArgumentParser AsyncParsableCommand.swift
[30/52] Compiling ArgumentParser CommandConfiguration.swift
[31/52] Compiling ArgumentParser CommandGroup.swift
[32/52] Compiling ArgumentParser EnumerableFlag.swift
[33/52] Compiling ArgumentParser ArgumentVisibility.swift
[34/52] Compiling ArgumentParser CompletionKind.swift
[35/52] Compiling ArgumentParser Errors.swift
[36/52] Compiling ArgumentParser Flag.swift
[37/52] Compiling ArgumentParser NameSpecification.swift
[38/52] Compiling ArgumentParser Option.swift
[39/52] Compiling ArgumentParser ArgumentDefinition.swift
[40/52] Compiling ArgumentParser ArgumentSet.swift
[41/52] Compiling ArgumentParser CommandParser.swift
[42/52] Compiling ArgumentParser InputKey.swift
[43/52] Compiling ArgumentParser InputOrigin.swift
[44/52] Compiling ArgumentParser DumpHelpGenerator.swift
[45/52] Compiling ArgumentParser HelpCommand.swift
[46/52] Compiling ArgumentParser HelpGenerator.swift
[47/52] Compiling ArgumentParser MessageInfo.swift
[48/52] Compiling ArgumentParser UsageGenerator.swift
[50/64] Compiling AIGitNarrator LanguageModelError.swift
[51/64] Compiling AIGitNarrator GitCommit.swift
[52/64] Compiling AIGitNarrator GitDiff.swift
[53/65] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
[54/65] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/65] 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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
[56/65] Compiling AIGitNarrator LanguageModelFactory.swift
[57/65] Compiling AIGitNarrator LanguageModelService.swift
[58/65] Compiling AIGitNarrator GitHelper.swift
[59/65] Compiling AIGitNarrator LLMProvider.swift
[60/65] 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 'URLSession' (aka '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 'URLSession' (aka '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
[61/65] 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 'URLSession' (aka '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 'URLSession' (aka '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
[62/65] Compiling AIGitNarrator main.swift
BUILD FAILURE 6.1 android