The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCPython, reference main (950944), with Swift 6.2 for macOS (SPM) on 10 Nov 2026 01:16:28 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/libswiftpy/cpython.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/libswiftpy/cpython
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 950944f Add a minimal Swift package that embeds CPython
Updating files:  96% (6058/6249)
Updating files:  97% (6062/6249)
Updating files:  98% (6125/6249)
Updating files:  99% (6187/6249)
Updating files: 100% (6249/6249)
Updating files: 100% (6249/6249), done.
Cloned https://github.com/libswiftpy/cpython.git
Revision (git rev-parse @):
950944f0f3aaeaa1cc9dee6b583d83d6567e6514
SUCCESS checkout https://github.com/libswiftpy/cpython.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/libswiftpy/cpython.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[1/8] Write pyrun-entitlement.plist
[3/8] Copying PythonHome
[4/8] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Emitting module Python
<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/Swift/Sources/CPython/shim.h:13:10: error: '../../.cpython-dist/include/python/Python.h' file not found
11 | #include "../../.cpython-dist-iphoneos/include/python/Python.h"
12 | #else
13 | #include "../../.cpython-dist/include/python/Python.h"
   |          `- error: '../../.cpython-dist/include/python/Python.h' file not found
14 | #endif
15 |
/Users/admin/builder/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build Objective-C module 'CPython'
  1 | import CPython
    |        `- error: could not build Objective-C module 'CPython'
  2 |
  3 | import Foundation
[7/12] Compiling Python Python.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/Swift/Sources/CPython/shim.h:13:10: error: '../../.cpython-dist/include/python/Python.h' file not found
11 | #include "../../.cpython-dist-iphoneos/include/python/Python.h"
12 | #else
13 | #include "../../.cpython-dist/include/python/Python.h"
   |          `- error: '../../.cpython-dist/include/python/Python.h' file not found
14 | #endif
15 |
/Users/admin/builder/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build Objective-C module 'CPython'
  1 | import CPython
    |        `- error: could not build Objective-C module 'CPython'
  2 |
  3 | import Foundation
[8/12] Compiling Python PythonOutput.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/Swift/Sources/CPython/shim.h:13:10: error: '../../.cpython-dist/include/python/Python.h' file not found
11 | #include "../../.cpython-dist-iphoneos/include/python/Python.h"
12 | #else
13 | #include "../../.cpython-dist/include/python/Python.h"
   |          `- error: '../../.cpython-dist/include/python/Python.h' file not found
14 | #endif
15 |
/Users/admin/builder/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build Objective-C module 'CPython'
  1 | import CPython
    |        `- error: could not build Objective-C module 'CPython'
  2 |
  3 | import Foundation
[9/12] Compiling Python resource_bundle_accessor.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/Swift/Sources/CPython/shim.h:13:10: error: '../../.cpython-dist/include/python/Python.h' file not found
11 | #include "../../.cpython-dist-iphoneos/include/python/Python.h"
12 | #else
13 | #include "../../.cpython-dist/include/python/Python.h"
   |          `- error: '../../.cpython-dist/include/python/Python.h' file not found
14 | #endif
15 |
/Users/admin/builder/spi-builder-workspace/Swift/Sources/Python/Python.swift:1:8: error: could not build Objective-C module 'CPython'
  1 | import CPython
    |        `- error: could not build Objective-C module 'CPython'
  2 |
  3 | import Foundation
BUILD FAILURE 6.2 macosSpm