The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Lefthook with Swift 5.8 for iOS using Xcode 14.3.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/checkout/.dependencies -skipPackagePluginValidation -derivedDataPath $PWD/checkout/.derivedData build -scheme Lefthook-Package -destination generic/platform=ios

Build Log

========================================
RunAll
========================================
Builder version: 4.28.6
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/csjones/lefthook.git
Reference: SWIFT-PLUGIN
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/csjones/lefthook
 * branch            SWIFT-PLUGIN -> FETCH_HEAD
 * [new branch]      SWIFT-PLUGIN -> origin/SWIFT-PLUGIN
HEAD is now at c4363aa Merge branch 'evilmartians:master' into SWIFT-PLUGIN
Cloned https://github.com/csjones/lefthook.git
Revision (git rev-parse @):
c4363aa9a4f0a29041138689866b53b1fd599c12
SUCCESS checkout https://github.com/csjones/lefthook.git at SWIFT-PLUGIN
========================================
Build
========================================
Selected platform:         iOS
Swift version:             5.8
Building package at path:  $PWD/checkout
https://github.com/csjones/lefthook.git
Command line invocation:
    /Applications/Xcode-14.3.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
User defaults from command line:
    IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
    IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
  Lefthook: /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace
resolved source packages: Lefthook
2024-01-09 19:01:57.886 xcodebuild[47715:9137713] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "Lefthook-Package"
    ]
  }
}
2024-01-09 19:01:59.882 xcodebuild[47757:9137885] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/checkout/.dependencies -skipPackagePluginValidation -derivedDataPath $PWD/checkout/.derivedData build -scheme Lefthook-Package -destination generic/platform=ios
Command line invocation:
    /Applications/Xcode-14.3.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -skipPackagePluginValidation -derivedDataPath /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData build -scheme Lefthook-Package -destination generic/platform=ios
User defaults from command line:
    IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
    IDEDerivedDataPathOverride = /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData
    IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
  Lefthook: /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace
Prepare packages
Compile plug-in “Lefthook” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins/Lefthook
[debug]: Using compiler /Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: 788e6e59c1d42dda2fea9743d9af0ba5a9f52764543ee8cf768895709a7d1c43
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:20:33: error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
        process.executableURL = URL(filePath: lefthook.path.string)
                                ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:20:33: note: add 'if #available' version check
        process.executableURL = URL(filePath: lefthook.path.string)
                                ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:13:10: note: add @available attribute to enclosing instance method
    func performCommand(
         ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:12:8: note: add @available attribute to enclosing struct
struct LefthookPlugin: CommandPlugin {
       ^
Resolve Package Graph
2024-01-09 19:02:00.835 xcodebuild[47768:9137976] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD INTERRUPTED **
The following build commands failed:
	Compile plug-in “Lefthook” in package “spi-builder-workspace”
	eyJ0eXBlIjp7ImJsdWVwcmludFByb3ZpZGVyIjp7fX0sImJsdWVwcmludFByb3ZpZGVyX3Byb3ZpZGVyRmlsZVBhdGhTdHJpbmciOiJcL1VzZXJzXC9hZG1pblwvYnVpbGRzXC92TWQ3dXF6S1wvMVwvZmluZXN0cnVjdHVyZVwvc3dpZnRwYWNrYWdlaW5kZXgtYnVpbGRlclwvc3BpLWJ1aWxkZXItd29ya3NwYWNlIn0=
(2 failures)
Command line invocation:
    /Applications/Xcode-14.3.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -skipPackagePluginValidation -derivedDataPath /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData build -scheme Lefthook-Package -destination generic/platform=ios
User defaults from command line:
    IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
    IDEDerivedDataPathOverride = /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData
    IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
  Lefthook: /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace
Prepare packages
Compile plug-in “Lefthook” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins/Lefthook
[debug]: Using compiler /Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: 788e6e59c1d42dda2fea9743d9af0ba5a9f52764543ee8cf768895709a7d1c43
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:20:33: error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
        process.executableURL = URL(filePath: lefthook.path.string)
                                ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:20:33: note: add 'if #available' version check
        process.executableURL = URL(filePath: lefthook.path.string)
                                ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:13:10: note: add @available attribute to enclosing instance method
    func performCommand(
         ^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/packaging/swift/plugin/Lefthook.swift:12:8: note: add @available attribute to enclosing struct
struct LefthookPlugin: CommandPlugin {
       ^
2024-01-09 19:02:02.774 xcodebuild[47797:9138139] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD INTERRUPTED **
The following build commands failed:
	Compile plug-in “Lefthook” in package “spi-builder-workspace”
	eyJ0eXBlIjp7ImJsdWVwcmludFByb3ZpZGVyIjp7fX0sImJsdWVwcmludFByb3ZpZGVyX3Byb3ZpZGVyRmlsZVBhdGhTdHJpbmciOiJcL1VzZXJzXC9hZG1pblwvYnVpbGRzXC92TWQ3dXF6S1wvMVwvZmluZXN0cnVjdHVyZVwvc3dpZnRwYWNrYWdlaW5kZXgtYnVpbGRlclwvc3BpLWJ1aWxkZXItd29ya3NwYWNlIn0=
(2 failures)
BUILD FAILURE 5.8 iOS