This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 SwiftGoogleTranslate with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/maximbilan/SwiftGoogleTranslate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                    `- 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                    `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |      `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |      `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | 				return
208 | 			}
Build complete! (16.60s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.