The Swift Package Index logo.Swift Package Index

Build Information

Successful build of KwtSMS, reference 0.4.0 (34bd5c), with Swift 6.1 for macOS (SPM) on 6 Nov 2026 23:48:42 UTC.

Swift 6 data race errors: 1

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: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kwtsms/kwtsms-swift.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kwtsms/kwtsms-swift
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 34bd5c9 Release 0.4.0 (and stale coverage test, ASCII hyphens in examples)
Cloned https://github.com/kwtsms/kwtsms-swift.git
Revision (git rev-parse @):
34bd5c9ad67c44c50714e2d15c9cd763a21a5b5a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kwtsms/kwtsms-swift.git at 0.4.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kwtsms/kwtsms-swift.git
https://github.com/kwtsms/kwtsms-swift.git
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "KwtSMS",
  "name" : "KwtSMS",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "KwtSMS",
      "targets" : [
        "KwtSMS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KwtSMSTests",
      "module_type" : "SwiftTarget",
      "name" : "KwtSMSTests",
      "path" : "Tests/KwtSMSTests",
      "sources" : [
        "ApiErrorTests.swift",
        "IntegrationTests.swift",
        "MessageTests.swift",
        "PhoneTests.swift",
        "TestNumber.swift",
        "UserAgentTests.swift"
      ],
      "target_dependencies" : [
        "KwtSMS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KwtSMS",
      "module_type" : "SwiftTarget",
      "name" : "KwtSMS",
      "path" : "Sources/KwtSMS",
      "product_memberships" : [
        "KwtSMS"
      ],
      "sources" : [
        "ApiErrors.swift",
        "EnvLoader.swift",
        "KwtSMS.swift",
        "Logger.swift",
        "MessageUtils.swift",
        "PhoneUtils.swift",
        "Request.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling KwtSMS Request.swift
[4/10] Compiling KwtSMS PhoneUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/PhoneUtils.swift:24:12: warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// Validation rule for a country's phone numbers.
  6 | public struct PhoneRule {
    |               `- note: consider making struct 'PhoneRule' conform to the 'Sendable' protocol
  7 |     /// Valid local number lengths (digits after country code).
  8 |     public let localLengths: [Int]
    :
 22 | /// mobileStartDigits: valid first character(s) of the local number
 23 | /// Countries not listed here pass through with generic E.164 validation (7-15 digits).
 24 | public let phoneRules: [String: PhoneRule] = [
    |            |- warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'phoneRules' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |     // === GCC ===
 26 |     "965": PhoneRule(localLengths: [8], mobileStartDigits: ["4", "5", "6", "9"]),       // Kuwait
[5/10] Compiling KwtSMS KwtSMS.swift
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:236:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
234 |     public func verify() async -> VerifyResult {
235 |         do {
236 |             let response = try await apiRequest(
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
237 |                 endpoint: "balance",
238 |                 payload: authPayload,
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:349:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
347 |             payload["mobile"] = validNumbers.joined(separator: ",")
348 |
349 |             let response = try await apiRequest(endpoint: "validate", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
350 |             let result = response["result"] as? String ?? ""
351 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:374:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
372 |     public func senderIds() async -> SenderIdResult {
373 |         do {
374 |             let response = try await apiRequest(endpoint: "senderid", payload: authPayload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
375 |             let result = response["result"] as? String ?? ""
376 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:402:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
400 |     public func coverage() async -> CoverageResult {
401 |         do {
402 |             let response = try await apiRequest(endpoint: "coverage", payload: authPayload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
403 |             let result = response["result"] as? String ?? ""
404 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:434:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
432 |             payload["msgid"] = msgId
433 |
434 |             let response = try await apiRequest(endpoint: "status", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
435 |             let result = response["result"] as? String ?? ""
436 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:476:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
474 |             payload["msgid"] = msgId
475 |
476 |             let response = try await apiRequest(endpoint: "dlr", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
477 |             let result = response["result"] as? String ?? ""
478 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:572:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
570 |
571 |         do {
572 |             let response = try await apiRequest(endpoint: "send", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
573 |             let result = response["result"] as? String ?? ""
574 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:236:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
234 |     public func verify() async -> VerifyResult {
235 |         do {
236 |             let response = try await apiRequest(
    |                                      |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
237 |                 endpoint: "balance",
238 |                 payload: authPayload,
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:572:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
570 |
571 |         do {
572 |             let response = try await apiRequest(endpoint: "send", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
573 |             let result = response["result"] as? String ?? ""
574 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:349:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
347 |             payload["mobile"] = validNumbers.joined(separator: ",")
348 |
349 |             let response = try await apiRequest(endpoint: "validate", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
350 |             let result = response["result"] as? String ?? ""
351 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:374:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
372 |     public func senderIds() async -> SenderIdResult {
373 |         do {
374 |             let response = try await apiRequest(endpoint: "senderid", payload: authPayload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
375 |             let result = response["result"] as? String ?? ""
376 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:402:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
400 |     public func coverage() async -> CoverageResult {
401 |         do {
402 |             let response = try await apiRequest(endpoint: "coverage", payload: authPayload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
403 |             let result = response["result"] as? String ?? ""
404 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:434:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
432 |             payload["msgid"] = msgId
433 |
434 |             let response = try await apiRequest(endpoint: "status", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
435 |             let result = response["result"] as? String ?? ""
436 |
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:476:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
474 |             payload["msgid"] = msgId
475 |
476 |             let response = try await apiRequest(endpoint: "dlr", payload: payload, logFile: logFile, userAgent: userAgent)
    |                                      |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
477 |             let result = response["result"] as? String ?? ""
478 |
[6/10] Compiling KwtSMS Logger.swift
[7/10] Compiling KwtSMS EnvLoader.swift
[8/10] Compiling KwtSMS ApiErrors.swift
[9/10] Emitting module KwtSMS
/Users/admin/builder/spi-builder-workspace/Sources/KwtSMS/PhoneUtils.swift:24:12: warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | /// Validation rule for a country's phone numbers.
  6 | public struct PhoneRule {
    |               `- note: consider making struct 'PhoneRule' conform to the 'Sendable' protocol
  7 |     /// Valid local number lengths (digits after country code).
  8 |     public let localLengths: [Int]
    :
 22 | /// mobileStartDigits: valid first character(s) of the local number
 23 | /// Countries not listed here pass through with generic E.164 validation (7-15 digits).
 24 | public let phoneRules: [String: PhoneRule] = [
    |            |- warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'phoneRules' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |     // === GCC ===
 26 |     "965": PhoneRule(localLengths: [8], mobileStartDigits: ["4", "5", "6", "9"]),       // Kuwait
[10/10] Compiling KwtSMS MessageUtils.swift
Build complete! (4.66s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "KwtSMS",
  "name" : "KwtSMS",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "KwtSMS",
      "targets" : [
        "KwtSMS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KwtSMSTests",
      "module_type" : "SwiftTarget",
      "name" : "KwtSMSTests",
      "path" : "Tests/KwtSMSTests",
      "sources" : [
        "ApiErrorTests.swift",
        "IntegrationTests.swift",
        "MessageTests.swift",
        "PhoneTests.swift",
        "TestNumber.swift",
        "UserAgentTests.swift"
      ],
      "target_dependencies" : [
        "KwtSMS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KwtSMS",
      "module_type" : "SwiftTarget",
      "name" : "KwtSMS",
      "path" : "Sources/KwtSMS",
      "product_memberships" : [
        "KwtSMS"
      ],
      "sources" : [
        "ApiErrors.swift",
        "EnvLoader.swift",
        "KwtSMS.swift",
        "Logger.swift",
        "MessageUtils.swift",
        "PhoneUtils.swift",
        "Request.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.