The Swift Package Index logo.Swift Package Index

Build Information

Successful build of xgrammar, reference main (3fe393), with Swift 6.2 for macOS (SPM) on 21 Nov 2026 01:08:41 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mlc-ai/xgrammar.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mlc-ai/xgrammar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3fe3932 feat: add Muse Spark structural tag and muse_xml style (#1079)
Submodule path '3rdparty/cpptrace': checked out '6689d14c203eed390ae7bb64f56a983cfd7dff9c'
Submodule path '3rdparty/dlpack': checked out 'bbd2f4d32427e548797929af08cfe2a9cbb3cf12'
Submodule path '3rdparty/googletest': checked out 'df1544bcee0c7ce35cd5ea0b3eb8cc81855a4140'
Submodule '3rdparty/cpptrace' (https://github.com/jeremy-rifkin/cpptrace.git) registered for path '3rdparty/cpptrace'
Submodule '3rdparty/dlpack' (https://github.com/dmlc/dlpack.git) registered for path '3rdparty/dlpack'
Submodule '3rdparty/googletest' (https://github.com/google/googletest.git) registered for path '3rdparty/googletest'
Cloning into '/Users/admin/builder/spi-builder-workspace/3rdparty/cpptrace'...
Cloning into '/Users/admin/builder/spi-builder-workspace/3rdparty/dlpack'...
Cloning into '/Users/admin/builder/spi-builder-workspace/3rdparty/googletest'...
Cloned https://github.com/mlc-ai/xgrammar.git
Revision (git rev-parse @):
3fe39321a6f24c90c2cc4fa4519b87e22367bcfc
SUCCESS checkout https://github.com/mlc-ai/xgrammar.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mlc-ai/xgrammar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/30] Compiling logging.cc
[1/30] Compiling recursion_guard.cc
[2/30] Compiling config.cc
[3/30] Compiling glm.cc
[4/30] Compiling testing.cc
[5/30] Compiling deepseek.cc
[6/30] Compiling tokenizer_info.cc
[7/30] Compiling regex_converter.cc
[8/30] Compiling suffix_automata.cc
[9/30] Compiling cohere.cc
[10/30] Compiling gemma.cc
[11/30] Compiling compiled_grammar.cc
[12/30] Compiling grammar_printer.cc
[13/30] Compiling grammar_builder.cc
[14/30] Compiling grammar_parser.cc
[15/30] Compiling lark_converter.cc
[16/30] Compiling grammar_matcher.cc
[17/30] Compiling grammar.cc
[18/30] Compiling grammar_compiler.cc
[19/30] Compiling grammar_functor.cc
[20/30] Compiling fsm_builder.cc
[21/30] Compiling structural_tag.cc
[22/30] Compiling qwen.cc
[23/30] Compiling earley_parser.cc
[24/30] Compiling json_schema_converter.cc
[25/30] Compiling fsm.cc
[26/30] Compiling minimax.cc
[27/30] Compiling kimi_k3.cc
[28/30] Compiling muse.cc
[29/30] Compiling minimax_m3.cc
Build complete! (8.03s)
Build complete.
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "xgrammar",
  "name" : "xgrammar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "XGrammar",
      "targets" : [
        "XGrammar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XGrammar",
      "module_type" : "ClangTarget",
      "name" : "XGrammar",
      "path" : ".",
      "product_memberships" : [
        "XGrammar"
      ],
      "sources" : [
        "cpp/compiled_grammar.cc",
        "cpp/config.cc",
        "cpp/converter_ext/cohere.cc",
        "cpp/converter_ext/deepseek.cc",
        "cpp/converter_ext/gemma.cc",
        "cpp/converter_ext/glm.cc",
        "cpp/converter_ext/kimi_k3.cc",
        "cpp/converter_ext/minimax.cc",
        "cpp/converter_ext/minimax_m3.cc",
        "cpp/converter_ext/muse.cc",
        "cpp/converter_ext/qwen.cc",
        "cpp/earley_parser.cc",
        "cpp/fsm.cc",
        "cpp/fsm_builder.cc",
        "cpp/grammar.cc",
        "cpp/grammar_builder.cc",
        "cpp/grammar_compiler.cc",
        "cpp/grammar_functor.cc",
        "cpp/grammar_matcher.cc",
        "cpp/grammar_parser.cc",
        "cpp/grammar_printer.cc",
        "cpp/json_schema_converter.cc",
        "cpp/lark_converter.cc",
        "cpp/regex_converter.cc",
        "cpp/structural_tag.cc",
        "cpp/suffix_automata.cc",
        "cpp/support/logging.cc",
        "cpp/support/recursion_guard.cc",
        "cpp/testing.cc",
        "cpp/tokenizer_info.cc"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.