Build Information
Failed to build DependencyInjectorObjectMapper with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Digipolitan/dependency-injector-object-mapper.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Digipolitan/dependency-injector-object-mapper
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7a5335d Merge branch 'release/1.0.6'
Cloned https://github.com/Digipolitan/dependency-injector-object-mapper.git
Revision (git rev-parse @):
7a5335dfcf6c94b0ae31b773d640331da28eee9c
SUCCESS checkout https://github.com/Digipolitan/dependency-injector-object-mapper.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Digipolitan/dependency-injector-object-mapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/33] Compiling DependencyInjector Provider.swift
[6/33] Compiling DependencyInjector Module.swift
[7/33] Compiling DependencyInjector Injector.swift
[8/33] Compiling DependencyInjector Injectable.swift
[9/33] Emitting module DependencyInjector
[10/33] Compiling DependencyInjector Binder.swift
[11/33] Compiling ObjectMapper DateFormatterTransform.swift
[12/33] Compiling ObjectMapper DateTransform.swift
[13/33] Compiling ObjectMapper DictionaryTransform.swift
[14/35] Compiling ObjectMapper EnumOperators.swift
[15/35] Compiling ObjectMapper EnumTransform.swift
[16/35] Compiling ObjectMapper FromJSON.swift
[17/35] Compiling ObjectMapper CodableTransform.swift
[18/35] Compiling ObjectMapper CustomDateFormatTransform.swift
[19/35] Compiling ObjectMapper DataTransform.swift
[20/35] Compiling ObjectMapper TransformType.swift
[21/35] Compiling ObjectMapper URLTransform.swift
[22/35] Compiling ObjectMapper Operators.swift
[23/35] Compiling ObjectMapper ToJSON.swift
[24/35] Compiling ObjectMapper MapError.swift
[25/35] Compiling ObjectMapper Mappable.swift
[26/35] Compiling ObjectMapper TransformOf.swift
[27/35] Compiling ObjectMapper TransformOperators.swift
[28/35] Emitting module ObjectMapper
[29/35] Compiling ObjectMapper IntegerOperators.swift
[30/35] Compiling ObjectMapper Map.swift
[31/35] Compiling ObjectMapper Mapper.swift
[32/35] Compiling ObjectMapper NSDecimalNumberTransform.swift
[33/35] Compiling ObjectMapper HexColorTransform.swift
[34/35] Compiling ObjectMapper ISO8601DateTransform.swift
[35/35] Compiling ObjectMapper ImmutableMappable.swift
[36/40] Compiling DependencyInjectorObjectMapper Provider+ObjectMapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/Provider+ObjectMapper.swift:16:31: error: value of type 'any BaseMappable.Type' has no member 'init'
14 | convenience init(type: BaseMappable.Type) {
15 | self.init { (_, arguments) -> T? in
16 | if let res = type.init(JSON: arguments ?? [:]) as? T {
| `- error: value of type 'any BaseMappable.Type' has no member 'init'
17 | return res
18 | }
[37/40] Compiling DependencyInjectorObjectMapper Map+DependencyInjector.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
[38/40] Emitting module DependencyInjectorObjectMapper
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/dependency-injector/Sources/DependencyInjector/Injector.swift:13:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
5 | * @copyright 2017 Digipolitan. All rights reserved.
6 | */
7 | open class Injector {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
8 |
9 | /** Retrieves the list of Module */
:
11 |
12 | /** Retrieves the shared instance */
13 | public static let `default` = Injector.instance(scope: Injector.defaultScope)
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | private static var registry = [String: Injector]()
[39/40] Compiling DependencyInjectorObjectMapper Binder+ObjectMapper.swift
[40/40] Compiling DependencyInjectorObjectMapper InjectorTransformer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/dependency-injector/Sources/DependencyInjector/Injector.swift:13:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
5 | * @copyright 2017 Digipolitan. All rights reserved.
6 | */
7 | open class Injector {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
8 |
9 | /** Retrieves the list of Module */
:
11 |
12 | /** Retrieves the shared instance */
13 | public static let `default` = Injector.instance(scope: Injector.defaultScope)
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | private static var registry = [String: Injector]()
Fetching https://github.com/Hearst-DD/ObjectMapper.git
Fetching https://github.com/Digipolitan/dependency-injector.git
[1/748] Fetching dependency-injector
[383/7080] Fetching dependency-injector, objectmapper
Fetched https://github.com/Hearst-DD/ObjectMapper.git from cache (1.25s)
Fetched https://github.com/Digipolitan/dependency-injector.git from cache (1.25s)
Computing version for https://github.com/Digipolitan/dependency-injector.git
Computed https://github.com/Digipolitan/dependency-injector.git at 2.2.1 (0.70s)
Computing version for https://github.com/Hearst-DD/ObjectMapper.git
Computed https://github.com/Hearst-DD/ObjectMapper.git at 3.5.3 (2.32s)
Creating working copy for https://github.com/Hearst-DD/ObjectMapper.git
Working copy of https://github.com/Hearst-DD/ObjectMapper.git resolved at 3.5.3
Creating working copy for https://github.com/Digipolitan/dependency-injector.git
Working copy of https://github.com/Digipolitan/dependency-injector.git resolved at 2.2.1
BUILD FAILURE 6.0 macosSpm