The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftGoogleTranslate, reference master (a541e4), with Swift 6.1 for macOS (SPM) on 13 Jul 2026 19:07:06 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: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maximbilan/SwiftGoogleTranslate.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maximbilan/SwiftGoogleTranslate
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a541e44 Merge pull request #6 from maximbilan/docs/fix-readme-badges
Cloned https://github.com/maximbilan/SwiftGoogleTranslate.git
Revision (git rev-parse @):
a541e44662608a8ac9800ffcb19686c6ad0eac2e
SUCCESS checkout https://github.com/maximbilan/SwiftGoogleTranslate.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/maximbilan/SwiftGoogleTranslate.git
https://github.com/maximbilan/SwiftGoogleTranslate.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGoogleTranslate",
  "name" : "SwiftGoogleTranslate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftGoogleTranslate",
      "targets" : [
        "SwiftGoogleTranslate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftGoogleTranslate",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGoogleTranslate",
      "path" : "SwiftGoogleTranslate/Sources",
      "product_memberships" : [
        "SwiftGoogleTranslate"
      ],
      "sources" : [
        "SwiftGoogleTranslate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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/4] Emitting module SwiftGoogleTranslate
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:15:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A helper class for using Google Translate API.
 12 | public class SwiftGoogleTranslate {
    |              `- note: class 'SwiftGoogleTranslate' does not conform to the 'Sendable' protocol
 13 |
 14 | 	/// Shared instance.
 15 | 	public static let shared = SwiftGoogleTranslate()
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | 	/// Language response structure.
[4/4] Compiling SwiftGoogleTranslate SwiftGoogleTranslate.swift
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:15:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A helper class for using Google Translate API.
 12 | public class SwiftGoogleTranslate {
    |              `- note: class 'SwiftGoogleTranslate' does not conform to the 'Sendable' protocol
 13 |
 14 | 	/// Shared instance.
 15 | 	public static let shared = SwiftGoogleTranslate()
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | 	/// Language response structure.
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:107:6: warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a '@Sendable' closure
105 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
106 | 				error == nil else {								// was there no error, otherwise ...
107 | 					completion(nil, error)
    |      |- warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a '@Sendable' closure
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
108 | 					return
109 | 			}
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:151:6: warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Detection]?, (any Error)?) -> Void' in a '@Sendable' closure
149 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
150 | 				error == nil else {								// was there no error, otherwise ...
151 | 					completion(nil, error)
    |      |- warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Detection]?, (any Error)?) -> Void' in a '@Sendable' closure
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | 					return
153 | 			}
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:206:5: warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Language]?, (any Error)?) -> Void' in a '@Sendable' closure
204 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
205 | 				error == nil else {								// was there no error, otherwise ...
206 | 				completion(nil, error)
    |     |- warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Language]?, (any Error)?) -> Void' in a '@Sendable' closure
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | 				return
208 | 			}
Build complete! (3.69s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGoogleTranslate",
  "name" : "SwiftGoogleTranslate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftGoogleTranslate",
      "targets" : [
        "SwiftGoogleTranslate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftGoogleTranslate",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGoogleTranslate",
      "path" : "SwiftGoogleTranslate/Sources",
      "product_memberships" : [
        "SwiftGoogleTranslate"
      ],
      "sources" : [
        "SwiftGoogleTranslate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.