Build Information
Failed to build PhoneNumberKit, reference master (169ab1), with Swift 6.2 for Wasm on 24 Jun 2026 20:24:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marmelroy/PhoneNumberKit.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/marmelroy/PhoneNumberKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 169ab10 Deprecate repository — moved to the PhoneNumberKit organization (#906)
Cloned https://github.com/marmelroy/PhoneNumberKit.git
Revision (git rev-parse @):
169ab10234347fb19b37441f2867ace896a284b0
SUCCESS checkout https://github.com/marmelroy/PhoneNumberKit.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/marmelroy/PhoneNumberKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:7f35f7a63421c3ef050c9375efcbb60196c0ee099fe4e9f14f3ceef5fa7b1aa5
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/9] Write sources
[1/9] Copying PrivacyInfo.xcprivacy
[2/9] Copying PhoneNumberMetadata.json
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/30] Emitting module PhoneNumberKit
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
36 | public enum PhoneNumberDecodingUtils {
37 | /// The default ``PhoneNumberUtility`` instance used for parsing when decoding, if needed.
38 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
39 | }
40 |
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:43:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
41 | public enum PhoneNumberEncodingUtils {
42 | /// The default ``PhoneNumberUtility`` instance used for formatting when encoding, if needed.
43 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
44 | }
45 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[6/32] Compiling PhoneNumberKit MetadataManager.swift
[7/32] Compiling PhoneNumberKit MetadataParsing.swift
[8/32] Compiling PhoneNumberKit MetadataTypes.swift
[9/32] Compiling PhoneNumberKit PhoneNumber+Codable.swift
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
36 | public enum PhoneNumberDecodingUtils {
37 | /// The default ``PhoneNumberUtility`` instance used for parsing when decoding, if needed.
38 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
39 | }
40 |
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:43:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
41 | public enum PhoneNumberEncodingUtils {
42 | /// The default ``PhoneNumberUtility`` instance used for formatting when encoding, if needed.
43 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
44 | }
45 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[10/32] Compiling PhoneNumberKit PhoneNumber.swift
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
36 | public enum PhoneNumberDecodingUtils {
37 | /// The default ``PhoneNumberUtility`` instance used for parsing when decoding, if needed.
38 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
39 | }
40 |
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:43:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
41 | public enum PhoneNumberEncodingUtils {
42 | /// The default ``PhoneNumberUtility`` instance used for formatting when encoding, if needed.
43 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
44 | }
45 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[11/32] Compiling PhoneNumberKit PhoneNumberFormatter.swift
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
36 | public enum PhoneNumberDecodingUtils {
37 | /// The default ``PhoneNumberUtility`` instance used for parsing when decoding, if needed.
38 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
39 | }
40 |
/host/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:43:71: warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
41 | public enum PhoneNumberEncodingUtils {
42 | /// The default ``PhoneNumberUtility`` instance used for formatting when encoding, if needed.
43 | public static var defaultUtility: PhoneNumberUtilityProvider = { .init() }
| `- warning: 'init(metadataCallback:)' is deprecated: PhoneNumberKit has moved to github.com/PhoneNumberKit/PhoneNumberKit and is no longer maintained here. See the README to migrate. [#DeprecatedDeclaration]
44 | }
45 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[12/32] Compiling PhoneNumberKit PhoneNumberTextFieldDelegate.swift
[13/32] Compiling PhoneNumberKit resource_bundle_accessor.swift
[14/32] Compiling PhoneNumberKit CountryCodePickerViewController.swift
[15/32] Compiling PhoneNumberKit PhoneNumberTextField.swift
[16/32] Compiling PhoneNumberKit CountryCodePickerOptions.swift
[17/32] Compiling PhoneNumberKit CountryCodePickerSectionHeaderView.swift
[18/32] Compiling PhoneNumberKit CountryCodePickerTableViewCell.swift
[19/32] Compiling PhoneNumberKit PhoneNumberParser.swift
[20/32] Compiling PhoneNumberKit PhoneNumberUtility.swift
[21/32] Compiling PhoneNumberKit RegexManager.swift
[22/32] Compiling PhoneNumberKit NSRegularExpression+Swift.swift
[23/32] Compiling PhoneNumberKit ParseManager.swift
[24/32] Compiling PhoneNumberKit PartialFormatter.swift
[25/32] Compiling PhoneNumberKit Bundle+Resources.swift
[26/32] Compiling PhoneNumberKit Constants.swift
[27/32] Compiling PhoneNumberKit Formatter.swift
[28/33] Wrapping AST for PhoneNumberKit for debugging
[29/33] Write Objects.LinkFileList
error: dynamic libraries are unsupported for target 'wasm32-unknown-wasip1'
[31/33] Linking libPhoneNumberKit-Dynamic.wasm
[31/33] Archiving libPhoneNumberKit-Static.a
BUILD FAILURE 6.2 wasm