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 Arweave, reference 1.1.2 (b82625), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 00:54:55 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukereichold/arweave-swift.git
Reference: 1.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lukereichold/arweave-swift
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at b826258 Make 'baseUrl' property public on 'Arweave' struct
Cloned https://github.com/lukereichold/arweave-swift.git
Revision (git rev-parse @):
b8262583de077b0c086eedec4d98a3940c9f60a0
SUCCESS checkout https://github.com/lukereichold/arweave-swift.git at 1.1.2
Fetching https://github.com/lukereichold/JOSESwift.git
[1/2266] Fetching joseswift
Fetched https://github.com/lukereichold/JOSESwift.git from cache (1.08s)
Computing version for https://github.com/lukereichold/JOSESwift.git
Computed https://github.com/lukereichold/JOSESwift.git at 2.2.4 (0.65s)
Creating working copy for https://github.com/lukereichold/JOSESwift.git
Working copy of https://github.com/lukereichold/JOSESwift.git resolved at 2.2.4
========================================
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": "arweave-swift",
      "name": "Arweave",
      "url": "https://github.com/lukereichold/arweave-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/arweave-swift",
      "dependencies": [
        {
          "identity": "joseswift",
          "name": "JOSESwift",
          "url": "https://github.com/lukereichold/JOSESwift.git",
          "version": "2.2.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JOSESwift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/lukereichold/arweave-swift.git
[1/650] Fetching arweave-swift
Fetched https://github.com/lukereichold/arweave-swift.git from cache (11.69s)
Fetching https://github.com/lukereichold/JOSESwift.git from cache
Fetched https://github.com/lukereichold/JOSESwift.git from cache (0.49s)
Computing version for https://github.com/lukereichold/JOSESwift.git
Computed https://github.com/lukereichold/JOSESwift.git at 2.2.4 (0.02s)
Creating working copy for https://github.com/lukereichold/arweave-swift.git
Working copy of https://github.com/lukereichold/arweave-swift.git resolved at 1.1.2 (b826258)
Creating working copy for https://github.com/lukereichold/JOSESwift.git
Working copy of https://github.com/lukereichold/JOSESwift.git resolved at 2.2.4
warning: '.resolve-product-dependencies': dependency 'arweave-swift' is not used by any target
Found 1 product dependencies
  - JOSESwift
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/lukereichold/arweave-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/56] Emitting module JOSESwift
[5/61] Compiling JOSESwift Serializer.swift
[6/61] Compiling JOSESwift Signer.swift
[7/61] Compiling JOSESwift SymmetricKeyCodable.swift
[8/61] Compiling JOSESwift SymmetricKeys.swift
[9/61] Compiling JOSESwift Verifier.swift
[10/61] Compiling JOSESwift ECKeys.swift
[11/61] Compiling JOSESwift ECSigner.swift
[12/61] Compiling JOSESwift ECVerifier.swift
[13/61] Compiling JOSESwift Encrypter.swift
[14/61] Compiling JOSESwift JOSEHeader.swift
[15/61] Compiling JOSESwift JOSESwiftError.swift
[16/61] Compiling JOSESwift AESCBCEncryption.swift
[17/61] Compiling JOSESwift AESKeyWrappingMode.swift
[18/61] Compiling JOSESwift ASN1DEREncoding.swift
[19/61] Compiling JOSESwift ASN1DERParsing.swift
[20/61] Compiling JOSESwift AlgorithmExtensions.swift
[21/61] Compiling JOSESwift Algorithms.swift
[22/61] Compiling JOSESwift RSAKeyCodable.swift
[23/61] Compiling JOSESwift RSAKeyEncryptionMode.swift
[24/61] Compiling JOSESwift RSAKeys.swift
[25/61] Compiling JOSESwift RSASigner.swift
[26/61] Compiling JOSESwift RSAVerifier.swift
[27/61] Compiling JOSESwift DataConvertible.swift
[28/61] Compiling JOSESwift DataExtensions.swift
[29/61] Compiling JOSESwift Decrypter.swift
[30/61] Compiling JOSESwift Deserializer.swift
[31/61] Compiling JOSESwift DirectEncryptionMode.swift
[32/61] Compiling JOSESwift ECKeyCodable.swift
[33/61] Compiling JOSESwift SecKeyECPrivateKey.swift
[34/61] Compiling JOSESwift SecKeyECPublicKey.swift
[35/61] Compiling JOSESwift SecKeyRSAPrivateKey.swift
[36/61] Compiling JOSESwift SecKeyRSAPublicKey.swift
[37/61] Compiling JOSESwift SecureRandom.swift
[38/61] Compiling JOSESwift Thumbprint.swift
[39/61] Compiling JOSESwift JWE.swift
[40/61] Compiling JOSESwift JWEHeader.swift
[41/61] Compiling JOSESwift JWK.swift
[42/61] Compiling JOSESwift JWKExtensions.swift
[43/61] Compiling JOSESwift JWKParameters.swift
[44/61] Compiling JOSESwift JWKSet.swift
[45/61] Compiling JOSESwift DeflateWrapper.swift
[46/61] Compiling JOSESwift Compressor.swift
[47/61] Compiling JOSESwift ContentEncryption.swift
[48/61] Compiling JOSESwift AES.swift
[49/61] Compiling JOSESwift DataECPrivateKey.swift
[50/61] Compiling JOSESwift DataECPublicKey.swift
[51/61] Compiling JOSESwift DataRSAPrivateKey.swift
[52/61] Compiling JOSESwift DataRSAPublicKey.swift
[53/61] Compiling JOSESwift DataSymmetricKey.swift
[54/61] Compiling JOSESwift EC.swift
[55/61] Compiling JOSESwift HMAC.swift
[56/61] Compiling JOSESwift RSA.swift
[57/61] Compiling JOSESwift JWKSetCodable.swift
[58/61] Compiling JOSESwift JWS.swift
[59/61] Compiling JOSESwift JWSHeader.swift
[60/61] Compiling JOSESwift KeyManagementMode.swift
[61/61] Compiling JOSESwift Payload.swift
[62/70] Emitting module Arweave
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:4:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct Arweave {
   |               `- note: consider making struct 'Arweave' conform to the 'Sendable' protocol
 4 |     static let shared = Arweave()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' 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
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:6:23: warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 |     static let shared = Arweave()
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
   |                       |- warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'baseUrl' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'baseUrl' 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
 7 |
 8 |     func request(for route: Route) -> Request {
/Users/admin/builder/spi-builder-workspace/Sources/API/HttpClient.swift:3:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension String: Error { }
   | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |
 5 | struct HttpResponse {
[63/70] Compiling Arweave Amount.swift
[64/70] Compiling Arweave KeyUtilities.swift
[65/70] Compiling Arweave Helpers.swift
[66/70] Compiling Arweave HttpClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/API/HttpClient.swift:3:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension String: Error { }
   | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |
 5 | struct HttpResponse {
[67/70] Compiling Arweave Wallet.swift
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:4:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct Arweave {
   |               `- note: consider making struct 'Arweave' conform to the 'Sendable' protocol
 4 |     static let shared = Arweave()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' 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
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
[68/70] Compiling Arweave Arweave.swift
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:4:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct Arweave {
   |               `- note: consider making struct 'Arweave' conform to the 'Sendable' protocol
 4 |     static let shared = Arweave()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' 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
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:6:23: warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 |     static let shared = Arweave()
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
   |                       |- warning: static property 'baseUrl' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'baseUrl' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'baseUrl' 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
 7 |
 8 |     func request(for route: Route) -> Request {
[69/70] Compiling Arweave Status.swift
[70/70] Compiling Arweave Transaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/API/Arweave.swift:4:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct Arweave {
   |               `- note: consider making struct 'Arweave' conform to the 'Sendable' protocol
 4 |     static let shared = Arweave()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Arweave' 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
 5 |     private init() {}
 6 |     public static var baseUrl = URL(string: "https://arweave.net")!
Build complete! (22.50s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "joseswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.4",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/lukereichold/JOSESwift.git"
    }
  ],
  "manifest_display_name" : "Arweave",
  "name" : "Arweave",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "Arweave",
      "targets" : [
        "Arweave"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ArweaveTests",
      "module_type" : "SwiftTarget",
      "name" : "ArweaveTests",
      "path" : "Tests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/test-key.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "TransactionTests.swift",
        "WalletTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Arweave"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Arweave",
      "module_type" : "SwiftTarget",
      "name" : "Arweave",
      "path" : "Sources",
      "product_dependencies" : [
        "JOSESwift"
      ],
      "product_memberships" : [
        "Arweave"
      ],
      "sources" : [
        "API/Arweave.swift",
        "API/HttpClient.swift",
        "Amount.swift",
        "Helpers.swift",
        "KeyUtilities.swift",
        "Status.swift",
        "Transaction.swift",
        "Wallet.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.