Build Information
Failed to build LibPNG, reference 0.0.3 (9941ab
), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 13:52:12 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/KrakenCL/LibPNG.git
Reference: 0.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KrakenCL/LibPNG
* tag 0.0.3 -> FETCH_HEAD
HEAD is now at 9941abf Improve normalization.
Cloned https://github.com/KrakenCL/LibPNG.git
Revision (git rev-parse @):
9941abff1c1683f0da3358a12f614bd7ce3b5780
SUCCESS checkout https://github.com/KrakenCL/LibPNG.git at 0.0.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/KrakenCL/LibPNG.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/4] Emitting module LibPNG
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
[4/4] Compiling LibPNG LibPNG.swift
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libpng using your system-packager:
brew install libpng
warning: you may be able to install libpng using your system-packager:
brew install libpng
BUILD FAILURE 6.2 macosSpm