Build Information
Successful build of GTNetMon, reference master (2b6123
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 05:50:27 UTC.
Swift 6 data race errors: 1
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/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2b61233 Updated Readme
Cloned https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
Revision (git rev-parse @):
2b61233fa28a6009a0841f960b4dc39049af7be9
SUCCESS checkout https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.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": "gtnetmon-swift-package",
"name": "GTNetMon",
"url": "https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GTNetMon-Swift-Package",
"dependencies": [
]
}
]
}
Fetching https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
[1/32] Fetching gtnetmon-swift-package
Fetched https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git from cache (0.70s)
Creating working copy for https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
Working copy of https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git resolved at master (2b61233)
warning: '.resolve-product-dependencies': dependency 'gtnetmon-swift-package' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling GTNetMon GTNetMonProvider.swift
[4/8] Compiling GTNetMon GTNetMonReachabilityBased.swift
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMonReachabilityBased.swift:196:13: warning: capture of 'self' with non-sendable type 'GTNetMonReachabilityBased?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | // Credits to: https://stackoverflow.com/questions/30743408/check-for-internet-connection-with-swift
14 |
15 | class GTNetMonReachabilityBased: GTNetMonProvider {
| `- note: class 'GTNetMonReachabilityBased' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: - Required Properties
:
194 | func startMonitoring() {
195 | DispatchQueue.main.async { [weak self] in
196 | self?.setupReachability()
| `- warning: capture of 'self' with non-sendable type 'GTNetMonReachabilityBased?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 |
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMonReachabilityBased.swift:196:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
194 | func startMonitoring() {
195 | DispatchQueue.main.async { [weak self] in
196 | self?.setupReachability()
| |- 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
197 | }
198 |
[5/8] Compiling GTNetMon GTNetMonNetworkBased.swift
[6/8] Emitting module GTNetMon
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMon.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | */
42 | open class GTNetMon: GTNetMonProvider {
| `- note: class 'GTNetMon' does not conform to the 'Sendable' protocol
43 |
44 | /// The `GTNetMon` shared instance.
45 | public static let shared = GTNetMon()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' 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
46 |
47 |
[7/8] Compiling GTNetMon GTNetMon.swift
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMon.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | */
42 | open class GTNetMon: GTNetMonProvider {
| `- note: class 'GTNetMon' does not conform to the 'Sendable' protocol
43 |
44 | /// The `GTNetMon` shared instance.
45 | public static let shared = GTNetMon()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' 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
46 |
47 |
[8/8] Compiling GTNetMon GTCommon.swift
Build complete! (8.32s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "GTNetMon",
"name" : "GTNetMon",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "GTNetMon",
"targets" : [
"GTNetMon"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GTNetMon",
"module_type" : "SwiftTarget",
"name" : "GTNetMon",
"path" : "Sources/GTNetMon",
"product_memberships" : [
"GTNetMon"
],
"sources" : [
"GTCommon.swift",
"GTNetMon.swift",
"GTNetMonNetworkBased.swift",
"GTNetMonProvider.swift",
"GTNetMonReachabilityBased.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.