The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build PerfectPCRE2, reference 3.1.0 (5c04d8), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 02:46:30 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/rockfordwei/perfect-pcre2.git
Reference: 3.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rockfordwei/perfect-pcre2
 * tag               3.1.0      -> FETCH_HEAD
HEAD is now at 5c04d84 upgrading to swift 4.2
Cloned https://github.com/rockfordwei/perfect-pcre2.git
Revision (git rev-parse @):
5c04d84b93dafe52393910dd79352f8e7860f367
SUCCESS checkout https://github.com/rockfordwei/perfect-pcre2.git at 3.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/rockfordwei/perfect-pcre2.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 PerfectPCRE2
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "pcre2api.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build Objective-C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build Objective-C module 'pcre2api'
  2 | import Foundation
  3 |
[4/4] Compiling PerfectPCRE2 PerfectPCRE2.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "pcre2api.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build Objective-C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build Objective-C module 'pcre2api'
  2 | import Foundation
  3 |
BUILD FAILURE 6.2 macosSpm