Build Information
Successful build of BRUtils 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/Balancingrock/BRUtils.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Balancingrock/BRUtils
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b2ba81e Added license, swift version and platforms
Cloned https://github.com/Balancingrock/BRUtils.git
Revision (git rev-parse @):
b2ba81ea6098d32dd3a59c35b70fd7be72ea6afd
SUCCESS checkout https://github.com/Balancingrock/BRUtils.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Balancingrock/BRUtils.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/12] Compiling BRUtils Int.Extensions.swift
[4/12] Compiling BRUtils Endianness.swift
/Users/admin/builder/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'machineEndianness' 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
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[5/12] Compiling BRUtils GlobalFunctions.swift
[6/12] Compiling BRUtils Date.Extensions.swift
[7/12] Compiling BRUtils NSNumber.Extensions.swift
[8/12] Compiling BRUtils Bool.Extensions.swift
[9/12] Compiling BRUtils TimeRelated.swift
[10/12] Emitting module BRUtils
/Users/admin/builder/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'machineEndianness' 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
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[11/12] Compiling BRUtils Array.Extensions.swift
[12/12] Compiling BRUtils Data.Extensions.swift
Build complete! (22.04s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BRUtils",
"name" : "BRUtils",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "8.0"
}
],
"products" : [
{
"name" : "BRUtils",
"targets" : [
"BRUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "BRUtils",
"module_type" : "SwiftTarget",
"name" : "BRUtils",
"path" : "Sources/BRUtils",
"product_memberships" : [
"BRUtils"
],
"sources" : [
"Array.Extensions.swift",
"Bool.Extensions.swift",
"Data.Extensions.swift",
"Date.Extensions.swift",
"Endianness.swift",
"GlobalFunctions.swift",
"Int.Extensions.swift",
"NSNumber.Extensions.swift",
"TimeRelated.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.