Build Information
Failed to build DLKit, reference main (f12ceb
), with Swift 5.8 for macOS (SPM) on 23 Jul 2024 18:13:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.47.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/DLKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/DLKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f12cebd Flatten sub-packages.
Cloned https://github.com/johnno1962/DLKit.git
Revision (git rev-parse @):
f12cebd9b0a39962b6b3f94b7b4946c903da0027
SUCCESS checkout https://github.com/johnno1962/DLKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $PWD
https://github.com/johnno1962/DLKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Compiling DLKitC DLKitC.c
[1/8] Compiling DLKitCD DLKitC.c
[2/8] Compiling fishhookD fishhook.c
[3/8] Compiling fishhook fishhook.c
/Users/admin/builder/spi-builder-workspace/Sources/DLKitC/trie_dladdr.mm:86:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto it = upper_bound(array.begin(), array.end(), value);
^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/DLKitC/trie_dlops.mm:166:46: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (uint32_t aVisitedNodeOffset : visitedNodeOffsets) {
^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/DLKitCD/trie_dlops.mm:166:46: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (uint32_t aVisitedNodeOffset : visitedNodeOffsets) {
^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/DLKitCD/trie_dladdr.mm:86:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto it = upper_bound(array.begin(), array.end(), value);
^
1 warning generated.
[4/8] Compiling DLKitC trie_dladdr.mm
[5/8] Compiling DLKitC trie_dlops.mm
[5/8] Compiling DLKitCD trie_dlops.mm
[5/8] Compiling DLKitCD trie_dladdr.mm
[9/22] Compiling DLKit Iterators.swift
[10/22] Compiling DLKitD Interposing.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
public let info: Dl_info
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:42:59: error: cannot find 'dlsym' in scope
values.map { if let replacement = dlsym(scope, $0) {
^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:58:26: error: cannot find type 'rebinding' in scope
var rebindings: [rebinding] = (0..<names.count).compactMap {
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:66:43: error: extra argument 'rebindings' in call
let replaced = rebind(rebindings: &rebindings)
~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:66:31: error: missing argument for parameter 'mapping' in call
let replaced = rebind(rebindings: &rebindings)
^
mapping: <#[String : String]#>,
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:31:17: note: 'rebind(mapping:scope:warn:)' declared here
public func rebind(mapping: [String: String],
^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:82:13: error: cannot find 'rebind_symbols_image' in scope
rebind_symbols_image(
^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:107:25: error: cannot find 'strcmp' in scope
strcmp(info.dli_fname, $0.imageName) == 0 })
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:20: error: cannot find 'Dl_info' in scope
var info = Dl_info()
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:114:15: error: cannot find 'dladdr' in scope
guard dladdr(address, &info) != 0 ||
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:115:10: error: cannot find 'trie_dladdr' in scope
trie_dladdr(address, &info) != 0 else { return nil }
^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:131:31: error: cannot find 'dlopen' in scope
imageHandle = dlopen(imageName, RTLD_LAZY)
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:131:49: error: cannot find 'RTLD_LAZY' in scope
imageHandle = dlopen(imageName, RTLD_LAZY)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:133:31: error: cannot find 'dlsym' in scope
return names.map {dlsym(imageHandle, $0)}
^~~~~
[11/22] Compiling DLKitD Iterators.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:22:48: error: cannot find type 'nlist_t' in scope
entry: UnsafeMutablePointer<nlist_t>
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
var state = symbol_iterator()
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:54: error: cannot find type 'mach_header_t' in scope
override open var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:27: error: property does not override any property from its superclass
override open var imageHeader: UnsafePointer<mach_header_t> {
~~~~~~~~ ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:25:49: error: cannot find 'N_STAB' in scope
return entry.pointee.n_type & UInt8(N_STAB) != 0
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:29:52: error: cannot find 'uintptr_t' in scope
unsafeBitCast(value, to: uintptr_t.self),
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:42:13: error: cannot find 'init_symbol_iterator' in scope
init_symbol_iterator(image.imageHeader, &state, image is FileSymbols)
^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
public var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:52:49: error: cannot find 'NO_SECT' in scope
value: symbol.pointee.n_sect == NO_SECT ? nil : SymbolValue(
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:57: error: cannot find 'N_STAB' in scope
return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:66: error: cannot find 'N_PEXT' in scope
return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:64: error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
^
Int32( )
[12/22] Compiling DLKitD FileSymbols.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:24:38: error: cannot find type 'mach_header_t' in scope
public let header: UnsafePointer<mach_header_t>
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:50: error: cannot find type 'mach_header_t' in scope
override open var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:23: error: property does not override any property from its superclass
override open var imageHeader: UnsafePointer<mach_header_t> {
~~~~~~~~ ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:34:42: error: cannot find type 'mach_header_t' in scope
-> UnsafePointer<mach_header_t>? {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:54:57: error: cannot find 'mach_header_t' in scope
header = data.bytes.assumingMemoryBound(to: mach_header_t.self)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:54:27: error: generic parameter 'T' could not be inferred
header = data.bytes.assumingMemoryBound(to: mach_header_t.self)
^
Swift.UnsafeRawPointer:15:17: note: in call to function 'assumingMemoryBound(to:)'
public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T>
^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
public var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:63:9: error: cannot find 'trie_register' in scope
trie_register(path, header)
^~~~~~~~~~~~~
[13/22] Compiling DLKitD ImageSymbols.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
public var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:117:33: error: cannot find type 'TrieSymbol' in scope
open func trieSymbols() -> [TrieSymbol]? {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
var state = symbol_iterator()
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:118:30: error: cannot find 'trie_iterator' in scope
guard let iterator = trie_iterator(imageHeader),
^~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/22] Compiling DLKitD Demangling.swift
[15/22] Emitting module DLKitD
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:24:38: error: cannot find type 'mach_header_t' in scope
public let header: UnsafePointer<mach_header_t>
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:50: error: cannot find type 'mach_header_t' in scope
override open var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:23: error: property does not override any property from its superclass
override open var imageHeader: UnsafePointer<mach_header_t> {
~~~~~~~~ ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:34:42: error: cannot find type 'mach_header_t' in scope
-> UnsafePointer<mach_header_t>? {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
public var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:117:33: error: cannot find type 'TrieSymbol' in scope
open func trieSymbols() -> [TrieSymbol]? {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
public let info: Dl_info
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:22:48: error: cannot find type 'nlist_t' in scope
entry: UnsafeMutablePointer<nlist_t>
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
var state = symbol_iterator()
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:54: error: cannot find type 'mach_header_t' in scope
override open var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:27: error: property does not override any property from its superclass
override open var imageHeader: UnsafePointer<mach_header_t> {
~~~~~~~~ ^
[16/22] Compiling DLKitD DLKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
var imageHeader: UnsafePointer<mach_header_t> {
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:47:26: error: cannot find 'self_caller_address' in scope
return allImages[self_caller_address()!]!.image!
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:123:9: error: cannot find 'trie_dlsym' in scope
trie_dlsym($0.imageHeader, symbol) }.first
^~~~~~~~~~
[17/22] Compiling DLKit Interposing.swift
Fetching https://github.com/johnno1962/fishhook
[1/169] Fetching fishhook
Fetched https://github.com/johnno1962/fishhook (1.12s)
Computing version for https://github.com/johnno1962/fishhook
Computed https://github.com/johnno1962/fishhook at 1.2.1 (0.75s)
Creating working copy for https://github.com/johnno1962/fishhook
Working copy of https://github.com/johnno1962/fishhook resolved at 1.2.1
BUILD FAILURE 5.8 macosSpm