Build Information
Failed to build SemanticPen, reference v1.0.0 (4014cc), with Swift 6.1 for Android on 19 Jul 2025 21:05:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Reference: v1.0.0
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/pushkarsingh32/semanticpen-swift-sdk
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 4014cc9 Add Swift Package Index configuration
Cloned https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
Revision (git rev-parse @):
4014cc9f84a38b3ef3fd195cb6205cd5aa9ead22
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/pushkarsingh32/semanticpen-swift-sdk.git at v1.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
https://github.com/pushkarsingh32/semanticpen-swift-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SemanticPen",
"name" : "SemanticPen",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SemanticPen",
"targets" : [
"SemanticPen"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SemanticPenTests",
"module_type" : "SwiftTarget",
"name" : "SemanticPenTests",
"path" : "Tests/SemanticPenTests",
"sources" : [
"SemanticPenTests.swift"
],
"target_dependencies" : [
"SemanticPen"
],
"type" : "test"
},
{
"c99name" : "SemanticPen",
"module_type" : "SwiftTarget",
"name" : "SemanticPen",
"path" : "Sources/SemanticPen",
"product_memberships" : [
"SemanticPen"
],
"sources" : [
"Configuration.swift",
"Errors.swift",
"Models.swift",
"SemanticPen.swift",
"SemanticPenClient.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling SemanticPen SemanticPen.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling SemanticPen Errors.swift
[5/8] Emitting module SemanticPen
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[6/8] Compiling SemanticPen Models.swift
[7/8] Compiling SemanticPen Configuration.swift
[8/8] Compiling SemanticPen SemanticPenClient.swift
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:16:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
14 | self.configuration = configuration
15 |
16 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:19:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
19 | self.urlSession = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |
21 | self.jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:29:27: warning: capture of 'dateFormatter' with non-sendable type 'ISO8601DateFormatter' in a '@Sendable' closure
27 | let container = try decoder.singleValueContainer()
28 | let dateString = try container.decode(String.self)
29 | if let date = dateFormatter.date(from: dateString) {
| `- warning: capture of 'dateFormatter' with non-sendable type 'ISO8601DateFormatter' in a '@Sendable' closure
30 | return date
31 | }
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:100:23: error: cannot find 'URLRequest' in scope
98 | }
99 |
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = method
102 | request.setValue("Bearer \(configuration.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:115:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
113 |
114 | do {
115 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |
117 | guard let httpResponse = response as? HTTPURLResponse else {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling SemanticPen SemanticPen.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling SemanticPen Configuration.swift
[4/7] Emitting module SemanticPen
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[5/7] Compiling SemanticPen Errors.swift
[6/7] Compiling SemanticPen Models.swift
[7/7] Compiling SemanticPen SemanticPenClient.swift
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:7:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public class SemanticPenClient {
6 | private let configuration: Configuration
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private let jsonDecoder: JSONDecoder
9 | private let jsonEncoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:16:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
14 | self.configuration = configuration
15 |
16 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:19:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
18 | sessionConfig.timeoutIntervalForResource = configuration.timeoutInterval
19 | self.urlSession = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |
21 | self.jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:100:23: error: cannot find 'URLRequest' in scope
98 | }
99 |
100 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
101 | request.httpMethod = method
102 | request.setValue("Bearer \(configuration.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SemanticPen/SemanticPenClient.swift:115:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
113 |
114 | do {
115 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |
117 | guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.1 android