Build Information
Failed to build LibPNG, reference master (c059e4
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 17:56:26 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/LuizZak/swift-libpng.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LuizZak/swift-libpng
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c059e4a Adding test for PNGFile.fromArgb
Cloned https://github.com/LuizZak/swift-libpng.git
Revision (git rev-parse @):
c059e4a34d0a84a2a1cc7eac8acdb8fa3ab8142f
SUCCESS checkout https://github.com/LuizZak/swift-libpng.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/LuizZak/swift-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
[3/5] Compiling LibPNG LibPNG+FromData.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
| `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
1 | import CLibPNG
| `- error: could not build Objective-C module 'CLibPNG'
2 |
3 | public extension PNGFile {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module LibPNG
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
| `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
1 | import CLibPNG
| `- error: could not build Objective-C module 'CLibPNG'
2 |
3 | public extension PNGFile {
[5/5] Compiling LibPNG LibPNG.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
| `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
1 | import CLibPNG
| `- error: could not build Objective-C module 'CLibPNG'
2 |
3 | public extension PNGFile {
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