Build Information
Failed to build SwiftPCAP with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.28.5
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/SwiftPCAP.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/SwiftPCAP
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7a8e571 Changed module path on macOS to homebrew install location
Cloned https://github.com/OperatorFoundation/SwiftPCAP.git
Revision (git rev-parse @):
7a8e571abc33dbeff42adc30418828e084e919b6
SUCCESS checkout https://github.com/OperatorFoundation/SwiftPCAP.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Emitting module SwiftPCAP
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[2/4] Compiling SwiftPCAP SwiftPCAPLive.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[3/4] Compiling SwiftPCAP SwiftPCAP.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[4/4] Compiling SwiftPCAP SwiftPCAPOffline.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
Fetching https://github.com/OperatorFoundation/SwiftHexTools from cache
Fetched https://github.com/OperatorFoundation/SwiftHexTools (0.19s)
Computing version for https://github.com/OperatorFoundation/SwiftHexTools
Computed https://github.com/OperatorFoundation/SwiftHexTools at 1.2.6 (0.46s)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools
Working copy of https://github.com/OperatorFoundation/SwiftHexTools resolved at 1.2.6
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Emitting module SwiftPCAP
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[2/4] Compiling SwiftPCAP SwiftPCAPLive.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[3/4] Compiling SwiftPCAP SwiftPCAP.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
[4/4] Compiling SwiftPCAP SwiftPCAPOffline.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
header "/opt/homebrew/opt/libpcap/include/pcap.h"
^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
import ClibpcapMacOS
^
BUILD FAILURE 5.8 macosSpm