The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build LibPNG, reference master (c059e4), with Swift 5.8 for macOS (SPM) on 1 Jul 2024 07:20:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.44.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:             5.8
Building package at path:  $workDir
https://github.com/LuizZak/swift-libpng.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/3] Emitting module LibPNG
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "libpng.h"
        ^
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
#include <png.h>
         ^
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
import CLibPNG
       ^
[2/3] Compiling LibPNG LibPNG.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "libpng.h"
        ^
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
#include <png.h>
         ^
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
import CLibPNG
       ^
[3/3] Compiling LibPNG LibPNG+FromData.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "libpng.h"
        ^
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
#include <png.h>
         ^
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
import CLibPNG
       ^
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Tests/LibPNGTests/TestResources/test.png
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
BUILD FAILURE 5.8 macosSpm