The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ObjectMapper, reference master (6021c6), with Swift 6.0 for Linux on 4 Nov 2024 22:24:48 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tristanhimmelman/ObjectMapper.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tristanhimmelman/ObjectMapper.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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 DateFormatterTransform.swift
[5/27] Compiling ObjectMapper DateTransform.swift
[6/27] Compiling ObjectMapper DictionaryTransform.swift
[7/27] Compiling ObjectMapper CodableTransform.swift
[8/27] Compiling ObjectMapper CustomDateFormatTransform.swift
[9/27] Compiling ObjectMapper DataTransform.swift
[10/27] Compiling ObjectMapper HexColorTransform.swift
[11/27] Compiling ObjectMapper ISO8601DateTransform.swift
[12/27] Compiling ObjectMapper ImmutableMappable.swift
[13/27] Compiling ObjectMapper EnumOperators.swift
[14/27] Compiling ObjectMapper EnumTransform.swift
[15/27] Compiling ObjectMapper FromJSON.swift
[16/27] Compiling ObjectMapper Mappable.swift
/host/spi-builder-workspace/Sources/Mapper.swift:115:16: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
113 | 					return object
114 | 				}
115 | 			} catch let error {
    |                `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
116 | 				#if DEBUG
117 | 				#if !os(Linux)
[17/27] Compiling ObjectMapper Mapper.swift
/host/spi-builder-workspace/Sources/Mapper.swift:115:16: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
113 | 					return object
114 | 				}
115 | 			} catch let error {
    |                `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
116 | 				#if DEBUG
117 | 				#if !os(Linux)
[18/27] Compiling ObjectMapper NSDecimalNumberTransform.swift
/host/spi-builder-workspace/Sources/Mapper.swift:115:16: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
113 | 					return object
114 | 				}
115 | 			} catch let error {
    |                `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
116 | 				#if DEBUG
117 | 				#if !os(Linux)
[19/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?
[20/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?
[21/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?
[22/27] Compiling ObjectMapper Operators.swift
[23/27] Compiling ObjectMapper ToJSON.swift
[24/27] Compiling ObjectMapper TransformOf.swift
[25/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 | 		}
[26/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 | 		}
[27/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 | 		}
Build complete! (11.72s)
Build complete.
{
  "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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.