The Swift Package Index logo.Swift Package Index

Build Information

Failed to build gld-avro-swift, reference main (cbfa00), with Swift 6.3 for macOS (SPM) on 7 Nov 2026 02:16:41 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.5.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/leo-gan/gld-avro-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/leo-gan/gld-avro-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cbfa003 Link the Serialization hub from the README (#5)
Cloned https://github.com/leo-gan/gld-avro-swift.git
Revision (git rev-parse @):
cbfa003c3dc837568f37e0a04b7d7c528449b111
SUCCESS checkout https://github.com/leo-gan/gld-avro-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/leo-gan/gld-avro-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
Building for debugging...
[0/17] Write sources
[3/17] Write avro-bench-entitlement.plist
[4/17] Write sources
[4/17] Write gld-avrogen-swift-entitlement.plist
[6/17] Write encode-record-entitlement.plist
[7/17] Write swift-version-69A768CDF2A0BEE1.txt
[9/33] Compiling Avro Schema.swift
[10/33] Compiling Avro SOE.swift
[11/34] Compiling Avro Resolve.swift
[12/34] Compiling Avro Wire.swift
/Users/admin/builder/spi-builder-workspace/src/Avro/Wire.swift:331:16: error: 'init(unsafeUninitializedCapacity:initializingUTF8With:)' is only available in macOS 11.0 or newer
319 | }
320 |
321 | func utf8String(_ bytes: ArraySlice<UInt8>) -> String? {
    |      `- note: add '@available' attribute to enclosing global function
322 |     var index = bytes.startIndex
323 |     let end = bytes.endIndex
    :
329 |         let count = bytes.count
330 |         if count == 0 { return "" }
331 |         return String(unsafeUninitializedCapacity: count) { buffer in
    |                |- error: 'init(unsafeUninitializedCapacity:initializingUTF8With:)' is only available in macOS 11.0 or newer
    |                `- note: add 'if #available' version check
332 |             var cursor = 0
333 |             for byte in bytes {
[13/34] Compiling Avro Logical.swift
[14/34] Compiling Avro OCF.swift
[15/34] Compiling Avro JSON.swift
[16/34] Compiling Avro JSONCodec.swift
[17/34] Compiling Avro Facade.swift
[18/34] Compiling Avro Fingerprint.swift
[19/34] Compiling Avro Canonical.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/34] Compiling Avro Codegen.swift
[21/34] Compiling Avro Deflate.swift
[22/34] Compiling Avro Error.swift
[23/34] Emitting module Avro
/Users/admin/builder/spi-builder-workspace/src/Avro/Generic.swift:14:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 12 |     var key = pthread_key_t()
 13 |     pthread_key_create(&key) { pointer in
 14 |         guard let pointer else { return }
    |               `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 15 |         Unmanaged<EncoderScratch>.fromOpaque(pointer).release()
 16 |     }
[24/34] Compiling Avro Generic.swift
/Users/admin/builder/spi-builder-workspace/src/Avro/Generic.swift:14:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 12 |     var key = pthread_key_t()
 13 |     pthread_key_create(&key) { pointer in
 14 |         guard let pointer else { return }
    |               `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 15 |         Unmanaged<EncoderScratch>.fromOpaque(pointer).release()
 16 |     }
[25/34] Compiling Avro IDL.swift
/Users/admin/builder/spi-builder-workspace/src/Avro/Generic.swift:14:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 12 |     var key = pthread_key_t()
 13 |     pthread_key_create(&key) { pointer in
 14 |         guard let pointer else { return }
    |               `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
 15 |         Unmanaged<EncoderScratch>.fromOpaque(pointer).release()
 16 |     }
BUILD FAILURE 6.3 macosSpm