The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LocalizationToolkitObjectMapper, reference v1.0.1 (19515a), with Swift 6.1 for Wasm on 27 May 2025 15:00:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Digipolitan/localization-toolkit-object-mapper.git
Reference: v1.0.1
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/Digipolitan/localization-toolkit-object-mapper
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at 19515a4 Merge branch 'release/1.0.1'
Cloned https://github.com/Digipolitan/localization-toolkit-object-mapper.git
Revision (git rev-parse @):
19515a4ddc1a218fc93579b8e021dccbf5d09d16
SUCCESS checkout https://github.com/Digipolitan/localization-toolkit-object-mapper.git at v1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Digipolitan/localization-toolkit-object-mapper.git
https://github.com/Digipolitan/localization-toolkit-object-mapper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "localization-toolkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Digipolitan/localization-toolkit.git"
    },
    {
      "identity" : "objectmapper",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Hearst-DD/ObjectMapper.git"
    }
  ],
  "manifest_display_name" : "LocalizationToolkitObjectMapper",
  "name" : "LocalizationToolkitObjectMapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LocalizationToolkitObjectMapper",
      "targets" : [
        "LocalizationToolkitObjectMapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizationToolkitObjectMapperTests",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationToolkitObjectMapperTests",
      "path" : "Tests/LocalizationToolkitObjectMapperTests",
      "sources" : [
        "LocalizationToolkitObjectMapperTests.swift",
        "Model.swift"
      ],
      "target_dependencies" : [
        "LocalizationToolkitObjectMapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LocalizationToolkitObjectMapper",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationToolkitObjectMapper",
      "path" : "Sources/LocalizationToolkitObjectMapper",
      "product_dependencies" : [
        "LocalizationToolkit",
        "ObjectMapper"
      ],
      "product_memberships" : [
        "LocalizationToolkitObjectMapper"
      ],
      "sources" : [
        "MultilingualStringTransform.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Digipolitan/localization-toolkit.git
Fetching https://github.com/Hearst-DD/ObjectMapper.git
[1/467] Fetching localization-toolkit
[468/6804] Fetching localization-toolkit, objectmapper
Fetched https://github.com/Digipolitan/localization-toolkit.git from cache (0.53s)
Fetched https://github.com/Hearst-DD/ObjectMapper.git from cache (0.54s)
Computing version for https://github.com/Digipolitan/localization-toolkit.git
Computed https://github.com/Digipolitan/localization-toolkit.git at 1.3.0 (5.08s)
Computing version for https://github.com/Hearst-DD/ObjectMapper.git
Computed https://github.com/Hearst-DD/ObjectMapper.git at 3.5.3 (2.48s)
Creating working copy for https://github.com/Digipolitan/localization-toolkit.git
Working copy of https://github.com/Digipolitan/localization-toolkit.git resolved at 1.3.0
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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/31] Emitting module LocalizationToolkit
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:13: error: cannot find 'NotificationCenter' in scope
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |             `- error: cannot find 'NotificationCenter' in scope
 33 |         }
 34 |     }
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:100: error: 'nil' requires a contextual type
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |                                                                                                    `- error: 'nil' requires a contextual type
 33 |         }
 34 |     }
[6/31] Compiling LocalizationToolkit String+Localization.swift
[7/31] Compiling LocalizationToolkit MultilingualString.swift
[8/31] Emitting module ObjectMapper
[9/31] Compiling ObjectMapper CodableTransform.swift
[10/31] Compiling ObjectMapper CustomDateFormatTransform.swift
[11/31] Compiling ObjectMapper DataTransform.swift
[12/34] Compiling LocalizationToolkit Localization.swift
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:13: error: cannot find 'NotificationCenter' in scope
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |             `- error: cannot find 'NotificationCenter' in scope
 33 |         }
 34 |     }
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:100: error: 'nil' requires a contextual type
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |                                                                                                    `- error: 'nil' requires a contextual type
 33 |         }
 34 |     }
[13/34] Compiling LocalizationToolkit Bundle+Localization.swift
[14/34] Compiling ObjectMapper HexColorTransform.swift
[15/34] Compiling ObjectMapper ISO8601DateTransform.swift
[16/34] Compiling ObjectMapper ImmutableMappable.swift
[17/34] Compiling ObjectMapper DateFormatterTransform.swift
[18/34] Compiling ObjectMapper DateTransform.swift
[19/34] Compiling ObjectMapper DictionaryTransform.swift
[20/34] Compiling ObjectMapper EnumOperators.swift
[21/34] Compiling ObjectMapper EnumTransform.swift
[22/34] Compiling ObjectMapper FromJSON.swift
[23/34] Compiling ObjectMapper IntegerOperators.swift
[24/34] Compiling ObjectMapper Map.swift
[25/34] Compiling ObjectMapper MapError.swift
[26/34] Compiling ObjectMapper Operators.swift
[27/34] Compiling ObjectMapper ToJSON.swift
[28/34] Compiling ObjectMapper TransformOf.swift
[29/34] Compiling ObjectMapper Mappable.swift
/host/spi-builder-workspace/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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()
[30/34] Compiling ObjectMapper Mapper.swift
/host/spi-builder-workspace/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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()
[31/34] Compiling ObjectMapper NSDecimalNumberTransform.swift
/host/spi-builder-workspace/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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/.build/checkouts/ObjectMapper/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()
[32/34] Compiling ObjectMapper TransformOperators.swift
[33/34] Compiling ObjectMapper TransformType.swift
[34/34] Compiling ObjectMapper URLTransform.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/28] Compiling LocalizationToolkit MultilingualString.swift
[3/28] Compiling LocalizationToolkit String+Localization.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/28] Emitting module LocalizationToolkit
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:13: error: cannot find 'NotificationCenter' in scope
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |             `- error: cannot find 'NotificationCenter' in scope
 33 |         }
 34 |     }
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:100: error: 'nil' requires a contextual type
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |                                                                                                    `- error: 'nil' requires a contextual type
 33 |         }
 34 |     }
[5/28] Compiling LocalizationToolkit Localization.swift
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:13: error: cannot find 'NotificationCenter' in scope
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |             `- error: cannot find 'NotificationCenter' in scope
 33 |         }
 34 |     }
/host/spi-builder-workspace/.build/checkouts/localization-toolkit/Sources/LocalizationToolkit/Localization.swift:32:100: error: 'nil' requires a contextual type
 30 |             UserDefaults.standard.set(self.appLanguage, forKey: Keys.app)
 31 |             UserDefaults.standard.synchronize()
 32 |             NotificationCenter.default.post(name: Notification.Name.LocalizationDidChange, object: nil)
    |                                                                                                    `- error: 'nil' requires a contextual type
 33 |         }
 34 |     }
[6/28] Compiling LocalizationToolkit Bundle+Localization.swift
BUILD FAILURE 6.1 wasm