Build Information
Failed to build swift-json-schema, reference v0.0.4 (105cfc), with Swift 6.2 for Android on 4 Jul 2025 14:54:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/niscy-eudiw/swift-json-schema.git
Reference: v0.0.4
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/niscy-eudiw/swift-json-schema
* tag v0.0.4 -> FETCH_HEAD
HEAD is now at 105cfcd [fix] updated package name
Cloned https://github.com/niscy-eudiw/swift-json-schema.git
Revision (git rev-parse @):
105cfcd41cf83f264f23ed36dc11191dea45b65f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/niscy-eudiw/swift-json-schema.git at v0.0.4
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/niscy-eudiw/swift-json-schema.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.35s)
[1/14685] Fetching swift-snapshot-testing
[589/85863] Fetching swift-snapshot-testing, swift-syntax
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.74s)
Fetched https://github.com/swiftlang/swift-syntax from cache (5.76s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (8.87s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.4 (0.41s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.33s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.69s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.91s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (1.49s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3421] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.21s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.50s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.4
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
warning: 'spi-builder-workspace': Invalid Resource 'JSON-Schema-Test-Suite': File not found.
warning: 'spi-builder-workspace': dependency 'swift-syntax' is not used by any target
warning: 'spi-builder-workspace': dependency 'swift-snapshot-testing' is not used by any target
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/12] Copying format-annotation.json
[2/12] Copying meta-data.json
[2/12] Write sources
[2/12] Copying applicator.json
[2/12] Copying content.json
[2/12] Copying core.json
[7/12] Copying validation.json
[7/12] Copying unevaluated.json
[8/12] Copying schema.json
[11/12] Write swift-version-8C5A4AE7A8CE2BA.txt
[13/40] Emitting module SwiftJSONSchema
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Validation/Context.swift:5:7: warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
3 | /// Container for information used when validating a schema.
4 | public final class Context: Sendable {
5 | var dialect: Dialect
| `- warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
6 |
7 | var rootRawSchema: JSONValue?
[14/43] Compiling SwiftJSONSchema Keywords+Applicator.swift
[15/43] Compiling SwiftJSONSchema Keywords+Assertion.swift
[16/43] Compiling SwiftJSONSchema Keywords+Identifier.swift
[17/43] Compiling SwiftJSONSchema Keywords+Metadata.swift
[18/43] Compiling SwiftJSONSchema SchemaIssue.swift
[19/43] Compiling SwiftJSONSchema ValidationIssue.swift
[20/43] Compiling SwiftJSONSchema ValidatableSchema.swift
[21/43] Compiling SwiftJSONSchema ValidationLocation.swift
[22/43] Compiling SwiftJSONSchema ValidationResult.swift
[23/43] Compiling SwiftJSONSchema resource_bundle_accessor.swift
[24/43] Compiling SwiftJSONSchema Annotation.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Dialect.swift:140:22: error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
138 | "meta/\(url.lastPathComponent?.replacingOccurrences(of: ".json", with: "") ?? "")"
139 | #else
140 | guard !url.lastPathComponent.hasPrefix("schema") else { return }
| |- error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
| |- note: chain the optional using '?' to access member 'hasPrefix' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
141 | let value = try jsonValue(from: url)
142 | let uriString =
[25/43] Compiling SwiftJSONSchema AnnotationContainer.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Dialect.swift:140:22: error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
138 | "meta/\(url.lastPathComponent?.replacingOccurrences(of: ".json", with: "") ?? "")"
139 | #else
140 | guard !url.lastPathComponent.hasPrefix("schema") else { return }
| |- error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
| |- note: chain the optional using '?' to access member 'hasPrefix' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
141 | let value = try jsonValue(from: url)
142 | let uriString =
[26/43] Compiling SwiftJSONSchema JSONType.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Dialect.swift:140:22: error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
138 | "meta/\(url.lastPathComponent?.replacingOccurrences(of: ".json", with: "") ?? "")"
139 | #else
140 | guard !url.lastPathComponent.hasPrefix("schema") else { return }
| |- error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
| |- note: chain the optional using '?' to access member 'hasPrefix' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
141 | let value = try jsonValue(from: url)
142 | let uriString =
[27/43] Compiling SwiftJSONSchema Dialect.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Dialect.swift:140:22: error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
138 | "meta/\(url.lastPathComponent?.replacingOccurrences(of: ".json", with: "") ?? "")"
139 | #else
140 | guard !url.lastPathComponent.hasPrefix("schema") else { return }
| |- error: value of optional type 'String?' must be unwrapped to refer to member 'hasPrefix' of wrapped base type 'String'
| |- note: chain the optional using '?' to access member 'hasPrefix' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
141 | let value = try jsonValue(from: url)
142 | let uriString =
[28/43] Compiling SwiftJSONSchema JSONValue+ExpressibleByLiteral.swift
[29/43] Compiling SwiftJSONSchema JSONValue.swift
[30/43] Compiling SwiftJSONSchema Keyword.swift
[31/43] Compiling SwiftJSONSchema Keywords+Annotation.swift
[32/43] Compiling SwiftJSONSchema Schema+Codable.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Validation/Context.swift:5:7: warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
3 | /// Container for information used when validating a schema.
4 | public final class Context: Sendable {
5 | var dialect: Dialect
| `- warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
6 |
7 | var rootRawSchema: JSONValue?
[33/43] Compiling SwiftJSONSchema Schema+Equatable.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Validation/Context.swift:5:7: warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
3 | /// Container for information used when validating a schema.
4 | public final class Context: Sendable {
5 | var dialect: Dialect
| `- warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
6 |
7 | var rootRawSchema: JSONValue?
[34/43] Compiling SwiftJSONSchema Schema.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Validation/Context.swift:5:7: warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
3 | /// Container for information used when validating a schema.
4 | public final class Context: Sendable {
5 | var dialect: Dialect
| `- warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
6 |
7 | var rootRawSchema: JSONValue?
[35/43] Compiling SwiftJSONSchema Context.swift
/host/spi-builder-workspace/Sources/SwiftJSONSchema/Validation/Context.swift:5:7: warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
3 | /// Container for information used when validating a schema.
4 | public final class Context: Sendable {
5 | var dialect: Dialect
| `- warning: stored property 'dialect' of 'Sendable'-conforming class 'Context' is mutable; this is an error in the Swift 6 language mode
6 |
7 | var rootRawSchema: JSONValue?
[36/43] Compiling SwiftJSONSchema BuiltinValidators.swift
[37/43] Compiling SwiftJSONSchema FormatValidator.swift
[38/43] Compiling SwiftJSONSchema Array+JSONValue.swift
[39/43] Compiling SwiftJSONSchema JSONValue+Codable.swift
[40/43] Compiling SwiftJSONSchema Keywords+Reference.swift
[41/43] Compiling SwiftJSONSchema Keywords+Reserved.swift
[42/43] Compiling SwiftJSONSchema Keywords.swift
[43/43] Compiling SwiftJSONSchema JSONPointer.swift
BUILD FAILURE 6.2 android