The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PacketCaptureLibpcap, reference main (3ca84a), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 20:54:31 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/PacketCaptureLibpcap.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/PacketCaptureLibpcap
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3ca84a2 Time Interval Bug Fix
Cloned https://github.com/OperatorFoundation/PacketCaptureLibpcap.git
Revision (git rev-parse @):
3ca84a21ab599ddbb977424432875c3ba5a69039
SUCCESS checkout https://github.com/OperatorFoundation/PacketCaptureLibpcap.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/OperatorFoundation/PacketCaptureLibpcap.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/10] Compiling SwiftPCAP SwiftPCAPOffline.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 2 | {
 3 |     //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
 4 |     header "/usr/local/opt/libpcap/include/pcap.h"
   |            `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 5 |     link "/usr/local/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
  3 |
  4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
  5 |     import ClibpcapMacOS
    |            `- error: could not build Objective-C module 'ClibpcapMacOS'
  6 | #elseif os(Linux)
  7 |     import ClibpcapLinux
[6/10] Emitting module SwiftPCAP
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 2 | {
 3 |     //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
 4 |     header "/usr/local/opt/libpcap/include/pcap.h"
   |            `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 5 |     link "/usr/local/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
  3 |
  4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
  5 |     import ClibpcapMacOS
    |            `- error: could not build Objective-C module 'ClibpcapMacOS'
  6 | #elseif os(Linux)
  7 |     import ClibpcapLinux
[7/10] Compiling SwiftPCAP SwiftPCAP.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 2 | {
 3 |     //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
 4 |     header "/usr/local/opt/libpcap/include/pcap.h"
   |            `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 5 |     link "/usr/local/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
  3 |
  4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
  5 |     import ClibpcapMacOS
    |            `- error: could not build Objective-C module 'ClibpcapMacOS'
  6 | #elseif os(Linux)
  7 |     import ClibpcapLinux
[8/10] Compiling SwiftPCAP SwiftPCAPLive.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 2 | {
 3 |     //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
 4 |     header "/usr/local/opt/libpcap/include/pcap.h"
   |            `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
 5 |     link "/usr/local/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftPCAP/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
  3 |
  4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
  5 |     import ClibpcapMacOS
    |            `- error: could not build Objective-C module 'ClibpcapMacOS'
  6 | #elseif os(Linux)
  7 |     import ClibpcapLinux
[9/10] Compiling PacketStream PacketStream.swift
[10/10] Emitting module PacketStream
Fetching https://github.com/OperatorFoundation/SwiftPCAP.git
Fetching https://github.com/OperatorFoundation/PacketStream.git
[1/45] Fetching packetstream
[46/223] Fetching packetstream, swiftpcap
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.62s)
Fetched https://github.com/OperatorFoundation/SwiftPCAP.git from cache (0.62s)
Computing version for https://github.com/OperatorFoundation/PacketStream.git
Computed https://github.com/OperatorFoundation/PacketStream.git at 0.2.1 (1.15s)
Computing version for https://github.com/OperatorFoundation/SwiftPCAP.git
Computed https://github.com/OperatorFoundation/SwiftPCAP.git at 1.3.1 (0.50s)
Creating working copy for https://github.com/OperatorFoundation/SwiftPCAP.git
Working copy of https://github.com/OperatorFoundation/SwiftPCAP.git resolved at 1.3.1
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at 0.2.1
BUILD FAILURE 6.2 macosSpm