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 PhoneNumberKit, reference 4.0.2 (288b99), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 08:52:52 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marmelroy/PhoneNumberKit.git
Reference: 4.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marmelroy/PhoneNumberKit
 * tag               4.0.2      -> FETCH_HEAD
HEAD is now at 288b99e Updated metadata to version metadata/9.0.0 (#834)
Cloned https://github.com/marmelroy/PhoneNumberKit.git
Revision (git rev-parse @):
288b99e9e99926bc8be41220802df83c059fac9b
SUCCESS checkout https://github.com/marmelroy/PhoneNumberKit.git at 4.0.2
========================================
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": "phonenumberkit",
      "name": "PhoneNumberKit",
      "url": "https://github.com/marmelroy/PhoneNumberKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PhoneNumberKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/marmelroy/PhoneNumberKit.git
[1/6985] Fetching phonenumberkit
Fetched https://github.com/marmelroy/PhoneNumberKit.git from cache (1.37s)
Creating working copy for https://github.com/marmelroy/PhoneNumberKit.git
Working copy of https://github.com/marmelroy/PhoneNumberKit.git resolved at 4.0.2 (288b99e)
warning: '.resolve-product-dependencies': dependency 'phonenumberkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/marmelroy/PhoneNumberKit.git
https://github.com/marmelroy/PhoneNumberKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PhoneNumberKit",
  "name" : "PhoneNumberKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "PhoneNumberKit",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PhoneNumberKit-Static",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "PhoneNumberKit-Dynamic",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PhoneNumberKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PhoneNumberKitTests",
      "path" : "PhoneNumberKitTests",
      "sources" : [
        "PartialFormatterTests.swift",
        "PhoneNumber+CodableTests.swift",
        "PhoneNumberTextFieldTests.swift",
        "PhoneNumberUtilityParsingTests.swift",
        "PhoneNumberUtilityTests.swift"
      ],
      "target_dependencies" : [
        "PhoneNumberKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PhoneNumberKit",
      "module_type" : "SwiftTarget",
      "name" : "PhoneNumberKit",
      "path" : "PhoneNumberKit",
      "product_memberships" : [
        "PhoneNumberKit",
        "PhoneNumberKit-Static",
        "PhoneNumberKit-Dynamic"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Resources/PhoneNumberMetadata.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Bundle+Resources.swift",
        "Constants.swift",
        "Formatter.swift",
        "MetadataManager.swift",
        "MetadataParsing.swift",
        "MetadataTypes.swift",
        "NSRegularExpression+Swift.swift",
        "ParseManager.swift",
        "PartialFormatter.swift",
        "PhoneNumber+Codable.swift",
        "PhoneNumber.swift",
        "PhoneNumberFormatter.swift",
        "PhoneNumberParser.swift",
        "PhoneNumberUtility.swift",
        "RegexManager.swift",
        "UI/CountryCodePickerOptions.swift",
        "UI/CountryCodePickerViewController.swift",
        "UI/PhoneNumberTextField.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/8] Write sources
[1/8] Copying PrivacyInfo.xcprivacy
[1/8] Copying PhoneNumberMetadata.json
[3/8] Write swift-version-2F0A5646E1D333AE.txt
[5/27] Compiling PhoneNumberKit Formatter.swift
[6/27] Compiling PhoneNumberKit MetadataManager.swift
[7/28] Compiling PhoneNumberKit MetadataParsing.swift
[8/28] Compiling PhoneNumberKit MetadataTypes.swift
[9/28] Emitting module PhoneNumberKit
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Bundle+Resources.swift:11:16: warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | //
10 | extension Bundle {
11 |     static var phoneNumberKit: Bundle = {
   |                |- warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phoneNumberKit' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phoneNumberKit' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         #if DEBUG && SWIFT_PACKAGE
13 |         let bundleName = "PhoneNumberKit_PhoneNumberKit"
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Constants.swift:40:10: warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 38 |     case deprecated
 39 |     case metadataNotFound
 40 |     case ambiguousNumber(phoneNumbers: Set<PhoneNumber>)
    |          `- warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 41 | }
 42 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber.swift:19:15: note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
17 | /// - numberExtension: Extension if available. String. Optional
18 | /// - type: Computed phone number type on access. Returns from an enumeration - PNPhoneNumberType.
19 | public struct PhoneNumber {
   |               `- note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
20 |     public let numberString: String
21 |     public let countryCode: UInt64
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     case e164
 17 |     /// The default `PhoneNumber` encoding strategy.
 18 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | }
 20 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:28:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     case e164
 27 |     /// The default `PhoneNumber` encoding strategy.
 28 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:33:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 | public enum PhoneNumberDecodingUtils {
 32 |     /// The default `PhoneNumberUtility` instance used for parsing when decoding, if needed.
 33 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 34 | }
 35 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 | public enum PhoneNumberEncodingUtils {
 37 |     /// The default `PhoneNumberUtility` instance used for formatting when encoding, if needed.
 38 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 | }
 40 |
[10/28] Compiling PhoneNumberKit NSRegularExpression+Swift.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:111:43: warning: capture of 'self' with non-sendable type 'ParseManager' in a '@Sendable' closure
 10 |
 11 | /// Manager for parsing flow.
 12 | final class ParseManager {
    |             `- note: class 'ParseManager' does not conform to the 'Sendable' protocol
 13 |     weak var metadataManager: MetadataManager?
 14 |     let parser: PhoneNumberParser
    :
109 |                 let numberString = numberStrings[index]
110 |                 do {
111 |                     let phoneNumber = try self.parse(numberString, withRegion: region, ignoreType: ignoreType)
    |                                           `- warning: capture of 'self' with non-sendable type 'ParseManager' in a '@Sendable' closure
112 |                     buffer.baseAddress!.advanced(by: index).initialize(to: phoneNumber)
113 |                 } catch {
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:112:21: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<PhoneNumber>' in a '@Sendable' closure
110 |                 do {
111 |                     let phoneNumber = try self.parse(numberString, withRegion: region, ignoreType: ignoreType)
112 |                     buffer.baseAddress!.advanced(by: index).initialize(to: phoneNumber)
    |                     `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<PhoneNumber>' in a '@Sendable' closure
113 |                 } catch {
114 |                     buffer.baseAddress!.advanced(by: index).initialize(to: PhoneNumber.notPhoneNumber())
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:115:21: warning: mutation of captured var 'hasError' in concurrently-executing code
113 |                 } catch {
114 |                     buffer.baseAddress!.advanced(by: index).initialize(to: PhoneNumber.notPhoneNumber())
115 |                     hasError = true
    |                     `- warning: mutation of captured var 'hasError' in concurrently-executing code
116 |                 }
117 |             }
[11/28] Compiling PhoneNumberKit ParseManager.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:111:43: warning: capture of 'self' with non-sendable type 'ParseManager' in a '@Sendable' closure
 10 |
 11 | /// Manager for parsing flow.
 12 | final class ParseManager {
    |             `- note: class 'ParseManager' does not conform to the 'Sendable' protocol
 13 |     weak var metadataManager: MetadataManager?
 14 |     let parser: PhoneNumberParser
    :
109 |                 let numberString = numberStrings[index]
110 |                 do {
111 |                     let phoneNumber = try self.parse(numberString, withRegion: region, ignoreType: ignoreType)
    |                                           `- warning: capture of 'self' with non-sendable type 'ParseManager' in a '@Sendable' closure
112 |                     buffer.baseAddress!.advanced(by: index).initialize(to: phoneNumber)
113 |                 } catch {
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:112:21: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<PhoneNumber>' in a '@Sendable' closure
110 |                 do {
111 |                     let phoneNumber = try self.parse(numberString, withRegion: region, ignoreType: ignoreType)
112 |                     buffer.baseAddress!.advanced(by: index).initialize(to: phoneNumber)
    |                     `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<PhoneNumber>' in a '@Sendable' closure
113 |                 } catch {
114 |                     buffer.baseAddress!.advanced(by: index).initialize(to: PhoneNumber.notPhoneNumber())
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/ParseManager.swift:115:21: warning: mutation of captured var 'hasError' in concurrently-executing code
113 |                 } catch {
114 |                     buffer.baseAddress!.advanced(by: index).initialize(to: PhoneNumber.notPhoneNumber())
115 |                     hasError = true
    |                     `- warning: mutation of captured var 'hasError' in concurrently-executing code
116 |                 }
117 |             }
[12/28] Compiling PhoneNumberKit CountryCodePickerViewController.swift
[13/28] Compiling PhoneNumberKit PhoneNumberTextField.swift
[14/28] Compiling PhoneNumberKit Bundle+Resources.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Bundle+Resources.swift:11:16: warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | //
10 | extension Bundle {
11 |     static var phoneNumberKit: Bundle = {
   |                |- warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phoneNumberKit' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phoneNumberKit' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         #if DEBUG && SWIFT_PACKAGE
13 |         let bundleName = "PhoneNumberKit_PhoneNumberKit"
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Constants.swift:40:10: warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 38 |     case deprecated
 39 |     case metadataNotFound
 40 |     case ambiguousNumber(phoneNumbers: Set<PhoneNumber>)
    |          `- warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 41 | }
 42 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber.swift:19:15: note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
17 | /// - numberExtension: Extension if available. String. Optional
18 | /// - type: Computed phone number type on access. Returns from an enumeration - PNPhoneNumberType.
19 | public struct PhoneNumber {
   |               `- note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
20 |     public let numberString: String
21 |     public let countryCode: UInt64
[15/28] Compiling PhoneNumberKit Constants.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Bundle+Resources.swift:11:16: warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | //
10 | extension Bundle {
11 |     static var phoneNumberKit: Bundle = {
   |                |- warning: static property 'phoneNumberKit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'phoneNumberKit' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'phoneNumberKit' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         #if DEBUG && SWIFT_PACKAGE
13 |         let bundleName = "PhoneNumberKit_PhoneNumberKit"
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Constants.swift:40:10: warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 38 |     case deprecated
 39 |     case metadataNotFound
 40 |     case ambiguousNumber(phoneNumbers: Set<PhoneNumber>)
    |          `- warning: associated value 'ambiguousNumber(phoneNumbers:)' of 'Sendable'-conforming enum 'PhoneNumberError' has non-sendable type 'PhoneNumber'; this is an error in the Swift 6 language mode
 41 | }
 42 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber.swift:19:15: note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
17 | /// - numberExtension: Extension if available. String. Optional
18 | /// - type: Computed phone number type on access. Returns from an enumeration - PNPhoneNumberType.
19 | public struct PhoneNumber {
   |               `- note: consider making struct 'PhoneNumber' conform to the 'Sendable' protocol
20 |     public let numberString: String
21 |     public let countryCode: UInt64
[16/28] Compiling PhoneNumberKit RegexManager.swift
[17/28] Compiling PhoneNumberKit CountryCodePickerOptions.swift
[18/28] Compiling PhoneNumberKit PhoneNumberParser.swift
[19/28] Compiling PhoneNumberKit PhoneNumberUtility.swift
[20/28] Compiling PhoneNumberKit PartialFormatter.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     case e164
 17 |     /// The default `PhoneNumber` encoding strategy.
 18 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | }
 20 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:28:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     case e164
 27 |     /// The default `PhoneNumber` encoding strategy.
 28 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:33:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 | public enum PhoneNumberDecodingUtils {
 32 |     /// The default `PhoneNumberUtility` instance used for parsing when decoding, if needed.
 33 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 34 | }
 35 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 | public enum PhoneNumberEncodingUtils {
 37 |     /// The default `PhoneNumberUtility` instance used for formatting when encoding, if needed.
 38 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 | }
 40 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:48:54: warning: type 'PhoneNumberDecodingStrategy' does not conform to the 'Sendable' protocol
 10 |
 11 | /// The strategy used to decode a `PhoneNumber` value.
 12 | public enum PhoneNumberDecodingStrategy {
    |             `- note: consider making enum 'PhoneNumberDecodingStrategy' conform to the 'Sendable' protocol
 13 |     /// Decode `PhoneNumber` properties as key-value pairs. This is the default strategy.
 14 |     case properties
    :
 46 |         }
 47 |         set {
 48 |             userInfo[.phoneNumberDecodingStrategy] = newValue
    |                                                      `- warning: type 'PhoneNumberDecodingStrategy' does not conform to the 'Sendable' protocol
 49 |         }
 50 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:58:45: warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
 56 |         }
 57 |         set {
 58 |             userInfo[.phoneNumberUtility] = newValue
    |                                             |- warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
    |                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |         }
 60 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:70:54: warning: type 'PhoneNumberEncodingStrategy' does not conform to the 'Sendable' protocol
 20 |
 21 | /// The strategy used to encode a `PhoneNumber` value.
 22 | public enum PhoneNumberEncodingStrategy {
    |             `- note: consider making enum 'PhoneNumberEncodingStrategy' conform to the 'Sendable' protocol
 23 |     /// Encode `PhoneNumber` properties as key-value pairs. This is the default strategy.
 24 |     case properties
    :
 68 |         }
 69 |         set {
 70 |             userInfo[.phoneNumberEncodingStrategy] = newValue
    |                                                      `- warning: type 'PhoneNumberEncodingStrategy' does not conform to the 'Sendable' protocol
 71 |         }
 72 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:80:45: warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
 78 |         }
 79 |         set {
 80 |             userInfo[.phoneNumberUtility] = newValue
    |                                             |- warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
    |                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 81 |         }
 82 |     }
[21/28] Compiling PhoneNumberKit PhoneNumber+Codable.swift
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     case e164
 17 |     /// The default `PhoneNumber` encoding strategy.
 18 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 | }
 20 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:28:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     case e164
 27 |     /// The default `PhoneNumber` encoding strategy.
 28 |     public static var `default` = properties
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:33:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 | public enum PhoneNumberDecodingUtils {
 32 |     /// The default `PhoneNumberUtility` instance used for parsing when decoding, if needed.
 33 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 34 | }
 35 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:38:23: warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 | public enum PhoneNumberEncodingUtils {
 37 |     /// The default `PhoneNumberUtility` instance used for formatting when encoding, if needed.
 38 |     public static var defaultUtility: () -> PhoneNumberUtility = { .init() }
    |                       |- warning: static property 'defaultUtility' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultUtility' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultUtility' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 | }
 40 |
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:48:54: warning: type 'PhoneNumberDecodingStrategy' does not conform to the 'Sendable' protocol
 10 |
 11 | /// The strategy used to decode a `PhoneNumber` value.
 12 | public enum PhoneNumberDecodingStrategy {
    |             `- note: consider making enum 'PhoneNumberDecodingStrategy' conform to the 'Sendable' protocol
 13 |     /// Decode `PhoneNumber` properties as key-value pairs. This is the default strategy.
 14 |     case properties
    :
 46 |         }
 47 |         set {
 48 |             userInfo[.phoneNumberDecodingStrategy] = newValue
    |                                                      `- warning: type 'PhoneNumberDecodingStrategy' does not conform to the 'Sendable' protocol
 49 |         }
 50 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:58:45: warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
 56 |         }
 57 |         set {
 58 |             userInfo[.phoneNumberUtility] = newValue
    |                                             |- warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
    |                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |         }
 60 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:70:54: warning: type 'PhoneNumberEncodingStrategy' does not conform to the 'Sendable' protocol
 20 |
 21 | /// The strategy used to encode a `PhoneNumber` value.
 22 | public enum PhoneNumberEncodingStrategy {
    |             `- note: consider making enum 'PhoneNumberEncodingStrategy' conform to the 'Sendable' protocol
 23 |     /// Encode `PhoneNumber` properties as key-value pairs. This is the default strategy.
 24 |     case properties
    :
 68 |         }
 69 |         set {
 70 |             userInfo[.phoneNumberEncodingStrategy] = newValue
    |                                                      `- warning: type 'PhoneNumberEncodingStrategy' does not conform to the 'Sendable' protocol
 71 |         }
 72 |     }
/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/PhoneNumber+Codable.swift:80:45: warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
 78 |         }
 79 |         set {
 80 |             userInfo[.phoneNumberUtility] = newValue
    |                                             |- warning: type '() -> PhoneNumberUtility' does not conform to the 'Sendable' protocol
    |                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 81 |         }
 82 |     }
