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 TCSwiftBridge, reference main (bd3b33), with Swift 6.1 for macOS (SPM) on 31 Aug 2025 18:52:07 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Krusty84/TCSwiftBridge.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Krusty84/TCSwiftBridge
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bd3b332     tcLoginGetSession - fix
Cloned https://github.com/Krusty84/TCSwiftBridge.git
Revision (git rev-parse @):
bd3b332a4ccaa5fb5061962d93426441b8939ff6
SUCCESS checkout https://github.com/Krusty84/TCSwiftBridge.git at main
========================================
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": "tcswiftbridge",
      "name": "TCSwiftBridge",
      "url": "https://github.com/Krusty84/TCSwiftBridge.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TCSwiftBridge",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Krusty84/TCSwiftBridge.git
[1/81] Fetching tcswiftbridge
Fetched https://github.com/Krusty84/TCSwiftBridge.git from cache (0.60s)
Creating working copy for https://github.com/Krusty84/TCSwiftBridge.git
Working copy of https://github.com/Krusty84/TCSwiftBridge.git resolved at main (bd3b332)
warning: '.resolve-product-dependencies': dependency 'tcswiftbridge' 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/Krusty84/TCSwiftBridge.git
https://github.com/Krusty84/TCSwiftBridge.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TCSwiftBridge",
  "name" : "TCSwiftBridge",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "TCSwiftBridge",
      "targets" : [
        "TCSwiftBridge"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TCSwiftBridge",
      "module_type" : "SwiftTarget",
      "name" : "TCSwiftBridge",
      "path" : "Sources/TCSwiftBridge",
      "product_memberships" : [
        "TCSwiftBridge"
      ],
      "sources" : [
        "APIConfig.swift",
        "TeamcenterAPIService.swift",
        "TeamcenterModel.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/6] Compiling TCSwiftBridge TeamcenterAPIService.swift
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:15:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TeamcenterAPIService' may have shared mutable state; this is an error in the Swift 6 language mode
  11 | // Service class to call Teamcenter REST APIs
  12 | // Conforms to ObservableObject for SwiftUI bindings
  13 | public final class TeamcenterAPIService: ObservableObject {
     |                    `- note: class 'TeamcenterAPIService' does not conform to the 'Sendable' protocol
  14 |     // Shared singleton instance
  15 |     public static let shared = TeamcenterAPIService()
     |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TeamcenterAPIService' 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 |     // Published JSESSIONID string after a successful login
  17 |     @Published public var jsessionId: String? = nil
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:1128:17: warning: value 'session' was defined but never used; consider replacing with boolean test
1126 |       tcEndpointUrl: String
1127 |     ) async -> [SavedQueryInfo]? {
1128 |       guard let session = jsessionId else { print(...); return nil }
     |                 `- warning: value 'session' was defined but never used; consider replacing with boolean test
1129 |       guard let url = URL(string: tcEndpointUrl) else { print(...); return nil }
1130 |
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:1132:11: warning: variable 'request' was never mutated; consider changing to 'let' constant
1130 |
1131 |       // build payload & JSON‐encode…
1132 |       var request = URLRequest(url: url)
     |           `- warning: variable 'request' was never mutated; consider changing to 'let' constant
1133 |       // set method, headers, body…
1134 |
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:35:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  33 |         let log = RawLog(endpoint: url.absoluteString, status: http.statusCode, body: data)
  34 |         DispatchQueue.main.async {
  35 |             self.lastRaw = log
     |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
     |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
  36 |             self.onRaw?(log)
  37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:134:25: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 132 |                     // Update published property on main thread
 133 |                     DispatchQueue.main.async {
 134 |                         self.jsessionId = session
     |                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
     |                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 135 |                     }
 136 |                     print("Got new JSESSIONID:", session)
[4/6] Compiling TCSwiftBridge TeamcenterModel.swift
[5/6] Emitting module TCSwiftBridge
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:15:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TeamcenterAPIService' may have shared mutable state; this is an error in the Swift 6 language mode
  11 | // Service class to call Teamcenter REST APIs
  12 | // Conforms to ObservableObject for SwiftUI bindings
  13 | public final class TeamcenterAPIService: ObservableObject {
     |                    `- note: class 'TeamcenterAPIService' does not conform to the 'Sendable' protocol
  14 |     // Shared singleton instance
  15 |     public static let shared = TeamcenterAPIService()
     |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TeamcenterAPIService' 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 |     // Published JSESSIONID string after a successful login
  17 |     @Published public var jsessionId: String? = nil
[6/6] Compiling TCSwiftBridge APIConfig.swift
Build complete! (3.86s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TCSwiftBridge",
  "name" : "TCSwiftBridge",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "TCSwiftBridge",
      "targets" : [
        "TCSwiftBridge"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TCSwiftBridge",
      "module_type" : "SwiftTarget",
      "name" : "TCSwiftBridge",
      "path" : "Sources/TCSwiftBridge",
      "product_memberships" : [
        "TCSwiftBridge"
      ],
      "sources" : [
        "APIConfig.swift",
        "TeamcenterAPIService.swift",
        "TeamcenterModel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.