The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPCAP, reference main (7a8e57), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 21:13:07 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/SwiftPCAP.git
Reference: main
Initialized empty Git repository in /Users/admin/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:             6.2
Building package at path:  $PWD
https://github.com/OperatorFoundation/SwiftPCAP.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module SwiftPCAP
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/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 "/opt/homebrew/opt/libpcap/include/pcap.h"
   |            `- error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
 5 |     link "/opt/homebrew/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/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
[4/6] Compiling SwiftPCAP SwiftPCAPLive.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/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 "/opt/homebrew/opt/libpcap/include/pcap.h"
   |            `- error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
 5 |     link "/opt/homebrew/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/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
[5/6] Compiling SwiftPCAP SwiftPCAP.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/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 "/opt/homebrew/opt/libpcap/include/pcap.h"
   |            `- error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
 5 |     link "/opt/homebrew/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/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/6] Compiling SwiftPCAP SwiftPCAPOffline.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/opt/homebrew/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 "/opt/homebrew/opt/libpcap/include/pcap.h"
   |            `- error: header '/opt/homebrew/opt/libpcap/include/pcap.h' not found
 5 |     link "/opt/homebrew/opt/libpcap/lib/libpcap.dylib"
 6 |     export *
/Users/admin/builder/spi-builder-workspace/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
Fetching https://github.com/OperatorFoundation/SwiftHexTools
[3/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools from cache (0.65s)
Computing version for https://github.com/OperatorFoundation/SwiftHexTools
Computed https://github.com/OperatorFoundation/SwiftHexTools at 1.2.6 (1.20s)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools
Working copy of https://github.com/OperatorFoundation/SwiftHexTools resolved at 1.2.6
BUILD FAILURE 6.2 macosSpm