Build Information
Failed to build Lefthook with Swift 5.8 for watchOS 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=watchos
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: watchOS
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
Resolved source packages:
Lefthook: /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace
resolved source packages: Lefthook
2024-01-09 19:14:09.725 xcodebuild[51442:9150505] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"Lefthook-Package"
]
}
}
2024-01-09 19:14:10.865 xcodebuild[51583:9150895] 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=watchos
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=watchos
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:14:11.523 xcodebuild[51644:9151084] 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=watchos
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:14:12.472 xcodebuild[51655:9151152] 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 watchOS