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

Successful build of swift-safetensors, reference main (02f8e8), with Swift 5.10 for macOS (SPM) on 23 Mar 2025 21:33:55 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkrukowski/swift-safetensors.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jkrukowski/swift-safetensors
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 02f8e83 Added sharding support
Cloned https://github.com/jkrukowski/swift-safetensors.git
Revision (git rev-parse @):
02f8e83e16c3334aaf55fc64fb0ab12e82f527bc
SUCCESS checkout https://github.com/jkrukowski/swift-safetensors.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/jkrukowski/swift-safetensors.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/13] Compiling Safetensors TensorData.swift
[4/14] Compiling Safetensors ParsedSafetensorsIndex.swift
[5/14] Compiling Safetensors ParsedSafetensors.swift
[6/14] Compiling Safetensors OffsetRange.swift
[7/14] Compiling Safetensors HeaderElement.swift
[8/14] Compiling Safetensors SafetensorsEncodable.swift
[9/14] Compiling Safetensors MLTensor.swift
[10/14] Compiling Safetensors MLMultiArray.swift
[11/14] Compiling Safetensors MLShapedArray.swift
[12/14] Emitting module Safetensors
[13/14] Compiling Safetensors Safetensors.swift
[14/14] Compiling Safetensors Utils.swift
Build complete! (5.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-safetensors",
  "name" : "swift-safetensors",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Safetensors",
      "targets" : [
        "Safetensors"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SafetensorsTests",
      "module_type" : "SwiftTarget",
      "name" : "SafetensorsTests",
      "path" : "Tests/SafetensorsTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SafetensorsTests/data.safetensors",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "MLMultiArrayTests.swift",
        "MLShapedArrayTests.swift",
        "MLTensorTests.swift",
        "SafetensorTests.swift",
        "ShardingTests.swift",
        "TestUtils.swift"
      ],
      "target_dependencies" : [
        "Safetensors"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Safetensors",
      "module_type" : "SwiftTarget",
      "name" : "Safetensors",
      "path" : "Sources/Safetensors",
      "product_memberships" : [
        "Safetensors"
      ],
      "sources" : [
        "Backend/MLMultiArray.swift",
        "Backend/MLShapedArray.swift",
        "Backend/MLTensor.swift",
        "Backend/SafetensorsEncodable.swift",
        "HeaderElement.swift",
        "OffsetRange.swift",
        "ParsedSafetensors.swift",
        "ParsedSafetensorsIndex.swift",
        "Safetensors.swift",
        "TensorData.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.