The Swift Package Index logo.Swift Package Index

Build Information

Failed to build gld-avro-swift, reference 0.2.0 (ac8125), with Swift 6.1 for macOS (SPM) on 16 Oct 2026 14:13:05 UTC.

Build Command

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

Build 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.1
Building package at path:  $PWD
https://github.com/leo-gan/gld-avro-swift.git
https://github.com/leo-gan/gld-avro-swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "gld-avro-swift",
  "name" : "gld-avro-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Avro",
      "targets" : [
        "Avro"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "gld-avrogen-swift",
      "targets" : [
        "gld-avrogen-swift"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "avro-bench",
      "targets" : [
        "avro-bench"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "encode-record",
      "targets" : [
        "encode-record"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "gld_avrogen_swift",
      "module_type" : "SwiftTarget",
      "name" : "gld-avrogen-swift",
      "path" : "src/gld-avrogen-swift",
      "product_memberships" : [
        "gld-avrogen-swift"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Avro"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "encode_record",
      "module_type" : "SwiftTarget",
      "name" : "encode-record",
      "path" : "examples",
      "product_memberships" : [
        "encode-record"
      ],
      "sources" : [
        "EncodeRecord.swift"
      ],
      "target_dependencies" : [
        "Avro"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "avro_bench",
      "module_type" : "SwiftTarget",
      "name" : "avro-bench",
      "path" : "benches",
      "product_memberships" : [
        "avro-bench"
      ],
      "sources" : [
        "Bench.swift"
      ],
      "target_dependencies" : [
        "Avro"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AvroTests",
      "module_type" : "SwiftTarget",
      "name" : "AvroTests",
      "path" : "tests",
      "sources" : [
        "AvroTests.swift",
        "generated/A.swift",
        "generated/AvroRootUnion.swift",
        "generated/B.swift",
        "generated/LongList.swift",
        "generated/Node.swift",
        "generated/Node_payload.swift",
        "generated/ex_Color.swift",
        "generated/ex_Hash4.swift",
        "generated/ex_Inner.swift",
        "generated/ex_Kitchen.swift"
      ],
      "target_dependencies" : [
        "Avro"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Avro",
      "module_type" : "SwiftTarget",
      "name" : "Avro",
      "path" : "src/Avro",
      "product_memberships" : [
        "Avro",
        "gld-avrogen-swift",
        "avro-bench",
        "encode-record"
      ],
      "sources" : [
        "Canonical.swift",
        "Codegen.swift",
        "Deflate.swift",
        "Error.swift",
        "Facade.swift",
        "Fingerprint.swift",
        "Generic.swift",
        "IDL.swift",
        "JSON.swift",
        "JSONCodec.swift",
        "Logical.swift",
        "OCF.swift",
        "Resolve.swift",
        "SOE.swift",
        "Schema.swift",
        "Wire.swift"
      ],
      "type" : "library"
    }
  ],
  "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/17] Write sources
[4/17] Write gld-avrogen-swift-entitlement.plist
[4/17] Write encode-record-entitlement.plist
[6/17] Write avro-bench-entitlement.plist
[7/17] Write swift-version-2F0A5646E1D333AE.txt
[9/33] Compiling Avro SOE.swift
[10/34] Compiling Avro Resolve.swift
[11/34] Compiling Avro Schema.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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 |     }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/10] Write swift-version-2F0A5646E1D333AE.txt
[2/26] Compiling Avro Logical.swift
[3/26] Compiling Avro OCF.swift
[4/26] Compiling Avro SOE.swift
[5/26] Compiling Avro Schema.swift
[6/26] Compiling Avro Resolve.swift
[7/26] Compiling Avro JSON.swift
[8/26] Compiling Avro JSONCodec.swift
[9/27] Compiling Avro Facade.swift
[10/27] Compiling Avro Fingerprint.swift
[11/27] 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 |     }
[12/27] 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 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/27] Compiling Avro Canonical.swift
[14/27] Compiling Avro Codegen.swift
[15/27] Compiling Avro Deflate.swift
[16/27] Compiling Avro Error.swift
[17/27] 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 |     }
[18/27] 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 {
BUILD FAILURE 6.1 macosSpm