Build Information
Failed to build sls, reference main (226a25
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:51:44 UTC.
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/maclong9/swift-list.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maclong9/swift-list
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 226a254 feat(Package): updated to swift v6.0
Cloned https://github.com/maclong9/swift-list.git
Revision (git rev-parse @):
226a2545d615d765f5c28cea09d574db87ca9002
SUCCESS checkout https://github.com/maclong9/swift-list.git at main
Fetching https://github.com/apple/swift-argument-parser
[1/12353] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.4.0 (0.56s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.4.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": "swift-list",
"name": "sls",
"url": "https://github.com/maclong9/swift-list.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-list",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/maclong9/swift-list.git
[1/359] Fetching swift-list
Fetched https://github.com/maclong9/swift-list.git from cache (1.05s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.56s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.04s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/maclong9/swift-list.git
Working copy of https://github.com/maclong9/swift-list.git resolved at main (226a254)
Found 1 product dependencies
- swift-argument-parser
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/maclong9/swift-list.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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/9] Write sources
[4/9] Write sls-entitlement.plist
[5/9] Write swift-version--7754E27361AE5C74.txt
[7/11] Emitting module ArgumentParserToolInfo
[8/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/49] Compiling ArgumentParser AsyncParsableCommand.swift
[10/49] Compiling ArgumentParser CommandConfiguration.swift
[11/49] Compiling ArgumentParser EnumerableFlag.swift
[12/49] Compiling ArgumentParser ExpressibleByArgument.swift
[13/53] Compiling ArgumentParser InputOrigin.swift
[14/53] Compiling ArgumentParser Name.swift
[15/53] Compiling ArgumentParser Parsed.swift
[16/53] Compiling ArgumentParser ParsedValues.swift
[17/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[18/53] Compiling ArgumentParser CompletionsGenerator.swift
[19/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[20/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[21/53] Compiling ArgumentParser Argument.swift
[22/53] Compiling ArgumentParser Flag.swift
[23/53] Compiling ArgumentParser NameSpecification.swift
[24/53] Compiling ArgumentParser Option.swift
[25/53] Compiling ArgumentParser OptionGroup.swift
[26/53] Compiling ArgumentParser Platform.swift
[27/53] Compiling ArgumentParser SequenceExtensions.swift
[28/53] Compiling ArgumentParser StringExtensions.swift
[29/53] Compiling ArgumentParser Tree.swift
[30/53] Compiling ArgumentParser ParsableArguments.swift
[31/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[32/53] Compiling ArgumentParser ParsableCommand.swift
[33/53] Compiling ArgumentParser ArgumentDecoder.swift
[34/53] Compiling ArgumentParser ArgumentHelp.swift
[35/53] Compiling ArgumentParser ArgumentVisibility.swift
[36/53] Compiling ArgumentParser CompletionKind.swift
[37/53] Compiling ArgumentParser Errors.swift
[38/53] Emitting module ArgumentParser
[39/53] Compiling ArgumentParser ParserError.swift
[40/53] Compiling ArgumentParser SplitArguments.swift
[41/53] Compiling ArgumentParser DumpHelpGenerator.swift
[42/53] Compiling ArgumentParser HelpCommand.swift
[43/53] Compiling ArgumentParser HelpGenerator.swift
[44/53] Compiling ArgumentParser MessageInfo.swift
[45/53] Compiling ArgumentParser UsageGenerator.swift
[46/53] Compiling ArgumentParser CollectionExtensions.swift
[47/53] Compiling ArgumentParser ArgumentDefinition.swift
[48/53] Compiling ArgumentParser ArgumentSet.swift
[49/53] Compiling ArgumentParser CommandParser.swift
[50/53] Compiling ArgumentParser InputKey.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/55] Emitting module sls
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:27:5: error: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
25 | }
26 |
27 | let files = FileManager.default
| |- error: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
| |- note: annotate 'files' 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
28 |
29 | class FileManagerHelper {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
1 | open class FileManager : NSObject {
| `- note: class 'FileManager' does not conform to the 'Sendable' protocol
2 | open class var `default`: FileManager { get }
3 | @available(swift, obsoleted: 3, renamed: "default")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:30:16: error: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
28 |
29 | class FileManagerHelper {
30 | static let fm = FileManager.default
| |- error: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
| |- note: annotate 'fm' 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
31 |
32 | static func determineType(of location: URL) throws -> FileRepresentation {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
1 | open class FileManager : NSObject {
| `- note: class 'FileManager' does not conform to the 'Sendable' protocol
2 | open class var `default`: FileManager { get }
3 | @available(swift, obsoleted: 3, renamed: "default")
[52/55] Compiling sls SwiftList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:27:5: error: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
25 | }
26 |
27 | let files = FileManager.default
| |- error: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
| |- note: annotate 'files' 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
28 |
29 | class FileManagerHelper {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
1 | open class FileManager : NSObject {
| `- note: class 'FileManager' does not conform to the 'Sendable' protocol
2 | open class var `default`: FileManager { get }
3 | @available(swift, obsoleted: 3, renamed: "default")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:30:16: error: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
28 |
29 | class FileManagerHelper {
30 | static let fm = FileManager.default
| |- error: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state
| |- note: annotate 'fm' 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
31 |
32 | static func determineType(of location: URL) throws -> FileRepresentation {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
1 | open class FileManager : NSObject {
| `- note: class 'FileManager' does not conform to the 'Sendable' protocol
2 | open class var `default`: FileManager { get }
3 | @available(swift, obsoleted: 3, renamed: "default")
BUILD FAILURE 6.0 macosSpm