The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectMongoDB, reference main (490f49), with Swift 6.3 for macOS (SPM) on 8 Oct 2026 18:46:52 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-mongodb.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-mongodb
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 490f490 Merge pull request #33 from PerfectlySoft/legacy-shim-edge-cases
Cloned https://github.com/perfectlysoft/perfect-mongodb.git
Revision (git rev-parse @):
490f490fc64822be673ba464b5e0da647ffda2da
SUCCESS checkout https://github.com/perfectlysoft/perfect-mongodb.git at main
========================================
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": "perfect-mongodb",
      "name": "PerfectMongoDB",
      "url": "https://github.com/perfectlysoft/perfect-mongodb.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/perfect-mongodb",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/perfectlysoft/perfect-mongodb.git
[1/1229] Fetching perfect-mongodb
Fetched https://github.com/perfectlysoft/perfect-mongodb.git from cache (1.12s)
Creating working copy for https://github.com/perfectlysoft/perfect-mongodb.git
Working copy of https://github.com/perfectlysoft/perfect-mongodb.git resolved at main (490f490)
warning: '.resolve-product-dependencies': dependency 'perfect-mongodb' 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/perfectlysoft/perfect-mongodb.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-69A768CDF2A0BEE1.txt
[3/13] Compiling PerfectMongoDB MongoGridFS.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[4/13] Compiling PerfectMongoDB MongoDatabase.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[5/14] Compiling PerfectMongoDB MongoJSONConvertables.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/14] Emitting module PerfectMongoDB
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[7/14] Compiling PerfectMongoDB MongoConnectionPool.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[8/14] Compiling PerfectMongoDB MongoAsync.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[9/14] Compiling PerfectMongoDB MongoCollectionCodable.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[10/14] Compiling PerfectMongoDB MongoClient.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[11/14] Compiling PerfectMongoDB MongoCursor.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[12/14] Compiling PerfectMongoDB MongoCollection.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[13/14] Compiling PerfectMongoDB BSON.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[14/14] Compiling PerfectMongoDB BSONCodable.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
 1 | #define BCON_H_
 2 | #include <bson/bson.h>
   |          `- error: 'bson/bson.h' file not found
 3 |
 4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install bson2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install mongoc2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install bson2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install mongoc2 using your system-packager:
    brew install mongo-c-driver
BUILD FAILURE 6.3 macosSpm