Build Information
Successful build of xgrammar, reference v0.2.8 (977873), with Swift 6.2 for macOS (SPM) on 29 Sep 2026 16:29:55 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mlc-ai/xgrammar.git
Reference: v0.2.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mlc-ai/xgrammar
* tag v0.2.8 -> FETCH_HEAD
HEAD is now at 9778737 feat: support MiMo-V2.6 Pro and Flash structural tags (#916)
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 @):
97787376faee5ed8466cfad57c99855e4ce2f6aa
SUCCESS checkout https://github.com/mlc-ai/xgrammar.git at v0.2.8
========================================
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/28] Compiling kimi_k3.cc
[1/28] Compiling glm.cc
[1/28] Compiling qwen.cc
[1/28] Compiling minimax.cc
[1/28] Compiling deepseek.cc
[3/28] Compiling minimax_m3.cc
[4/28] Compiling tokenizer_info.cc
[7/28] Compiling earley_parser.cc
[8/28] Compiling fsm_builder.cc
[9/28] Compiling logging.cc
[10/28] Compiling recursion_guard.cc
[11/28] Compiling fsm.cc
[12/28] Compiling regex_converter.cc
[13/28] Compiling suffix_automata.cc
[14/28] Compiling testing.cc
[15/28] Compiling grammar_printer.cc
[16/28] Compiling grammar_builder.cc
[17/28] Compiling grammar_parser.cc
[18/28] Compiling lark_converter.cc
[19/28] Compiling config.cc
[20/28] Compiling grammar.cc
[21/28] Compiling cohere.cc
[22/28] Compiling grammar_compiler.cc
[23/28] Compiling grammar_matcher.cc
[24/28] Compiling grammar_functor.cc
[25/28] Compiling json_schema_converter.cc
[26/28] Compiling structural_tag.cc
[27/28] Compiling compiled_grammar.cc
Build complete! (6.38s)
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/glm.cc",
"cpp/converter_ext/kimi_k3.cc",
"cpp/converter_ext/minimax.cc",
"cpp/converter_ext/minimax_m3.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.