The Swift Package Index logo.Swift Package Index

Build Information

Successful build of IndexStore, reference main (7edb9a), with Swift 6.1 for macOS (SPM) on 2 Apr 2026 07:22:43 UTC.

Swift 6 data race errors: 2

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MobileNativeFoundation/swift-index-store.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MobileNativeFoundation/swift-index-store
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7edb9a6 Expose symbol language in the Swift API (#83)
Cloned https://github.com/MobileNativeFoundation/swift-index-store.git
Revision (git rev-parse @):
7edb9a64e084ed64f83b84fb9269d3d1a20c0687
SUCCESS checkout https://github.com/MobileNativeFoundation/swift-index-store.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/MobileNativeFoundation/swift-index-store.git
https://github.com/MobileNativeFoundation/swift-index-store.git
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "IndexStore",
  "name" : "IndexStore",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "IndexStore",
      "targets" : [
        "IndexStore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CSwiftDemangle",
      "targets" : [
        "CSwiftDemangle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftDemangle",
      "targets" : [
        "SwiftDemangle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "indexutil-export",
      "targets" : [
        "indexutil-export"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "unnecessary-testable",
      "targets" : [
        "unnecessary-testable"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "unused-imports",
      "targets" : [
        "unused-imports"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "indexutil-annotate",
      "targets" : [
        "indexutil-annotate"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "tycat",
      "targets" : [
        "tycat"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "unused_imports",
      "module_type" : "SwiftTarget",
      "name" : "unused-imports",
      "path" : "Sources/unused-imports",
      "product_memberships" : [
        "unused-imports"
      ],
      "sources" : [
        "Reporters/JSONReporter.swift",
        "Reporters/SedCommandReporter.swift",
        "Reporters/UnusedImportReporter.swift",
        "SourceFileWithUnusedImports.swift",
        "UnusedImportStatement.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "unnecessary_testable",
      "module_type" : "SwiftTarget",
      "name" : "unnecessary-testable",
      "path" : "Sources/unnecessary-testable",
      "product_memberships" : [
        "unnecessary-testable"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "tycat",
      "module_type" : "SwiftTarget",
      "name" : "tycat",
      "path" : "Sources/tycat",
      "product_memberships" : [
        "tycat"
      ],
      "sources" : [
        "TypeGraph.swift",
        "Xcode.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "indexutil_export",
      "module_type" : "SwiftTarget",
      "name" : "indexutil-export",
      "path" : "Sources/indexutil-export",
      "product_memberships" : [
        "indexutil-export"
      ],
      "sources" : [
        "TSVWriter.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "indexutil_annotate",
      "module_type" : "SwiftTarget",
      "name" : "indexutil-annotate",
      "path" : "Sources/indexutil-annotate",
      "product_memberships" : [
        "indexutil-annotate"
      ],
      "sources" : [
        "Annotation.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftDemangleTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDemangleTests",
      "path" : "Tests/SwiftDemangleTests",
      "sources" : [
        "SwiftDemangleTests.swift"
      ],
      "target_dependencies" : [
        "SwiftDemangle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftDemangle",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDemangle",
      "path" : "Sources/SwiftDemangle",
      "product_memberships" : [
        "SwiftDemangle"
      ],
      "sources" : [
        "DemangledNode.swift",
        "Demangler.swift"
      ],
      "target_dependencies" : [
        "CSwiftDemangle"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IndexStoreTests",
      "module_type" : "SwiftTarget",
      "name" : "IndexStoreTests",
      "path" : "Tests/IndexStoreTests",
      "sources" : [
        "DetermineIndexStorePath.swift",
        "IndexStoreTests.swift",
        "dummy.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IndexStore",
      "module_type" : "SwiftTarget",
      "name" : "IndexStore",
      "path" : "Sources/IndexStore",
      "product_memberships" : [
        "IndexStore",
        "indexutil-export",
        "unnecessary-testable",
        "unused-imports",
        "indexutil-annotate",
        "tycat"
      ],
      "sources" : [
        "Constants.swift",
        "IndexStore.swift",
        "IndexStoreError.swift",
        "StandardStream.swift",
        "String+IndexStore.swift"
      ],
      "target_dependencies" : [
        "CIndexStore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSwiftDemangle",
      "module_type" : "ClangTarget",
      "name" : "CSwiftDemangle",
      "path" : "Sources/CSwiftDemangle",
      "product_memberships" : [
        "CSwiftDemangle",
        "SwiftDemangle"
      ],
      "sources" : [
        "CSwiftDemangle.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CIndexStore",
      "module_type" : "ClangTarget",
      "name" : "CIndexStore",
      "path" : "Sources/CIndexStore",
      "product_memberships" : [
        "IndexStore",
        "indexutil-export",
        "unnecessary-testable",
        "unused-imports",
        "indexutil-annotate",
        "tycat"
      ],
      "sources" : [
        "dummy.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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
Building for debugging...
[0/30] Write sources
[2/30] Write unused-imports-entitlement.plist
[2/30] Write sources
[5/30] Write unnecessary-testable-entitlement.plist
[7/30] Write tycat-entitlement.plist
[9/30] Write sources
[10/30] Write indexutil-export-entitlement.plist
[11/30] Write indexutil-annotate-entitlement.plist
[12/30] Compiling CIndexStore dummy.c
[13/30] Write swift-version-2F0A5646E1D333AE.txt
/Users/admin/builder/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:29:22: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
   29 |     char true_symbol[strlen(symbol) + 1];
      |                      ^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:29:29: note: function parameter 'symbol' with unknown value cannot be used in a constant expression
   29 |     char true_symbol[strlen(symbol) + 1];
      |                             ^
/Users/admin/builder/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:26:75: note: declared here
   26 | demangle_node_t demangle_symbolAsNode(demangle_context_t ctx, const char *symbol) {
      |                                                                           ^
1 warning generated.
[14/36] Compiling CSwiftDemangle CSwiftDemangle.cpp
[16/39] Compiling IndexStore String+IndexStore.swift
[17/39] Compiling IndexStore IndexStoreError.swift
/Users/admin/builder/spi-builder-workspace/Sources/IndexStore/IndexStoreError.swift:4:17: warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
 2 |
 3 | public final class IndexStoreError: Error, CustomStringConvertible {
 4 |     private var error: indexstore_error_t
   |                 `- warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
 5 |
 6 |     init(_ error: indexstore_error_t) {
[18/39] Compiling IndexStore IndexStore.swift
[19/39] Compiling IndexStore Constants.swift
[20/39] Compiling IndexStore StandardStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:5: warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
   |     |- warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderr' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderr' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
[21/39] Emitting module IndexStore
/Users/admin/builder/spi-builder-workspace/Sources/IndexStore/IndexStoreError.swift:4:17: warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
 2 |
 3 | public final class IndexStoreError: Error, CustomStringConvertible {
 4 |     private var error: indexstore_error_t
   |                 `- warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
 5 |
 6 |     init(_ error: indexstore_error_t) {
/Users/admin/builder/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:5: warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
   |     |- warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderr' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderr' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
[22/39] Compiling SwiftDemangle DemangledNode.swift
[23/39] Compiling SwiftDemangle Demangler.swift
[24/39] Emitting module SwiftDemangle
[25/58] Emitting module indexutil_annotate
[26/58] Compiling unused_imports UnusedImportReporter.swift
[27/58] Compiling unused_imports SedCommandReporter.swift
[28/58] Compiling unused_imports JSONReporter.swift
[29/58] Compiling unused_imports SourceFileWithUnusedImports.swift
[30/58] Compiling indexutil_annotate Annotation.swift
[31/58] Compiling indexutil_annotate main.swift
[32/58] Emitting module indexutil_export
[33/58] Compiling indexutil_export TSVWriter.swift
[34/58] Compiling indexutil_export main.swift
/Users/admin/builder/spi-builder-workspace/Sources/indexutil-export/main.swift:13:84: error: main actor-isolated var 'stderr' can not be used 'inout' from a nonisolated context
  8 | }
  9 |
 10 | var stderr = StandardErrorStream()
    |     `- note: mutation of this var is only permitted within the actor
 11 |
 12 | func usage() -> Never {
    |      `- note: add '@MainActor' to make global function 'usage()' part of global actor 'MainActor'
 13 |     print("Usage: indexutil export <format> <index-store-path> <output-dir>", to: &stderr)
    |                                                                                    `- error: main actor-isolated var 'stderr' can not be used 'inout' from a nonisolated context
 14 |     exit(EXIT_FAILURE)
 15 | }
[35/58] Compiling unused_imports UnusedImportStatement.swift
[36/58] Emitting module unnecessary_testable
[37/58] Compiling tycat Xcode.swift
[38/58] Compiling tycat TypeGraph.swift
[39/58] Emitting module tycat
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/16] Write swift-version-2F0A5646E1D333AE.txt
[2/25] Compiling SwiftDemangle Demangler.swift
[3/25] Emitting module SwiftDemangle
[4/25] Compiling SwiftDemangle DemangledNode.swift
[5/25] Compiling IndexStore String+IndexStore.swift
[6/25] Compiling IndexStore IndexStoreError.swift
[7/25] Compiling IndexStore StandardStream.swift
[8/25] Compiling IndexStore Constants.swift
[9/25] Compiling IndexStore IndexStore.swift
[10/25] Emitting module IndexStore
[11/44] Compiling indexutil_export TSVWriter.swift
[12/44] Emitting module indexutil_export
[13/44] Compiling indexutil_export main.swift
[13/44] Write Objects.LinkFileList
[15/44] Compiling tycat main.swift
[16/44] Compiling tycat TypeGraph.swift
[17/44] Compiling tycat Xcode.swift
[18/44] Emitting module tycat
[18/44] Write Objects.LinkFileList
[20/44] Compiling unused_imports SedCommandReporter.swift
[21/44] Compiling unused_imports UnusedImportReporter.swift
[22/44] Compiling unused_imports JSONReporter.swift
[23/44] Compiling unused_imports SourceFileWithUnusedImports.swift
[24/44] Emitting module indexutil_annotate
[25/44] Compiling indexutil_annotate Annotation.swift
[26/44] Compiling indexutil_annotate main.swift
[27/44] Emitting module unused_imports
[27/44] Write Objects.LinkFileList
[29/44] Compiling unnecessary_testable main.swift
[30/44] Emitting module unnecessary_testable
[30/44] Write Objects.LinkFileList
[32/44] Compiling unused_imports main.swift
[33/44] Compiling unused_imports UnusedImportStatement.swift
[33/44] Write Objects.LinkFileList
[34/44] Linking indexutil-export
[34/44] Linking indexutil-annotate
[35/44] Linking tycat
[37/44] Applying tycat
[38/44] Applying indexutil-export
[39/44] Applying indexutil-annotate
[40/44] Linking unnecessary-testable
[41/44] Applying unnecessary-testable
[42/44] Linking unused-imports
[43/44] Applying unused-imports
Build complete! (3.20s)
Build complete.
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "IndexStore",
  "name" : "IndexStore",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "IndexStore",
      "targets" : [
        "IndexStore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CSwiftDemangle",
      "targets" : [
        "CSwiftDemangle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftDemangle",
      "targets" : [
        "SwiftDemangle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "indexutil-export",
      "targets" : [
        "indexutil-export"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "unnecessary-testable",
      "targets" : [
        "unnecessary-testable"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "unused-imports",
      "targets" : [
        "unused-imports"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "indexutil-annotate",
      "targets" : [
        "indexutil-annotate"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "tycat",
      "targets" : [
        "tycat"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "unused_imports",
      "module_type" : "SwiftTarget",
      "name" : "unused-imports",
      "path" : "Sources/unused-imports",
      "product_memberships" : [
        "unused-imports"
      ],
      "sources" : [
        "Reporters/JSONReporter.swift",
        "Reporters/SedCommandReporter.swift",
        "Reporters/UnusedImportReporter.swift",
        "SourceFileWithUnusedImports.swift",
        "UnusedImportStatement.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "unnecessary_testable",
      "module_type" : "SwiftTarget",
      "name" : "unnecessary-testable",
      "path" : "Sources/unnecessary-testable",
      "product_memberships" : [
        "unnecessary-testable"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "tycat",
      "module_type" : "SwiftTarget",
      "name" : "tycat",
      "path" : "Sources/tycat",
      "product_memberships" : [
        "tycat"
      ],
      "sources" : [
        "TypeGraph.swift",
        "Xcode.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "indexutil_export",
      "module_type" : "SwiftTarget",
      "name" : "indexutil-export",
      "path" : "Sources/indexutil-export",
      "product_memberships" : [
        "indexutil-export"
      ],
      "sources" : [
        "TSVWriter.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "indexutil_annotate",
      "module_type" : "SwiftTarget",
      "name" : "indexutil-annotate",
      "path" : "Sources/indexutil-annotate",
      "product_memberships" : [
        "indexutil-annotate"
      ],
      "sources" : [
        "Annotation.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftDemangleTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDemangleTests",
      "path" : "Tests/SwiftDemangleTests",
      "sources" : [
        "SwiftDemangleTests.swift"
      ],
      "target_dependencies" : [
        "SwiftDemangle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftDemangle",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDemangle",
      "path" : "Sources/SwiftDemangle",
      "product_memberships" : [
        "SwiftDemangle"
      ],
      "sources" : [
        "DemangledNode.swift",
        "Demangler.swift"
      ],
      "target_dependencies" : [
        "CSwiftDemangle"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IndexStoreTests",
      "module_type" : "SwiftTarget",
      "name" : "IndexStoreTests",
      "path" : "Tests/IndexStoreTests",
      "sources" : [
        "DetermineIndexStorePath.swift",
        "IndexStoreTests.swift",
        "dummy.swift"
      ],
      "target_dependencies" : [
        "IndexStore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IndexStore",
      "module_type" : "SwiftTarget",
      "name" : "IndexStore",
      "path" : "Sources/IndexStore",
      "product_memberships" : [
        "IndexStore",
        "indexutil-export",
        "unnecessary-testable",
        "unused-imports",
        "indexutil-annotate",
        "tycat"
      ],
      "sources" : [
        "Constants.swift",
        "IndexStore.swift",
        "IndexStoreError.swift",
        "StandardStream.swift",
        "String+IndexStore.swift"
      ],
      "target_dependencies" : [
        "CIndexStore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSwiftDemangle",
      "module_type" : "ClangTarget",
      "name" : "CSwiftDemangle",
      "path" : "Sources/CSwiftDemangle",
      "product_memberships" : [
        "CSwiftDemangle",
        "SwiftDemangle"
      ],
      "sources" : [
        "CSwiftDemangle.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CIndexStore",
      "module_type" : "ClangTarget",
      "name" : "CIndexStore",
      "path" : "Sources/CIndexStore",
      "product_memberships" : [
        "IndexStore",
        "indexutil-export",
        "unnecessary-testable",
        "unused-imports",
        "indexutil-annotate",
        "tycat"
      ],
      "sources" : [
        "dummy.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.