The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LibPNG with Swift 5.9 for macOS (SPM).

Build Command

env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KrakenCL/LibPNG.git
Reference: 0.0.3
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-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 into spi-builder-workspace
9941abff1c1683f0da3358a12f614bd7ce3b5780
SUCCESS checkout https://github.com/KrakenCL/LibPNG.git at 0.0.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64
Building ... (attempt 1)
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
Building for debugging...
[1/2] Compiling LibPNG LibPNG.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
  header "/usr/local/include/png.h"
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
import CPNG
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/2] Emitting module LibPNG
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
  header "/usr/local/include/png.h"
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
import CPNG
       ^
error: fatalError
Retrying in 0 seconds ...
Building ... (attempt 2)
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
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module LibPNG
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
  header "/usr/local/include/png.h"
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
import CPNG
       ^
[2/2] Compiling LibPNG LibPNG.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
  header "/usr/local/include/png.h"
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
import CPNG
       ^
error: fatalError
Retrying in 0 seconds ...
BUILD FAILURE 5.9 macosSpm