Build Information
Failed to build Lefthook with Swift 5.8 for macOS (Xcode) 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 platform=macos,arch=arm64
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/0/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: macosXcodebuild
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/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
Lefthook: /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace
resolved source packages: Lefthook
2024-01-09 19:02:18.242 xcodebuild[48190:9139268] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"Lefthook-Package"
]
}
}
2024-01-09 19:02:19.312 xcodebuild[48204:9139332] 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 platform=macos,arch=arm64
Command line invocation:
/Applications/Xcode-14.3.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -skipPackagePluginValidation -derivedDataPath /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData build -scheme Lefthook-Package -destination platform=macos,arch=arm64
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
IDEDerivedDataPathOverride = /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
Lefthook: /Users/admin/builds/vMd7uqzK/0/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/0/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/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: 1e8f40fb74703cbf38b43231e4db585b6e0a82a2d85c62dcb3633ad8b26e8df1
/Users/admin/builds/vMd7uqzK/0/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/0/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/0/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/0/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:19.947 xcodebuild[48209:9139373] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:DriverKit, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-F826A02F5534A97C }
** BUILD INTERRUPTED **
The following build commands failed:
Compile plug-in “Lefthook” in package “spi-builder-workspace”
eyJ0eXBlIjp7ImJsdWVwcmludFByb3ZpZGVyIjp7fX0sImJsdWVwcmludFByb3ZpZGVyX3Byb3ZpZGVyRmlsZVBhdGhTdHJpbmciOiJcL1VzZXJzXC9hZG1pblwvYnVpbGRzXC92TWQ3dXF6S1wvMFwvZmluZXN0cnVjdHVyZVwvc3dpZnRwYWNrYWdlaW5kZXgtYnVpbGRlclwvc3BpLWJ1aWxkZXItd29ya3NwYWNlIn0=
(2 failures)
Command line invocation:
/Applications/Xcode-14.3.1.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies -skipPackagePluginValidation -derivedDataPath /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData build -scheme Lefthook-Package -destination platform=macos,arch=arm64
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies
IDEDerivedDataPathOverride = /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.derivedData
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
Lefthook: /Users/admin/builds/vMd7uqzK/0/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/0/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/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: 1e8f40fb74703cbf38b43231e4db585b6e0a82a2d85c62dcb3633ad8b26e8df1
/Users/admin/builds/vMd7uqzK/0/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/0/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/0/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/0/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:20.918 xcodebuild[48220:9139442] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:DriverKit, id:0000FE00-F826A02F5534A97C }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-F826A02F5534A97C }
** BUILD INTERRUPTED **
The following build commands failed:
Compile plug-in “Lefthook” in package “spi-builder-workspace”
eyJ0eXBlIjp7ImJsdWVwcmludFByb3ZpZGVyIjp7fX0sImJsdWVwcmludFByb3ZpZGVyX3Byb3ZpZGVyRmlsZVBhdGhTdHJpbmciOiJcL1VzZXJzXC9hZG1pblwvYnVpbGRzXC92TWQ3dXF6S1wvMFwvZmluZXN0cnVjdHVyZVwvc3dpZnRwYWNrYWdlaW5kZXgtYnVpbGRlclwvc3BpLWJ1aWxkZXItd29ya3NwYWNlIn0=
(2 failures)
BUILD FAILURE 5.8 macosXcodebuild