Build Information
Failed to build sls, reference main (226a25
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 06:58:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.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
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[7/11] Emitting module ArgumentParserToolInfo
[8/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/49] Compiling ArgumentParser ArgumentHelp.swift
[10/49] Compiling ArgumentParser ArgumentVisibility.swift
[11/49] Compiling ArgumentParser CompletionKind.swift
[12/49] Compiling ArgumentParser Errors.swift
[13/53] Compiling ArgumentParser AsyncParsableCommand.swift
[14/53] Compiling ArgumentParser CommandConfiguration.swift
[15/53] Compiling ArgumentParser EnumerableFlag.swift
[16/53] Compiling ArgumentParser ExpressibleByArgument.swift
[17/53] Compiling ArgumentParser InputOrigin.swift
[18/53] Compiling ArgumentParser Name.swift
[19/53] Compiling ArgumentParser Parsed.swift
[20/53] Compiling ArgumentParser ParsedValues.swift
[21/53] Emitting module ArgumentParser
[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 ParsableArguments.swift
[27/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[28/53] Compiling ArgumentParser ParsableCommand.swift
[29/53] Compiling ArgumentParser ArgumentDecoder.swift
[30/53] Compiling ArgumentParser Platform.swift
[31/53] Compiling ArgumentParser SequenceExtensions.swift
[32/53] Compiling ArgumentParser StringExtensions.swift
[33/53] Compiling ArgumentParser Tree.swift
[34/53] Compiling ArgumentParser ArgumentDefinition.swift
[35/53] Compiling ArgumentParser ArgumentSet.swift
[36/53] Compiling ArgumentParser CommandParser.swift
[37/53] Compiling ArgumentParser InputKey.swift
[38/53] Compiling ArgumentParser ParserError.swift
[39/53] Compiling ArgumentParser SplitArguments.swift
[40/53] Compiling ArgumentParser DumpHelpGenerator.swift
[41/53] Compiling ArgumentParser HelpCommand.swift
[42/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[43/53] Compiling ArgumentParser CompletionsGenerator.swift
[44/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[45/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[46/53] Compiling ArgumentParser Argument.swift
[47/53] Compiling ArgumentParser HelpGenerator.swift
[48/53] Compiling ArgumentParser MessageInfo.swift
[49/53] Compiling ArgumentParser UsageGenerator.swift
[50/53] Compiling ArgumentParser CollectionExtensions.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")
Fetching https://github.com/apple/swift-argument-parser
[1/12169] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.58s)
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
BUILD FAILURE 6.0 macosSpm