[22/28] Compiling PhoneNumberKit PhoneNumber.swift
[23/28] Compiling PhoneNumberKit PhoneNumberFormatter.swift
[24/28] Compiling PhoneNumberKit resource_bundle_accessor.swift
[24/28] Write Objects.LinkFileList
[26/28] Archiving libPhoneNumberKit-Static.a
[27/28] Linking libPhoneNumberKit-Dynamic.dylib
Build complete! (6.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PhoneNumberKit",
  "name" : "PhoneNumberKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "PhoneNumberKit",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PhoneNumberKit-Static",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "PhoneNumberKit-Dynamic",
      "targets" : [
        "PhoneNumberKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PhoneNumberKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PhoneNumberKitTests",
      "path" : "PhoneNumberKitTests",
      "sources" : [
        "PartialFormatterTests.swift",
        "PhoneNumber+CodableTests.swift",
        "PhoneNumberTextFieldTests.swift",
        "PhoneNumberUtilityParsingTests.swift",
        "PhoneNumberUtilityTests.swift"
      ],
      "target_dependencies" : [
        "PhoneNumberKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PhoneNumberKit",
      "module_type" : "SwiftTarget",
      "name" : "PhoneNumberKit",
      "path" : "PhoneNumberKit",
      "product_memberships" : [
        "PhoneNumberKit",
        "PhoneNumberKit-Static",
        "PhoneNumberKit-Dynamic"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Resources/PhoneNumberMetadata.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/PhoneNumberKit/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Bundle+Resources.swift",
        "Constants.swift",
        "Formatter.swift",
        "MetadataManager.swift",
        "MetadataParsing.swift",
        "MetadataTypes.swift",
        "NSRegularExpression+Swift.swift",
        "ParseManager.swift",
        "PartialFormatter.swift",
        "PhoneNumber+Codable.swift",
        "PhoneNumber.swift",
        "PhoneNumberFormatter.swift",
        "PhoneNumberParser.swift",
        "PhoneNumberUtility.swift",
        "RegexManager.swift",
        "UI/CountryCodePickerOptions.swift",
        "UI/CountryCodePickerViewController.swift",
        "UI/PhoneNumberTextField.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.