Build Information
Failed to build gld-avro-swift, reference 0.2.0 (ac8125), with Swift 6.3 for macOS (SPM) on 16 Oct 2026 14:10:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leo-gan/gld-avro-swift.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/leo-gan/gld-avro-swift
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at ac81254 Bump version to 0.2.0 (#2)
Cloned https://github.com/leo-gan/gld-avro-swift.git
Revision (git rev-parse @):
ac81254f210d4f9b1298f9130c497bb05b154d03
SUCCESS checkout https://github.com/leo-gan/gld-avro-swift.git at 0.2.0
========================================
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 gld-avrogen-swift-entitlement.plist
[4/17] Write avro-bench-entitlement.plist
[4/17] Write sources
[4/17] Write encode-record-entitlement.plist
[7/17] Write swift-version-69A768CDF2A0BEE1.txt
[9/33] Compiling Avro SOE.swift
[10/33] Compiling Avro Schema.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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/34] Compiling Avro JSON.swift
[14/34] Compiling Avro JSONCodec.swift
[15/34] Compiling Avro Logical.swift
[16/34] Compiling Avro OCF.swift
[17/34] Compiling Avro Facade.swift
[18/34] Compiling Avro Fingerprint.swift
[19/34] Compiling Avro Deflate.swift
[20/34] Compiling Avro Error.swift
[21/34] Compiling Avro Canonical.swift
[22/34] Compiling Avro Codegen.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