The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PythonBridge 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/gabrielnica/pythonbridge.git
Reference: 1.0.0
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/gabrielnica/pythonbridge
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 88fc646 swift version update
Cloned https://github.com/gabrielnica/pythonbridge.git into spi-builder-workspace
88fc646e0701ade38cbf237dd83443972c80f027
SUCCESS checkout https://github.com/gabrielnica/pythonbridge.git at 1.0.0
========================================
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 python-2.7 using your system-packager:
    brew install python
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module PythonBridge
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
[2/2] Compiling PythonBridge PythonBridge.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
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 python-2.7 using your system-packager:
    brew install python
[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 PythonBridge
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
[2/2] Compiling PythonBridge PythonBridge.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
error: fatalError
Retrying in 0 seconds ...
BUILD FAILURE 5.9 macosSpm

Build Machine: Mac 5