The Swift Package Index logo.Swift Package Index

Build Information

Failed to build x11-example, reference master (143d4a), with Swift 6.2 for macOS (SPM) on 17 Jun 2025 23:44:11 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/terhechte/swift-x11-example.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/terhechte/swift-x11-example
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 143d4ab Merge pull request #3 from aestesis/master
Cloned https://github.com/terhechte/swift-x11-example.git
Revision (git rev-parse @):
143d4abfd517fdca5500b04783479df07ed97429
SUCCESS checkout https://github.com/terhechte/swift-x11-example.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/terhechte/swift-x11-example.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[1/6] Write x11-example-entitlement.plist
[2/6] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module DEMO
/Users/admin/builder/spi-builder-workspace/.build/checkouts/X11/module.modulemap:4:16: error: header '/usr/include/X11/Xlib.h' not found
 2 |     header "macros.h"
 3 |     module Xlib {
 4 |         header "/usr/include/X11/Xlib.h"
   |                `- error: header '/usr/include/X11/Xlib.h' not found
 5 |     }
 6 |     module X {
/Users/admin/builder/spi-builder-workspace/main.swift:1:8: error: could not build Objective-C module 'X11'
 1 | import X11.Xlib
   |        `- error: could not build Objective-C module 'X11'
 2 | import X11.X
 3 |
[5/8] Compiling DEMO main.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/X11/module.modulemap:4:16: error: header '/usr/include/X11/Xlib.h' not found
 2 |     header "macros.h"
 3 |     module Xlib {
 4 |         header "/usr/include/X11/Xlib.h"
   |                `- error: header '/usr/include/X11/Xlib.h' not found
 5 |     }
 6 |     module X {
/Users/admin/builder/spi-builder-workspace/main.swift:1:8: error: could not build Objective-C module 'X11'
 1 | import X11.Xlib
   |        `- error: could not build Objective-C module 'X11'
 2 | import X11.X
 3 |
Fetching https://github.com/aestesis/X11.git
[1/35] Fetching x11
Fetched https://github.com/aestesis/X11.git from cache (0.49s)
Computing version for https://github.com/aestesis/X11.git
Computed https://github.com/aestesis/X11.git at 1.0.2 (1.03s)
Creating working copy for https://github.com/aestesis/X11.git
Working copy of https://github.com/aestesis/X11.git resolved at 1.0.2
warning: 'x11': ignoring declared target(s) 'X11' in the system package
BUILD FAILURE 6.2 macosSpm