The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftTiktoken, reference 0.0.1 (e088d5), with Swift 6.2 for macOS (SPM) on 4 Feb 2026 07:19:24 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-tiktoken.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DePasqualeOrg/swift-tiktoken
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at e088d53 Initial commit
Cloned https://github.com/DePasqualeOrg/swift-tiktoken.git
Revision (git rev-parse @):
e088d534d80dd1875ca3edfd69a16a6c25ab84c4
SUCCESS checkout https://github.com/DePasqualeOrg/swift-tiktoken.git at 0.0.1
========================================
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-tiktoken",
      "name": "SwiftTiktoken",
      "url": "https://github.com/DePasqualeOrg/swift-tiktoken.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-tiktoken",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/DePasqualeOrg/swift-tiktoken.git
[1/37] Fetching swift-tiktoken
Fetched https://github.com/DePasqualeOrg/swift-tiktoken.git from cache (0.67s)
Creating working copy for https://github.com/DePasqualeOrg/swift-tiktoken.git
Working copy of https://github.com/DePasqualeOrg/swift-tiktoken.git resolved at 0.0.1 (e088d53)
warning: '.resolve-product-dependencies': dependency 'swift-tiktoken' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/DePasqualeOrg/swift-tiktoken.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[1/7] Write Benchmark-entitlement.plist
[1/7] Write sources
[3/7] Write swift-version-49B95AFC49DCD68C.txt
[5/12] Compiling SwiftTiktoken TiktokenError.swift
[6/12] Compiling SwiftTiktoken BytePairEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTiktoken/BytePairEncoding.swift:56:7: warning: variable 'partStart' was never mutated; consider changing to 'let' constant
 54 |   // - partPrev: index of the previous active part (-1 = start of list)
 55 |   let n = piece.count
 56 |   var partStart = ContiguousArray<Int>(unsafeUninitializedCapacity: n + 1) { buffer, count in
    |       `- warning: variable 'partStart' was never mutated; consider changing to 'let' constant
 57 |     for i in 0 ... n {
 58 |       buffer[i] = i
[7/12] Compiling SwiftTiktoken EncodingLoader.swift
[8/12] Emitting module SwiftTiktoken
[9/12] Compiling SwiftTiktoken CoreBPE.swift
[10/14] Emitting module Benchmark
[11/14] Compiling Benchmark main.swift
[11/14] Write Objects.LinkFileList
[12/14] Linking Benchmark
[13/14] Applying Benchmark
Build complete! (5.43s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftTiktoken",
  "name" : "SwiftTiktoken",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftTiktoken",
      "targets" : [
        "SwiftTiktoken"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Benchmark",
      "targets" : [
        "Benchmark"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftTiktokenTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTiktokenTests",
      "path" : "Tests/SwiftTiktokenTests",
      "sources" : [
        "SwiftTiktokenTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTiktoken"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTiktoken",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTiktoken",
      "path" : "Sources/SwiftTiktoken",
      "product_memberships" : [
        "SwiftTiktoken",
        "Benchmark"
      ],
      "sources" : [
        "BytePairEncoding.swift",
        "CoreBPE.swift",
        "EncodingLoader.swift",
        "TiktokenError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Benchmark",
      "module_type" : "SwiftTarget",
      "name" : "Benchmark",
      "path" : "Sources/Benchmark",
      "product_memberships" : [
        "Benchmark"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "SwiftTiktoken"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "6.2"
}
Done.