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

Successful build of SwiftGoogleTranslate, reference master (7812b4), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 15:34:41 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: 4.61.0
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 7812b4d Update README.md
Cloned https://github.com/maximbilan/SwiftGoogleTranslate.git
Revision (git rev-parse @):
7812b4dcb57e095224ae5e9dbf4f178f9296b147
SUCCESS checkout https://github.com/maximbilan/SwiftGoogleTranslate.git at master
========================================
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": "swiftgoogletranslate",
      "name": "SwiftGoogleTranslate",
      "url": "https://github.com/maximbilan/SwiftGoogleTranslate.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGoogleTranslate",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/maximbilan/SwiftGoogleTranslate.git
[1/182] Fetching swiftgoogletranslate
Fetched https://github.com/maximbilan/SwiftGoogleTranslate.git from cache (0.67s)
Creating working copy for https://github.com/maximbilan/SwiftGoogleTranslate.git
Working copy of https://github.com/maximbilan/SwiftGoogleTranslate.git resolved at master (7812b4d)
warning: '.resolve-product-dependencies': dependency 'swiftgoogletranslate' 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/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.90s)
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.