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 macOS (SPM) on 4 Nov 2024 22:39:31 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

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 /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "objectmapper",
      "name": "ObjectMapper",
      "url": "https://github.com/tristanhimmelman/ObjectMapper.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ObjectMapper",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/tristanhimmelman/ObjectMapper.git
[1/6333] Fetching objectmapper
Fetched https://github.com/tristanhimmelman/ObjectMapper.git from cache (1.25s)
Creating working copy for https://github.com/tristanhimmelman/ObjectMapper.git
Working copy of https://github.com/tristanhimmelman/ObjectMapper.git resolved at master (6021c60)
warning: '.resolve-product-dependencies': dependency 'objectmapper' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tristanhimmelman/ObjectMapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/25] Emitting module ObjectMapper
/Users/admin/builder/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 TransformType.swift
[5/27] Compiling ObjectMapper URLTransform.swift
[6/27] Compiling ObjectMapper Mapper.swift
[7/27] Compiling ObjectMapper NSDecimalNumberTransform.swift
[8/27] Compiling ObjectMapper CodableTransform.swift
[9/27] Compiling ObjectMapper CustomDateFormatTransform.swift
[10/27] Compiling ObjectMapper DataTransform.swift
[11/27] Compiling ObjectMapper MapError.swift
/Users/admin/builder/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?
[12/27] Compiling ObjectMapper Mappable.swift
/Users/admin/builder/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?
[13/27] Compiling ObjectMapper EnumOperators.swift
[14/27] Compiling ObjectMapper EnumTransform.swift
[15/27] Compiling ObjectMapper FromJSON.swift
[16/27] Compiling ObjectMapper Operators.swift
[17/27] Compiling ObjectMapper ToJSON.swift
[18/27] Compiling ObjectMapper TransformOf.swift
/Users/admin/builder/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) {
/Users/admin/builder/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) {
/Users/admin/builder/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 | 		}
[19/27] Compiling ObjectMapper TransformOperators.swift
/Users/admin/builder/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) {
/Users/admin/builder/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) {
/Users/admin/builder/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 | 		}
[20/27] Compiling ObjectMapper DateFormatterTransform.swift
[21/27] Compiling ObjectMapper DateTransform.swift
[22/27] Compiling ObjectMapper DictionaryTransform.swift
[23/27] Compiling ObjectMapper IntegerOperators.swift
[24/27] Compiling ObjectMapper Map.swift
[25/27] Compiling ObjectMapper HexColorTransform.swift
[26/27] Compiling ObjectMapper ISO8601DateTransform.swift
[27/27] Compiling ObjectMapper ImmutableMappable.swift
Build complete! (23.76s)
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/Info.plist
    /Users/admin/builder/spi-builder-workspace/Sources/Resources/PrivacyInfo.xcprivacy
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjectMapper",
  "name" : "ObjectMapper",
  "path" : "/Users/admin/builder/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"
}
Done.