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 6.1 for macOS (SPM) on 1 May 2025 02:06:30 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats

Build Log

========================================
RunAll
========================================
Builder version: 4.61.2
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-safetensors",
      "name": "swift-safetensors",
      "url": "https://github.com/jkrukowski/swift-safetensors.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-safetensors",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jkrukowski/swift-safetensors.git
[1/200] Fetching swift-safetensors
Fetched https://github.com/jkrukowski/swift-safetensors.git from cache (0.64s)
Creating working copy for https://github.com/jkrukowski/swift-safetensors.git
Working copy of https://github.com/jkrukowski/swift-safetensors.git resolved at main (02f8e83)
warning: '.resolve-product-dependencies': dependency 'swift-safetensors' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jkrukowski/swift-safetensors.git
https://github.com/jkrukowski/swift-safetensors.git
{
  "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" : "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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/13] Compiling Safetensors TensorData.swift
[4/13] Compiling Safetensors SafetensorsEncodable.swift
[5/13] Compiling Safetensors MLTensor.swift
[6/13] Compiling Safetensors OffsetRange.swift
[7/13] Compiling Safetensors ParsedSafetensorsIndex.swift
[8/13] Compiling Safetensors Safetensors.swift
[9/13] Compiling Safetensors ParsedSafetensors.swift
[10/13] Compiling Safetensors HeaderElement.swift
[11/14] Emitting module Safetensors
[12/14] Compiling Safetensors MLMultiArray.swift
[13/14] Compiling Safetensors MLShapedArray.swift
[14/14] Compiling Safetensors Utils.swift
Build complete! (7.14s)
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" : "6.0"
}
Done.