The Swift Package Index logo.Swift Package Index

Build Information

Successful build of TCSwiftBridge, reference 1.2.0 (9cbcf3), with Swift 6.1 for macOS (SPM) on 31 Aug 2025 18:52:12 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: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Krusty84/TCSwiftBridge
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 9cbcf34 Release 1.2 (refreshPreferences, some helpers)
Cloned https://github.com/Krusty84/TCSwiftBridge.git
Revision (git rev-parse @):
9cbcf347c8246f7789ce4cad15f094db78ef52c3
SUCCESS checkout https://github.com/Krusty84/TCSwiftBridge.git at 1.2.0
========================================
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 1.2.0 (9cbcf34)
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 APIConfig.swift
[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 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:1123:17: warning: value 'session' was defined but never used; consider replacing with boolean test
1121 |       tcEndpointUrl: String
1122 |     ) async -> [SavedQueryInfo]? {
1123 |       guard let session = jsessionId else { print(...); return nil }
     |                 `- warning: value 'session' was defined but never used; consider replacing with boolean test
1124 |       guard let url = URL(string: tcEndpointUrl) else { print(...); return nil }
1125 |
/Users/admin/builder/spi-builder-workspace/Sources/TCSwiftBridge/TeamcenterAPIService.swift:1127:11: warning: variable 'request' was never mutated; consider changing to 'let' constant
1125 |
1126 |       // build payload & JSON‐encode…
1127 |       var request = URLRequest(url: url)
     |           `- warning: variable 'request' was never mutated; consider changing to 'let' constant
1128 |       // set method, headers, body…
1129 |
/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)
Build complete! (4.09s)
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.