Build Information
Failed to build SwiftCPython, reference main (950944), with Swift 6.1 for macOS (SPM) on 10 Nov 2026 04:52:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build 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
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.1
Building package at path: $PWD
https://github.com/libswiftpy/cpython.git
https://github.com/libswiftpy/cpython.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftCPython",
"name" : "SwiftCPython",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Python",
"targets" : [
"Python"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "pyrun",
"targets" : [
"pyrun"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "pyrun",
"module_type" : "SwiftTarget",
"name" : "pyrun",
"path" : "Swift/Sources/pyrun",
"product_memberships" : [
"pyrun"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Python"
],
"type" : "executable"
},
{
"c99name" : "PythonTests",
"module_type" : "SwiftTarget",
"name" : "PythonTests",
"path" : "Swift/Tests/PythonTests",
"sources" : [
"PythonTests.swift"
],
"target_dependencies" : [
"Python"
],
"type" : "test"
},
{
"c99name" : "Python",
"module_type" : "SwiftTarget",
"name" : "Python",
"path" : "Swift/Sources/Python",
"product_memberships" : [
"Python",
"pyrun"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Swift/Sources/Python/PythonHome",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Python.swift",
"PythonOutput.swift"
],
"target_dependencies" : [
"CPython"
],
"type" : "library"
},
{
"c99name" : "CPython",
"module_type" : "SystemLibraryTarget",
"name" : "CPython",
"path" : "Swift/Sources/CPython",
"product_memberships" : [
"Python",
"pyrun"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/8] Write sources
[0/8] Write pyrun-entitlement.plist
[3/8] Copying PythonHome
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/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
[8/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
[9/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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/8] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] 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
[4/8] 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
[5/8] 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
BUILD FAILURE 6.1 macosSpm