The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LibPNG, reference master (c059e4), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 18:14:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "swift-libpng",
      "name": "LibPNG",
      "url": "https://github.com/LuizZak/swift-libpng.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-libpng",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LuizZak/swift-libpng.git
[1/76] Fetching swift-libpng
Fetched https://github.com/LuizZak/swift-libpng.git from cache (0.86s)
Creating working copy for https://github.com/LuizZak/swift-libpng.git
Working copy of https://github.com/LuizZak/swift-libpng.git resolved at master (c059e4a)
warning: '.resolve-product-dependencies': dependency 'swift-libpng' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/LuizZak/swift-libpng.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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 {
[4/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 {
[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.3 macosSpm