The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build xcprojectlint, reference main (e0f3d9), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 09:05:52 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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-system.git from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.83s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.84s)
Computing version for https://github.com/apple/swift-argument-parser
Fetched https://github.com/apple/swift-system.git from cache (0.84s)
Computed https://github.com/apple/swift-argument-parser at 1.2.1 (1.52s)
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.68s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.59s)
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-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-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.2",
          "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.82s)
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.55s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (1.20s)
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.2 (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.2
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.1
Building package at path:  $PWD
https://github.com/americanexpress/xcprojectlint.git
https://github.com/americanexpress/xcprojectlint.git
{
  "dependencies" : [
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "xcprojectlint",
  "name" : "xcprojectlint",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "xcprojectlint-package",
      "targets" : [
        "xcprojectlint-package"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "xcprojectlint",
      "targets" : [
        "xcprojectlint"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "xcprojectlint_packageTests",
      "module_type" : "SwiftTarget",
      "name" : "xcprojectlint-packageTests",
      "path" : "Tests/xcprojectlint-packageTests",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/xcprojectlint-packageTests/TestData",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Bundle.swift",
        "DiskLayoutMatchesProjectTests.swift",
        "FilesExistOnDiskTests.swift",
        "InternalProjectSettingsTests.swift",
        "ItemsInAlphaOrderTests.swift",
        "NoDanglingFilesTests.swift",
        "NoEmptyGroupsTests.swift",
        "WhiteSpaceSpecificationTests.swift"
      ],
      "target_dependencies" : [
        "xcprojectlint-package"
      ],
      "type" : "test"
    },
    {
      "c99name" : "xcprojectlint_package",
      "module_type" : "SwiftTarget",
      "name" : "xcprojectlint-package",
      "path" : "Sources/xcprojectlint-package",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport"
      ],
      "product_memberships" : [
        "xcprojectlint-package",
        "xcprojectlint"
      ],
      "sources" : [
        "CheckForInternalProjectSettings.swift",
        "CheckForWhitespaceSpecifications.swift",
        "DiskLayoutMatchesProject.swift",
        "EnsureAlphaOrder.swift",
        "ErrorReporter.swift",
        "FilesExistOnDisk.swift",
        "NoDanglingSourceFiles.swift",
        "NoEmptyGroups.swift",
        "Project.swift",
        "ProjectParser.swift",
        "Report.swift",
        "Usage.swift",
        "Validation.swift",
        "Version.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "xcprojectlint",
      "module_type" : "SwiftTarget",
      "name" : "xcprojectlint",
      "path" : "Sources/xcprojectlint",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport"
      ],
      "product_memberships" : [
        "xcprojectlint"
      ],
      "sources" : [
        "XcodeProjectLint.swift"
      ],
      "target_dependencies" : [
        "xcprojectlint-package"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
[1/19] Write xcprojectlint-entitlement.plist
[3/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-2F0A5646E1D333AE.txt
[15/44] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/44] Emitting module ArgumentParserToolInfo
[17/82] Compiling TSCLibc libc.swift
[18/82] Emitting module TSCLibc
[19/82] Compiling ArgumentParser NameSpecification.swift
[20/82] Compiling ArgumentParser Option.swift
[21/84] Compiling ArgumentParser ArgumentDefinition.swift
[22/84] Compiling ArgumentParser ArgumentSet.swift
[23/84] Compiling ArgumentParser CommandParser.swift
[24/84] Compiling ArgumentParser InputKey.swift
[25/84] Compiling ArgumentParser BashCompletionsGenerator.swift
[26/84] Emitting module SystemPackage
[27/84] Compiling SystemPackage Util.swift
[28/84] Compiling SystemPackage UtilConsumers.swift
[29/84] Compiling ArgumentParser Errors.swift
[30/84] Compiling ArgumentParser Flag.swift
[31/84] Compiling ArgumentParser ExpressibleByArgument.swift
[32/84] Compiling ArgumentParser ArgumentHelp.swift
[33/84] Compiling ArgumentParser ArgumentVisibility.swift
[34/84] Compiling ArgumentParser CompletionKind.swift
[35/84] Compiling ArgumentParser Argument.swift
[36/84] Compiling ArgumentParser AsyncParsableCommand.swift
[37/84] Compiling ArgumentParser CommandConfiguration.swift
[38/84] Compiling ArgumentParser EnumerableFlag.swift
[39/84] Compiling ArgumentParser CompletionsGenerator.swift
[40/84] Compiling ArgumentParser FishCompletionsGenerator.swift
[41/84] Compiling ArgumentParser ZshCompletionsGenerator.swift
[42/125] Compiling TSCBasic Lock.swift
[43/125] Compiling TSCBasic ProcessSet.swift
[44/125] Compiling TSCBasic RegEx.swift
[45/125] Compiling TSCBasic Result.swift
[46/129] Compiling TSCBasic SortedArray.swift
[47/129] Compiling TSCBasic Closable.swift
[48/129] Compiling TSCBasic CodableResult.swift
[49/129] Compiling TSCBasic CollectionAlgorithms.swift
[50/129] Compiling TSCBasic SynchronizedQueue.swift
[51/129] Compiling TSCBasic TemporaryFile.swift
[52/129] Compiling TSCBasic TerminalController.swift
[53/129] Compiling TSCBasic OSLog.swift
[54/129] Emitting module ArgumentParser
[55/129] Emitting module TSCBasic
[57/133] Compiling ArgumentParser Platform.swift
[58/133] Compiling ArgumentParser SequenceExtensions.swift
[59/133] Compiling ArgumentParser StringExtensions.swift
[63/133] Compiling TSCBasic Thread.swift
[64/133] Compiling TSCBasic EditDistance.swift
[65/133] Compiling TSCBasic JSONMapper.swift
[66/133] Compiling TSCBasic KeyedPair.swift
[67/133] Compiling TSCBasic LazyCache.swift
[68/133] Compiling TSCBasic JSON.swift
[69/133] Compiling TSCBasic DeltaAlgorithm.swift
[70/133] Compiling TSCBasic DiagnosticsEngine.swift
[71/133] Compiling TSCBasic DictionaryExtensions.swift
[72/133] Compiling TSCBasic DictionaryLiteralExtensions.swift
[73/133] Compiling TSCBasic FileInfo.swift
[74/133] Compiling TSCBasic FileSystem.swift
[75/133] Compiling TSCBasic GraphAlgorithms.swift
[76/133] Compiling TSCBasic HashAlgorithms.swift
[86/133] Compiling TSCBasic StringConversions.swift
[93/133] Compiling TSCBasic CollectionExtensions.swift
[94/133] Compiling TSCBasic Condition.swift
[95/133] Compiling TSCBasic Await.swift
[96/133] Compiling TSCBasic Base64URL.swift
[97/133] Compiling TSCBasic ByteString.swift
[98/133] Compiling TSCBasic CStringArray.swift
[99/133] Compiling TSCBasic CacheableSequence.swift
[104/133] Compiling TSCBasic PathShims.swift
[105/133] Compiling TSCBasic Process.swift
[106/133] Compiling TSCBasic ProcessEnv.swift
[111/133] Compiling TSCBasic Path.swift
[117/133] Compiling TSCBasic Tuple.swift
[118/133] Compiling TSCBasic WritableByteStream.swift
[119/133] Compiling TSCBasic misc.swift
[129/169] Emitting module TSCUtility
[130/172] Compiling TSCUtility OSLog.swift
[131/172] Compiling TSCUtility OrderedZip.swift
[132/172] Compiling TSCUtility PkgConfig.swift
[133/172] Compiling TSCUtility Platform.swift
[134/172] Compiling TSCUtility BuildFlags.swift
[135/172] Compiling TSCUtility CollectionExtensions.swift
[136/172] Compiling TSCUtility Context.swift
[137/172] Compiling TSCUtility Diagnostics.swift
[138/172] Compiling TSCUtility PolymorphicCodable.swift
[139/172] Compiling TSCUtility ProgressAnimation.swift
[140/172] Compiling TSCUtility SerializedDiagnostics.swift
[141/172] Compiling TSCUtility SimplePersistence.swift
[142/172] Compiling TSCUtility Archiver.swift
[143/172] Compiling TSCUtility ArgumentParser.swift
[144/172] Compiling TSCUtility ArgumentParserShellCompletion.swift
[145/172] Compiling TSCUtility Array+Extensions.swift
[146/172] Compiling TSCUtility IndexStore.swift
[147/172] Compiling TSCUtility InterruptHandler.swift
[148/172] Compiling TSCUtility JSONMessageStreamingParser.swift
[149/172] Compiling TSCUtility Netrc.swift
[150/172] Compiling TSCUtility URL.swift
[151/172] Compiling TSCUtility Verbosity.swift
[152/172] Compiling TSCUtility Version.swift
[153/172] Compiling TSCUtility Versioning.swift
[154/172] Compiling TSCUtility dlopen.swift
[155/172] Compiling TSCUtility misc.swift
[156/172] Compiling TSCUtility StringExtensions.swift
[157/172] Compiling TSCUtility StringMangling.swift
[158/172] Compiling TSCUtility Tracing.swift
[159/172] Compiling TSCUtility Triple.swift
[160/172] Compiling TSCUtility FSWatch.swift
[161/172] Compiling TSCUtility FloatingPointExtensions.swift
[162/172] Compiling TSCUtility Git.swift
[163/172] Compiling TSCUtility Hex.swift
[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 Validation.swift
[171/187] 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: add '@MainActor' to make static property 'usage' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[172/187] Compiling xcprojectlint_package Usage.swift
[173/187] Compiling xcprojectlint_package Project.swift
[174/187] Compiling xcprojectlint_package NoDanglingSourceFiles.swift
[175/187] Compiling xcprojectlint_package NoEmptyGroups.swift
[176/187] Compiling xcprojectlint_package Version.swift
[177/187] Compiling xcprojectlint_package ErrorReporter.swift
[178/187] Compiling xcprojectlint_package FilesExistOnDisk.swift
[179/187] 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: add '@MainActor' to make var '_skipFolders' part of global actor 'MainActor'
   |             `- 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/187] 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: add '@MainActor' to make var '_skipFolders' part of global actor 'MainActor'
   |             `- 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 {
[181/187] Compiling xcprojectlint_package CheckForInternalProjectSettings.swift
[182/187] Compiling xcprojectlint_package CheckForWhitespaceSpecifications.swift
[183/187] Compiling xcprojectlint_package ProjectParser.swift
[184/187] 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: add '@MainActor' to make var '_skipFolders' part of global actor 'MainActor'
   |             `- 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: add '@MainActor' to make static property 'usage' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
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
  1 | /*
    | |- note: top-level code defined in this source file
    | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
  2 |  * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
  3 |  *
    :
 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: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
    |              `- 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
  1 | /*
    | |- note: top-level code defined in this source file
    | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
  2 |  * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
  3 |  *
    :
 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: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
    |              `- 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 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/7] Write swift-version-2F0A5646E1D333AE.txt
[3/32] Compiling TSCLibc libc.swift
[4/32] Emitting module TSCLibc
[5/32] Compiling ArgumentParserToolInfo ToolInfo.swift
[6/32] Emitting module ArgumentParserToolInfo
[7/32] Compiling SystemPackage Exports.swift
[8/32] Compiling SystemPackage Mocking.swift
[9/34] Emitting module SystemPackage
[10/34] Compiling SystemPackage Errno.swift
[11/34] Compiling SystemPackage FileDescriptor.swift
[12/34] Compiling SystemPackage FileHelpers.swift
[13/34] Compiling SystemPackage FilePathString.swift
[14/34] Compiling SystemPackage FilePathSyntax.swift
[15/72] Compiling ArgumentParser MessageInfo.swift
[16/72] Compiling ArgumentParser UsageGenerator.swift
[17/72] Compiling ArgumentParser Name.swift
[18/72] Compiling ArgumentParser Parsed.swift
[19/72] Compiling ArgumentParser CompletionsGenerator.swift
[20/72] Compiling ArgumentParser FishCompletionsGenerator.swift
[21/72] Compiling ArgumentParser ZshCompletionsGenerator.swift
[22/72] Compiling ArgumentParser Argument.swift
[23/72] Compiling ArgumentParser InputOrigin.swift
[24/72] Compiling ArgumentParser ParsedValues.swift
[25/72] Compiling ArgumentParser HelpGenerator.swift
[26/72] Compiling ArgumentParser CollectionExtensions.swift
[27/72] Compiling ArgumentParser ArgumentDefinition.swift
[28/72] Compiling ArgumentParser InputKey.swift
[29/72] Compiling ArgumentParser Flag.swift
[30/113] Compiling TSCBasic PathShims.swift
[31/113] Compiling TSCBasic Process.swift
[32/113] Compiling TSCBasic ProcessEnv.swift
[33/113] Compiling TSCBasic ProcessSet.swift
[34/117] Compiling TSCBasic Await.swift
[35/117] Compiling TSCBasic Base64URL.swift
[36/117] Compiling TSCBasic ByteString.swift
[37/117] Compiling TSCBasic CStringArray.swift
[38/117] Emitting module ArgumentParser
[39/117] Compiling TSCBasic Closable.swift
[40/117] Compiling TSCBasic CodableResult.swift
[41/117] Compiling TSCBasic CollectionAlgorithms.swift
[42/117] Compiling TSCBasic CollectionExtensions.swift
[43/117] Compiling TSCBasic Condition.swift
[44/117] Compiling TSCBasic JSONMapper.swift
[45/117] Compiling TSCBasic KeyedPair.swift
[46/117] Compiling TSCBasic LazyCache.swift
[47/117] Compiling TSCBasic Lock.swift
[49/121] Compiling TSCBasic RegEx.swift
[50/121] Compiling TSCBasic Result.swift
[51/121] Compiling TSCBasic SortedArray.swift
[52/121] Compiling TSCBasic StringConversions.swift
[53/121] Compiling ArgumentParser Platform.swift
[54/121] Compiling ArgumentParser SequenceExtensions.swift
[55/121] Compiling ArgumentParser StringExtensions.swift
[59/121] Compiling TSCBasic Thread.swift
[60/121] Emitting module TSCBasic
[61/121] Compiling TSCBasic CacheableSequence.swift
[62/121] Compiling TSCBasic DeltaAlgorithm.swift
[63/121] Compiling TSCBasic DiagnosticsEngine.swift
[64/121] Compiling TSCBasic DictionaryExtensions.swift
[65/121] Compiling TSCBasic DictionaryLiteralExtensions.swift
[70/121] Compiling TSCBasic ObjectIdentifierProtocol.swift
[71/121] Compiling TSCBasic OrderedDictionary.swift
[72/121] Compiling TSCBasic OrderedSet.swift
[73/121] Compiling TSCBasic Path.swift
[74/121] Compiling TSCBasic HashAlgorithms.swift
[75/121] Compiling TSCBasic JSON.swift
[78/121] Compiling TSCBasic EditDistance.swift
[79/121] Compiling TSCBasic FileInfo.swift
[80/121] Compiling TSCBasic FileSystem.swift
[81/121] Compiling TSCBasic GraphAlgorithms.swift
[85/121] Compiling TSCBasic OSLog.swift
[99/121] Compiling TSCBasic Tuple.swift
[100/121] Compiling TSCBasic WritableByteStream.swift
[101/121] Compiling TSCBasic misc.swift
[117/157] Compiling TSCUtility URL.swift
[118/157] Compiling TSCUtility Verbosity.swift
[119/157] Compiling TSCUtility Version.swift
[120/160] Compiling TSCUtility OSLog.swift
[121/160] Compiling TSCUtility OrderedZip.swift
[122/160] Compiling TSCUtility PkgConfig.swift
[123/160] Compiling TSCUtility Platform.swift
[124/160] Compiling TSCUtility PolymorphicCodable.swift
[125/160] Compiling TSCUtility ProgressAnimation.swift
[126/160] Compiling TSCUtility SerializedDiagnostics.swift
[127/160] Compiling TSCUtility SimplePersistence.swift
[128/160] Compiling TSCUtility BuildFlags.swift
[129/160] Compiling TSCUtility CollectionExtensions.swift
[130/160] Compiling TSCUtility Context.swift
[131/160] Compiling TSCUtility Diagnostics.swift
[132/160] Compiling TSCUtility Versioning.swift
[133/160] Compiling TSCUtility dlopen.swift
[134/160] Compiling TSCUtility misc.swift
[135/160] Compiling TSCUtility FSWatch.swift
[136/160] Compiling TSCUtility FloatingPointExtensions.swift
[137/160] Compiling TSCUtility Git.swift
[138/160] Compiling TSCUtility Hex.swift
[139/160] Compiling TSCUtility Archiver.swift
[140/160] Compiling TSCUtility ArgumentParser.swift
[141/160] Compiling TSCUtility ArgumentParserShellCompletion.swift
[142/160] Compiling TSCUtility Array+Extensions.swift
[143/160] Compiling TSCUtility IndexStore.swift
[144/160] Compiling TSCUtility InterruptHandler.swift
[145/160] Compiling TSCUtility JSONMessageStreamingParser.swift
[146/160] Compiling TSCUtility Netrc.swift
[147/160] Compiling TSCUtility StringExtensions.swift
[148/160] Compiling TSCUtility StringMangling.swift
[149/160] Compiling TSCUtility Tracing.swift
[150/160] Compiling TSCUtility Triple.swift
[151/160] Emitting module TSCUtility
[152/160] Compiling TSCUtility Bits.swift
[153/160] Compiling TSCUtility Bitstream.swift
[154/160] Compiling TSCUtility BitstreamReader.swift
[155/160] Compiling TSCUtility BitstreamWriter.swift
[155/160] Write Objects.LinkFileList
[156/160] Linking libSwiftToolsSupport.dylib
[158/174] Compiling xcprojectlint_package Project.swift
[159/174] Compiling xcprojectlint_package Report.swift
[160/175] Compiling xcprojectlint_package CheckForInternalProjectSettings.swift
[161/175] Compiling xcprojectlint_package CheckForWhitespaceSpecifications.swift
[162/175] Compiling xcprojectlint_package NoDanglingSourceFiles.swift
[163/175] Compiling xcprojectlint_package NoEmptyGroups.swift
[164/175] Compiling xcprojectlint_package ErrorReporter.swift
[165/175] Compiling xcprojectlint_package FilesExistOnDisk.swift
[166/175] Emitting module xcprojectlint_package
[167/175] Compiling xcprojectlint_package DiskLayoutMatchesProject.swift
[168/175] Compiling xcprojectlint_package EnsureAlphaOrder.swift
[169/175] Compiling xcprojectlint_package Version.swift
[170/175] Compiling xcprojectlint_package Validation.swift
[171/175] Compiling xcprojectlint_package ProjectParser.swift
[172/175] Compiling xcprojectlint_package Usage.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[173/177] 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
  1 | /*
    | |- note: top-level code defined in this source file
    | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
  2 |  * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
  3 |  *
    :
 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(
[174/177] 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
  1 | /*
    | |- note: top-level code defined in this source file
    | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
  2 |  * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
  3 |  *
    :
 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(
BUILD FAILURE 6.1 macosSpm