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 PythonKit, reference 0.0.1 (977002), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 23:48:54 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/kongzii/PythonKit.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kongzii/PythonKit
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 977002d Versioned LoggerKit
Cloned https://github.com/kongzii/PythonKit.git
Revision (git rev-parse @):
977002d1f5cad96c84360d0ad4496ec614c58975
SUCCESS checkout https://github.com/kongzii/PythonKit.git at 0.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kongzii/PythonKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/10] Write sources
[2/10] Write PythonTool-entitlement.plist
[2/10] Write sources
[6/10] Write swift-version-1EA4D86E10B52AF.txt
[8/54] Compiling PythonKit PythonLibrary+Symbols.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/54] Compiling PythonKit PythonLibrary.swift
[10/54] Compiling PythonKit NumpyConversion.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/NumpyConversion.swift:140:34: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
138 |         dummyPointer.deallocate()
139 |         withUnsafeMutableBufferPointer { buffPtr in
140 |             buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
    |                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
    |                                  `- note: use 'update(from:count:)' instead
141 |         }
142 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[11/54] Emitting module PythonKit
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[12/54] Compiling PythonKit Python.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
Fetching https://github.com/kongzii/LoggerKit.git
Fetching https://github.com/apple/swift-argument-parser
[1/369] Fetching loggerkit
[370/15749] Fetching loggerkit, swift-argument-parser
Fetched https://github.com/kongzii/LoggerKit.git from cache (1.52s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.52s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (2.03s)
Fetching https://github.com/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.91s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (1.44s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (1.93s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.6
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
Creating working copy for https://github.com/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0
BUILD FAILURE 6.2 macosSpm