Build Information
Failed to build ObjectMapper, reference 4.4.3 (6021c6), with Swift 6.1 for Android on 29 May 2025 08:53:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tristanhimmelman/ObjectMapper.git
Reference: 4.4.3
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/tristanhimmelman/ObjectMapper
* tag 4.4.3 -> FETCH_HEAD
HEAD is now at 6021c60 Merge pull request #1148 from kaulex99/patch-1
Cloned https://github.com/tristanhimmelman/ObjectMapper.git
Revision (git rev-parse @):
6021c6035e83a306047348666f6400dc61445d3b
SUCCESS checkout https://github.com/tristanhimmelman/ObjectMapper.git at 4.4.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/tristanhimmelman/ObjectMapper.git
https://github.com/tristanhimmelman/ObjectMapper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ObjectMapper",
"name" : "ObjectMapper",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "ObjectMapper",
"targets" : [
"ObjectMapper"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ObjectMapperTests",
"module_type" : "SwiftTarget",
"name" : "ObjectMapperTests",
"path" : "Tests",
"sources" : [
"ObjectMapperTests/BasicTypes.swift",
"ObjectMapperTests/BasicTypesTestsFromJSON.swift",
"ObjectMapperTests/BasicTypesTestsToJSON.swift",
"ObjectMapperTests/ClassClusterTests.swift",
"ObjectMapperTests/CodableTests.swift",
"ObjectMapperTests/CustomTransformTests.swift",
"ObjectMapperTests/DataTransformTests.swift",
"ObjectMapperTests/DictionaryTransformTests.swift",
"ObjectMapperTests/GenericObjectsTests.swift",
"ObjectMapperTests/IgnoreNilTests.swift",
"ObjectMapperTests/ImmutableTests.swift",
"ObjectMapperTests/MapContextTests.swift",
"ObjectMapperTests/MappableExtensionsTests.swift",
"ObjectMapperTests/MappableTypesWithTransformsTests.swift",
"ObjectMapperTests/NSDecimalNumberTransformTests.swift",
"ObjectMapperTests/NestedArrayTests.swift",
"ObjectMapperTests/NestedKeysTests.swift",
"ObjectMapperTests/NullableKeysFromJSONTests.swift",
"ObjectMapperTests/ObjectMapperTests.swift",
"ObjectMapperTests/PerformanceTests.swift",
"ObjectMapperTests/ToObjectTests.swift",
"ObjectMapperTests/URLTransformTests.swift"
],
"target_dependencies" : [
"ObjectMapper"
],
"type" : "test"
},
{
"c99name" : "ObjectMapper",
"module_type" : "SwiftTarget",
"name" : "ObjectMapper",
"path" : "Sources",
"product_memberships" : [
"ObjectMapper"
],
"sources" : [
"CodableTransform.swift",
"CustomDateFormatTransform.swift",
"DataTransform.swift",
"DateFormatterTransform.swift",
"DateTransform.swift",
"DictionaryTransform.swift",
"EnumOperators.swift",
"EnumTransform.swift",
"FromJSON.swift",
"HexColorTransform.swift",
"ISO8601DateTransform.swift",
"ImmutableMappable.swift",
"IntegerOperators.swift",
"Map.swift",
"MapError.swift",
"Mappable.swift",
"Mapper.swift",
"NSDecimalNumberTransform.swift",
"Operators.swift",
"ToJSON.swift",
"TransformOf.swift",
"TransformOperators.swift",
"TransformType.swift",
"URLTransform.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Resources/PrivacyInfo.xcprivacy
/host/spi-builder-workspace/Sources/Info.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/24] Emitting module ObjectMapper
/host/spi-builder-workspace/Sources/MapError.swift:33:13: warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
31 | public struct MapError: Error {
32 | public var key: String?
33 | public var currentValue: Any?
| `- warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
34 | public var reason: String?
35 | public var file: StaticString?
[4/27] Compiling ObjectMapper TransformOperators.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[5/27] Compiling ObjectMapper TransformType.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[6/27] Compiling ObjectMapper URLTransform.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[7/27] Compiling ObjectMapper EnumOperators.swift
[8/27] Compiling ObjectMapper EnumTransform.swift
[9/27] Compiling ObjectMapper FromJSON.swift
[10/27] Compiling ObjectMapper CodableTransform.swift
[11/27] Compiling ObjectMapper CustomDateFormatTransform.swift
[12/27] Compiling ObjectMapper DataTransform.swift
[13/27] Compiling ObjectMapper DateFormatterTransform.swift
[14/27] Compiling ObjectMapper DateTransform.swift
[15/27] Compiling ObjectMapper DictionaryTransform.swift
[16/27] Compiling ObjectMapper Mappable.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[17/27] Compiling ObjectMapper Mapper.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[18/27] Compiling ObjectMapper NSDecimalNumberTransform.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[19/27] Compiling ObjectMapper HexColorTransform.swift
[20/27] Compiling ObjectMapper ISO8601DateTransform.swift
[21/27] Compiling ObjectMapper ImmutableMappable.swift
[22/27] Compiling ObjectMapper Operators.swift
[23/27] Compiling ObjectMapper ToJSON.swift
[24/27] Compiling ObjectMapper TransformOf.swift
[25/27] Compiling ObjectMapper IntegerOperators.swift
/host/spi-builder-workspace/Sources/MapError.swift:33:13: warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
31 | public struct MapError: Error {
32 | public var key: String?
33 | public var currentValue: Any?
| `- warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
34 | public var reason: String?
35 | public var file: StaticString?
[26/27] Compiling ObjectMapper Map.swift
/host/spi-builder-workspace/Sources/MapError.swift:33:13: warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
31 | public struct MapError: Error {
32 | public var key: String?
33 | public var currentValue: Any?
| `- warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
34 | public var reason: String?
35 | public var file: StaticString?
[27/27] Compiling ObjectMapper MapError.swift
/host/spi-builder-workspace/Sources/MapError.swift:33:13: warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
31 | public struct MapError: Error {
32 | public var key: String?
33 | public var currentValue: Any?
| `- warning: stored property 'currentValue' of 'Sendable'-conforming struct 'MapError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
34 | public var reason: String?
35 | public var file: StaticString?
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/Info.plist
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Resources/PrivacyInfo.xcprivacy
/host/spi-builder-workspace/Sources/Info.plist
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling ObjectMapper Mappable.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[3/23] Compiling ObjectMapper Mapper.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[4/23] Compiling ObjectMapper NSDecimalNumberTransform.swift
/host/spi-builder-workspace/Sources/Mapper.swift:118:20: error: cannot find type 'NSException' in scope
116 | #if DEBUG
117 | #if !os(Linux)
118 | let exception: NSException
| `- error: cannot find type 'NSException' in scope
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:18: error: cannot find 'NSException' in scope
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot find 'NSException' in scope
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:37: error: cannot infer contextual base in reference to member 'init'
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:120:105: error: 'nil' requires a contextual type
118 | let exception: NSException
119 | if let mapError = error as? MapError {
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
| `- error: 'nil' requires a contextual type
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
/host/spi-builder-workspace/Sources/Mapper.swift:122:18: error: cannot find 'NSException' in scope
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot find 'NSException' in scope
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:37: error: cannot infer contextual base in reference to member 'init'
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: cannot infer contextual base in reference to member 'init'
123 | }
124 | exception.raise()
/host/spi-builder-workspace/Sources/Mapper.swift:122:125: error: 'nil' requires a contextual type
120 | exception = NSException(name: .init(rawValue: "MapError"), reason: mapError.description, userInfo: nil)
121 | } else {
122 | exception = NSException(name: .init(rawValue: "ImmutableMappableError"), reason: error.localizedDescription, userInfo: nil)
| `- error: 'nil' requires a contextual type
123 | }
124 | exception.raise()
[5/26] Compiling ObjectMapper Operators.swift
[6/26] Compiling ObjectMapper ToJSON.swift
[7/26] Compiling ObjectMapper TransformOf.swift
[8/26] Emitting module ObjectMapper
[9/26] Compiling ObjectMapper CodableTransform.swift
[10/26] Compiling ObjectMapper CustomDateFormatTransform.swift
[11/26] Compiling ObjectMapper DataTransform.swift
[12/26] Compiling ObjectMapper TransformOperators.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[13/26] Compiling ObjectMapper TransformType.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[14/26] Compiling ObjectMapper URLTransform.swift
/host/spi-builder-workspace/Sources/TransformOperators.swift:338:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
336 |
337 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
338 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
339 | let (key, values) = arg
340 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:375:46: warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
373 | if let dictionary = map.currentValue as? [String : [Any]], map.mappingType == .fromJSON && map.isKeyPresent {
374 |
375 | let transformedDictionary = dictionary.map { (arg: (key: String, values: [Any])) -> (String, [Transform.Object]) in
| `- warning: tuple conversion from '(key: String, value: [Any])' to '(key: String, values: [Any])' mismatches labels
376 | let (key, values) = arg
377 | if let jsonArray = fromJSONArrayWithTransform(values, transform: transform) {
/host/spi-builder-workspace/Sources/TransformOperators.swift:396:41: warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
394 |
395 | if map.mappingType == .toJSON {
396 | let transformedDictionary = left?.map { (arg: (key: String, values: [Transform.Object])) in
| `- warning: tuple conversion from '(key: String, value: [Transform.Object])' to '(key: String, values: [Transform.Object])' mismatches labels
397 | return (arg.key, toJSONArrayWithTransform(arg.values, transform: transform) ?? [])
398 | }
[15/26] Compiling ObjectMapper DateFormatterTransform.swift
[16/26] Compiling ObjectMapper DateTransform.swift
[17/26] Compiling ObjectMapper DictionaryTransform.swift
[18/26] Compiling ObjectMapper IntegerOperators.swift
[19/26] Compiling ObjectMapper Map.swift
[20/26] Compiling ObjectMapper MapError.swift
[21/26] Compiling ObjectMapper HexColorTransform.swift
[22/26] Compiling ObjectMapper ISO8601DateTransform.swift
[23/26] Compiling ObjectMapper ImmutableMappable.swift
[24/26] Compiling ObjectMapper EnumOperators.swift
[25/26] Compiling ObjectMapper EnumTransform.swift
[26/26] Compiling ObjectMapper FromJSON.swift
BUILD FAILURE 6.1 android