Build Information
Failed to build xcprojectlint, reference main (e0f3d9
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 05:54:15 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/americanexpress/xcprojectlint.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/americanexpress/xcprojectlint
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e0f3d93 Monterey updates (#38)
Cloned https://github.com/americanexpress/xcprojectlint.git
Revision (git rev-parse @):
e0f3d9383d8f56d76b5b1dd9819f1ba32a3b3bc1
SUCCESS checkout https://github.com/americanexpress/xcprojectlint.git at main
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system.git
[1/3919] Fetching swift-system
[2627/16314] Fetching swift-system, swift-argument-parser
[4044/22861] Fetching swift-system, swift-argument-parser, swift-tools-support-core
Fetched https://github.com/apple/swift-tools-support-core.git from cache (1.57s)
Fetched https://github.com/apple/swift-system.git from cache (1.57s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.57s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.2.1 (0.60s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.4.0 (0.65s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.58s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.4.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.2.1
========================================
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": "xcprojectlint",
"name": "xcprojectlint",
"url": "https://github.com/americanexpress/xcprojectlint.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xcprojectlint",
"dependencies": [
{
"identity": "swift-tools-support-core",
"name": "swift-tools-support-core",
"url": "https://github.com/apple/swift-tools-support-core.git",
"version": "0.7.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-tools-support-core",
"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/americanexpress/xcprojectlint.git
[1/898] Fetching xcprojectlint
Fetched https://github.com/americanexpress/xcprojectlint.git from cache (0.91s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.54s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.87s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.45s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.1 (0.62s)
Creating working copy for https://github.com/americanexpress/xcprojectlint.git
Working copy of https://github.com/americanexpress/xcprojectlint.git resolved at main (e0f3d93)
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.7.1
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
Found 2 product dependencies
- swift-tools-support-core
- swift-argument-parser
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/americanexpress/xcprojectlint.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/19] Write sources
[3/19] Write xcprojectlint-entitlement.plist
[8/19] Write sources
[10/19] Compiling TSCclibc process.c
[11/19] Compiling CSystem shims.c
[12/19] Compiling TSCclibc libc.c
[13/19] Write swift-version--7754E27361AE5C74.txt
[15/44] Emitting module ArgumentParserToolInfo
[16/44] Compiling ArgumentParserToolInfo ToolInfo.swift
[17/44] Emitting module SystemPackage
[18/84] Compiling ArgumentParser OptionGroup.swift
[19/84] Compiling ArgumentParser ParsableArguments.swift
[20/84] Emitting module TSCLibc
[21/84] Compiling TSCLibc libc.swift
[22/84] Compiling ArgumentParser ParsedValues.swift
[23/84] Compiling ArgumentParser Flag.swift
[24/84] Compiling ArgumentParser NameSpecification.swift
[25/84] Compiling ArgumentParser Option.swift
[26/84] Compiling ArgumentParser FishCompletionsGenerator.swift
[27/84] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/84] Compiling ArgumentParser Errors.swift
[29/84] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/84] Compiling ArgumentParser CompletionsGenerator.swift
[31/84] Compiling ArgumentParser DumpHelpGenerator.swift
[32/84] Compiling ArgumentParser HelpCommand.swift
[33/84] Compiling ArgumentParser ArgumentHelp.swift
[34/84] Compiling ArgumentParser ArgumentVisibility.swift
[35/84] Compiling ArgumentParser CompletionKind.swift
[36/84] Compiling ArgumentParser Name.swift
[37/84] Compiling ArgumentParser Parsed.swift
[38/84] Compiling ArgumentParser Argument.swift
[39/84] Compiling ArgumentParser InputOrigin.swift
[49/88] Compiling ArgumentParser ParserError.swift
[50/88] Compiling ArgumentParser SplitArguments.swift
[51/88] Compiling ArgumentParser ArgumentDefinition.swift
[52/88] Compiling ArgumentParser ArgumentSet.swift
[53/88] Compiling ArgumentParser CommandParser.swift
[54/88] Compiling ArgumentParser InputKey.swift
[55/129] Compiling TSCBasic KeyedPair.swift
[56/129] Compiling TSCBasic LazyCache.swift
[57/129] Compiling TSCBasic Lock.swift
[58/129] Compiling ArgumentParser Tree.swift
[59/129] Compiling TSCBasic GraphAlgorithms.swift
[60/129] Compiling TSCBasic HashAlgorithms.swift
[61/129] Compiling TSCBasic JSON.swift
[62/129] Compiling TSCBasic Path.swift
[63/129] Compiling TSCBasic TemporaryFile.swift
[64/129] Compiling TSCBasic TerminalController.swift
[65/129] Compiling TSCBasic OSLog.swift
[66/129] Compiling TSCBasic ObjectIdentifierProtocol.swift
[67/129] Emitting module ArgumentParser
[68/129] Compiling TSCBasic CollectionExtensions.swift
[69/129] Compiling TSCBasic Condition.swift
[70/129] Compiling TSCBasic StringConversions.swift
[71/129] Compiling TSCBasic SynchronizedQueue.swift
[72/129] Compiling TSCBasic OrderedDictionary.swift
[73/129] Compiling TSCBasic OrderedSet.swift
[74/129] Compiling TSCBasic ProcessSet.swift
[75/129] Compiling TSCBasic RegEx.swift
[76/129] Compiling TSCBasic Result.swift
[77/129] Compiling TSCBasic SortedArray.swift
[78/129] Compiling TSCBasic FileInfo.swift
[79/129] Compiling TSCBasic FileSystem.swift
[80/129] Compiling TSCBasic Await.swift
[81/129] Compiling TSCBasic Base64URL.swift
[82/129] Compiling TSCBasic ByteString.swift
[83/129] Compiling TSCBasic CStringArray.swift
[84/129] Emitting module TSCBasic
[85/133] Compiling TSCBasic DeltaAlgorithm.swift
[86/133] Compiling TSCBasic DiagnosticsEngine.swift
[87/133] Compiling TSCBasic DictionaryExtensions.swift
[88/133] Compiling TSCBasic DictionaryLiteralExtensions.swift
[89/133] Compiling TSCBasic EditDistance.swift
[90/133] Compiling TSCBasic Closable.swift
[91/133] Compiling TSCBasic CodableResult.swift
[92/133] Compiling TSCBasic CollectionAlgorithms.swift
[95/133] Compiling TSCBasic JSONMapper.swift
[100/133] Compiling TSCBasic PathShims.swift
[101/133] Compiling TSCBasic Process.swift
[102/133] Compiling TSCBasic ProcessEnv.swift
[111/133] Compiling TSCBasic CacheableSequence.swift
[112/133] Compiling TSCBasic Thread.swift
[113/133] Compiling TSCBasic Tuple.swift
[114/133] Compiling TSCBasic WritableByteStream.swift
[115/133] Compiling TSCBasic misc.swift
[129/169] Compiling TSCUtility BuildFlags.swift
[130/169] Compiling TSCUtility CollectionExtensions.swift
[131/169] Compiling TSCUtility Context.swift
[132/169] Compiling TSCUtility Diagnostics.swift
[133/172] Compiling TSCUtility URL.swift
[134/172] Compiling TSCUtility Verbosity.swift
[135/172] Compiling TSCUtility Version.swift
[136/172] Compiling TSCUtility FSWatch.swift
[137/172] Compiling TSCUtility FloatingPointExtensions.swift
[138/172] Compiling TSCUtility Git.swift
[139/172] Compiling TSCUtility Hex.swift
[140/172] Compiling TSCUtility Versioning.swift
[141/172] Compiling TSCUtility dlopen.swift
[142/172] Compiling TSCUtility misc.swift
[143/172] Compiling TSCUtility OSLog.swift
[144/172] Compiling TSCUtility OrderedZip.swift
[145/172] Compiling TSCUtility PkgConfig.swift
[146/172] Compiling TSCUtility Platform.swift
[147/172] Compiling TSCUtility IndexStore.swift
[148/172] Compiling TSCUtility InterruptHandler.swift
[149/172] Compiling TSCUtility JSONMessageStreamingParser.swift
[150/172] Compiling TSCUtility Netrc.swift
[151/172] Compiling TSCUtility Archiver.swift
[152/172] Compiling TSCUtility ArgumentParser.swift
[153/172] Compiling TSCUtility ArgumentParserShellCompletion.swift
[154/172] Compiling TSCUtility Array+Extensions.swift
[155/172] Compiling TSCUtility PolymorphicCodable.swift
[156/172] Compiling TSCUtility ProgressAnimation.swift
[157/172] Compiling TSCUtility SerializedDiagnostics.swift
[158/172] Compiling TSCUtility SimplePersistence.swift
[159/172] Compiling TSCUtility StringExtensions.swift
[160/172] Compiling TSCUtility StringMangling.swift
[161/172] Compiling TSCUtility Tracing.swift
[162/172] Compiling TSCUtility Triple.swift
[163/172] Emitting module TSCUtility
[164/172] Compiling TSCUtility Bits.swift
[165/172] Compiling TSCUtility Bitstream.swift
[166/172] Compiling TSCUtility BitstreamReader.swift
[167/172] Compiling TSCUtility BitstreamWriter.swift
[167/172] Write Objects.LinkFileList
[168/172] Linking libSwiftToolsSupport.dylib
[170/186] Compiling xcprojectlint_package Project.swift
[171/186] Compiling xcprojectlint_package CheckForInternalProjectSettings.swift
[172/186] Compiling xcprojectlint_package CheckForWhitespaceSpecifications.swift
[173/186] Compiling xcprojectlint_package Usage.swift
[174/186] Compiling xcprojectlint_package NoDanglingSourceFiles.swift
[175/186] Compiling xcprojectlint_package NoEmptyGroups.swift
[176/186] Compiling xcprojectlint_package Validation.swift
[177/186] Compiling xcprojectlint_package Report.swift
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'usage' 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
47 | }
48 |
[178/186] Compiling xcprojectlint_package DiskLayoutMatchesProject.swift
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
[179/186] Compiling xcprojectlint_package EnsureAlphaOrder.swift
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
[180/186] Compiling xcprojectlint_package ErrorReporter.swift
[181/186] Compiling xcprojectlint_package FilesExistOnDisk.swift
[182/186] Emitting module xcprojectlint_package
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'usage' 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
47 | }
48 |
[183/186] Compiling xcprojectlint_package ProjectParser.swift
[184/187] Compiling xcprojectlint_package Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[185/189] Emitting module xcprojectlint
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
13 | */
14 |
15 | import ArgumentParser
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
16 | import Foundation
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:21:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | @main
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
22 | abstract: "A linter for Xcode project files.",
23 | version: "\(currentVersion)"
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:29:52: warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 | @Option(
28 | name: .long,
29 | help: ArgumentHelp(stringLiteral: ReportKind.usage)
| `- warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | )
31 | var report: ReportKind
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: note: static property declared here
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| `- note: static property declared here
47 | }
48 |
[186/189] Compiling xcprojectlint XcodeProjectLint.swift
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
13 | */
14 |
15 | import ArgumentParser
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
16 | import Foundation
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:21:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | @main
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
22 | abstract: "A linter for Xcode project files.",
23 | version: "\(currentVersion)"
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:29:52: warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 | @Option(
28 | name: .long,
29 | help: ArgumentHelp(stringLiteral: ReportKind.usage)
| `- warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | )
31 | var report: ReportKind
/Users/admin/builder/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: note: static property declared here
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| `- note: static property declared here
47 | }
48 |
BUILD FAILURE 6.0 macosSpm