Build Information
Successful build of PrivateFoundationModels, reference v0.11.0 (29e093), with Swift 6.4 for macOS (SPM) on 25 Sep 2026 14:52:46 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/PrivateFoundationModels.git
Reference: v0.11.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/john-rocky/PrivateFoundationModels
* tag v0.11.0 -> FETCH_HEAD
HEAD is now at 29e0939 v0.11.0: LoRA / DoRA adapter loading on the MLX backend
Cloned https://github.com/john-rocky/PrivateFoundationModels.git
Revision (git rev-parse @):
29e0939d21ebc11535f7a0b985c6211af5524299
SUCCESS checkout https://github.com/john-rocky/PrivateFoundationModels.git at v0.11.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/john-rocky/PrivateFoundationModels.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 2091]
[Planning 1431 / 2091]
[Planning deferred tasks]
[Constructing 1112 / 4757]
[Starting]
[145 / 1067] SwiftSyntax509
[385 / 1067] swift-transformers_Hub
[389 / 1067]
[402 / 1075] _NumericsShims
[406 / 1085] yyjson
[421 / 1121]
[446 / 1121] SwiftSyntax
[452 / 1121] ArgumentParserToolInfo
[458 / 1121] EventSource
[466 / 1172]
[482 / 1172] InternalCollectionsUtilities
[493 / 1172]
[498 / 1172]
[507 / 1172]
[516 / 1176]
[522 / 1187] InternalCollectionsUtilities
[527 / 1198] OrderedCollections
[530 / 1198] ComplexModule
[541 / 1221] OrderedCollections
[545 / 1221]
[549 / 1221] SwiftSyntax
[554 / 1221] SwiftSyntax
[556 / 1221]
[559 / 1221] OrderedCollections
[561 / 1221] OrderedCollections
[568 / 1221]
[571 / 1221] SwiftSyntax
[572 / 1221] OrderedCollections
[574 / 1221] OrderedCollections-product
[578 / 1221]
[582 / 1221] ComplexModule
[587 / 1222]
[592 / 1225] Numerics
[600 / 1225] Jinja
[601 / 1237]
[606 / 1237] Crypto
[609 / 1237] EventSource
[616 / 1237] Jinja
[617 / 1237] Crypto
[630 / 1237] Jinja
[631 / 1237] Jinja
[633 / 1237] Jinja
[640 / 1237] Jinja
[641 / 1237] Jinja-product
[642 / 1237] Jinja-product
[646 / 1237] SwiftSyntax
[653 / 1237] SwiftSyntax-product
[654 / 1237] SwiftSyntax-product
[657 / 1237] HuggingFace
[663 / 1237] ArgumentParser
[669 / 1237] Crypto
[673 / 1237]
[676 / 1238]
[680 / 1244] encuda-product
[682 / 1244] encuda-product
[684 / 1245]
[689 / 1246] ArgumentParser
[696 / 1259] SwiftDiagnostics
[699 / 1276] SwiftBasicFormat
[702 / 1276] SwiftDiagnostics
[709 / 1276] SwiftBasicFormat
[711 / 1276] SwiftBasicFormat
[718 / 1314]
[725 / 1314] SwiftParser
[736 / 1314]
[743 / 1314]
[748 / 1314] SwiftDiagnostics
[751 / 1314] SwiftDiagnostics
[755 / 1314] SwiftDiagnostics
[757 / 1314] SwiftOperators
[762 / 1314] SwiftBasicFormat
[763 / 1314] SwiftParserDiagnostics
[766 / 1314]
[778 / 1317] Cmlx
[780 / 1317] Cmlx
[784 / 1339] Cmlx
[788 / 1352] SwiftOperators
[798 / 1352] SwiftParserDiagnostics
[803 / 1352] Cmlx
[806 / 1352] Cmlx
[815 / 1352] Cmlx
[817 / 1352] Cmlx
[820 / 1352] Cmlx
[822 / 1352] Cmlx
[823 / 1352] HuggingFace
[833 / 1352] Cmlx
[841 / 1352] Cmlx
[846 / 1352] Cmlx
[847 / 1352] Cmlx
[850 / 1352] Cmlx
[851 / 1352] Cmlx
[852 / 1352] Cmlx
[857 / 1352] Cmlx
[860 / 1352] Cmlx
[862 / 1352] Cmlx
[864 / 1352] Cmlx
[865 / 1352] Cmlx
[868 / 1352] Cmlx
[872 / 1352] Cmlx
[873 / 1352] Cmlx
[876 / 1352] Cmlx
[877 / 1352] Cmlx
[879 / 1352] Cmlx
[880 / 1352] Cmlx
[881 / 1352] Cmlx
[882 / 1352] Cmlx
[886 / 1352] Cmlx
[887 / 1352] Cmlx
[888 / 1352] Cmlx
[889 / 1352] Cmlx
[892 / 1352] Cmlx
[893 / 1352] Cmlx
[894 / 1352] Cmlx
[895 / 1352] Cmlx
[897 / 1352] Cmlx
[898 / 1352] Cmlx
[899 / 1352] Cmlx
[900 / 1352] Cmlx
[901 / 1352] Cmlx
[903 / 1352] Cmlx
[904 / 1352] Cmlx
[905 / 1352] Cmlx
[906 / 1352] Cmlx
[909 / 1352] Cmlx
[911 / 1352] Cmlx
[913 / 1352] Cmlx
[914 / 1352] Cmlx
[916 / 1352] Cmlx
[919 / 1352] Cmlx
[922 / 1352] Cmlx
[925 / 1352] Cmlx
[927 / 1352] Cmlx
[928 / 1352] Cmlx
[929 / 1352] Cmlx
[930 / 1352] Cmlx
[933 / 1352] Cmlx
[935 / 1352] Cmlx
[936 / 1352] Cmlx
[937 / 1352] Cmlx
[938 / 1352] Cmlx
[939 / 1352] Cmlx
[940 / 1352] Cmlx
[941 / 1352] Cmlx
[943 / 1352] Cmlx
[944 / 1352] Cmlx
[946 / 1352] Cmlx
[949 / 1352] Cmlx
[950 / 1352] Cmlx
[952 / 1352] Cmlx
[954 / 1352] Cmlx
[955 / 1352] Cmlx
[956 / 1352] Cmlx
[958 / 1352] Cmlx
[962 / 1352] Cmlx
[965 / 1352] Cmlx
[966 / 1352] Cmlx
[967 / 1352] Cmlx
[970 / 1352] Cmlx
[971 / 1352] Cmlx
[974 / 1352] Cmlx
[975 / 1352] Cmlx
[979 / 1352] Cmlx
[981 / 1352] Cmlx
[982 / 1352] Cmlx
[983 / 1352] Cmlx
[985 / 1352] SwiftSyntax
[987 / 1352] SwiftSyntax
[988 / 1352] SwiftParserDiagnostics
[988 / 1352] SwiftSyntax
[991 / 1352] SwiftParserDiagnostics
[992 / 1352] SwiftSyntaxBuilder
[996 / 1352] SwiftParserDiagnostics
[998 / 1352] SwiftOperators
[1001 / 1352] SwiftOperators
[1003 / 1352] SwiftOperators
[1009 / 1352] MLX
[1011 / 1352] MLXNN
[1015 / 1352] MLX
[1018 / 1352] SwiftParserDiagnostics
[1023 / 1352] HuggingFace
[1024 / 1352] HuggingFace-product
[1026 / 1352] HuggingFace-product
[1028 / 1352] HuggingFace
[1029 / 1352] Hub
[1030 / 1352] Hub
[1031 / 1352]
[1044 / 1383] HuggingFace
[1047 / 1383]
[1050 / 1383]
[1051 / 1383] HuggingFace
[1057 / 1383]
[1057 / 1383] mlx-swift_Cmlx
[1061 / 1385]
[1066 / 1385] SwiftParser
[1071 / 1386]
[1074 / 1386]
[1079 / 1386] SwiftSyntaxBuilder
[1084 / 1408] MLXNN
[1085 / 1408] SwiftSyntaxBuilder
[1090 / 1475]
[1092 / 1480]
[1105 / 1480]
[1111 / 1480] MLXNN
[1116 / 1480] MLXNN
[1125 / 1480]
[1130 / 1480]
[1138 / 1480]
[1139 / 1480]
[1143 / 1480]
[1145 / 1481]
[1146 / 1482] MLXNN
[1151 / 1482]
[1153 / 1482]
[1163 / 1496]
[1169 / 1496] SwiftSyntaxMacros
[1187 / 1498] SwiftSyntaxMacros
[1190 / 1498]
[1194 / 1498]
[1203 / 1508]
[1208 / 1508]
[1210 / 1508] SwiftSyntaxMacroExpansion
[1217 / 1509] SwiftSyntaxMacroExpansion
[1218 / 1509] SwiftSyntaxMacroExpansion
[1224 / 1530] SwiftCompilerPluginMessageHandling
[1232 / 1541]
[1237 / 1541]
[1243 / 1541]
[1258 / 1541] SwiftCompilerPluginMessageHandling
[1261 / 1542]
[1263 / 1542] SwiftCompilerPluginMessageHandling
[1265 / 1542]
[1269 / 1544]
[1284 / 1544] SwiftCompilerPlugin-product
[1288 / 1544] MLXLMCommon
[1289 / 1544] MLXLMCommon
[1300 / 1545] mlx-swift_Cmlx
[1304 / 1547]
[1320 / 1549]
[1322 / 1549] Hub
[1323 / 1560] MLXVLM
[1325 / 1574] PFMMacros
[1328 / 1587] PFMMacros
[1339 / 1587] MLXVLM
[1344 / 1587] MLXEmbedders
[1350 / 1587] MLXEmbedders
[1353 / 1587] PFMMacros
[1355 / 1587] PFMMacros
[1357 / 1587] MLXVLM
[1364 / 1587] MLXVLM-product
[1366 / 1587] MLXLLM
[1373 / 1587] MLXLLM-product
[1376 / 1587] MLXLLM
[1378 / 1587] MLXLLM
[1379 / 1587] MLXLLM
[1380 / 1587] MLXVLM
[1382 / 1587] MLXEmbedders
[1383 / 1587] MLXHuggingFaceMacros
[1387 / 1587] MLXEmbedders
[1388 / 1587] MLXEmbedders-product
[1393 / 1587] Hub
[1395 / 1587] Tokenizers
[1397 / 1587]
[1399 / 1588]
[1402 / 1588]
[1408 / 1590] MLXOptimizers
[1411 / 1590] MLXEmbedders
[1411 / 1590] MLXLLM
[1421 / 1601] PrivateFoundationModels
[1423 / 1612] Tokenizers
[1428 / 1614] Tokenizers
[1429 / 1614] Tokenizers
[1433 / 1614] Tokenizers
[1441 / 1614] Tokenizers-product
[1449 / 1614]
[1453 / 1618]
[1460 / 1619] MLXLLM-product
[1463 / 1620]
[1467 / 1626] PrivateFoundationModels
[1472 / 1630]
[1477 / 1630] PrivateFoundationModelsApple
[1500 / 1653] PFMServeKit
[1511 / 1653] pfm-bench-apple-product
[1517 / 1655]
[1521 / 1660] pfm-apple-deep-product
[1525 / 1660] PrivateFoundationModelsMLX
[1529 / 1660]
[1538 / 1664] pfm-bench-apple-product
[1555 / 1667]
[1557 / 1668] PrivateFoundationModels
[1561 / 1670]
[1566 / 1670] PrivateFoundationModelsApple
[1567 / 1670] PrivateFoundationModels-product
[1570 / 1670] Tokenizers
[1573 / 1670] PrivateFoundationModelsMLX-product
[1577 / 1670] pfm-serve-apple-product
[1579 / 1672] pfm-apple-deep-product
[1580 / 1674] pfm-apple-smoke-product
[1586 / 1682] pfm-bench-mlx-product
[1591 / 1682] pfm-mlx-deep-product
[1594 / 1682] pfm-serve-mlx-product
[1597 / 1682] pfm-serve-mlx-product
[1603 / 1682] pfm-mlx-deep-product
[1607 / 1682] pfm-mlx-smoke-product
[1608 / 1682] pfm-serve-mlx-product
[1612 / 1682] pfm-apple-smoke-product
[1612 / 1682] pfm-apple-deep-product
[1614 / 1682] CoreMLLLM
[1615 / 1682]
[1627 / 1682] pfm-apple-deep-product
[1632 / 1682]
[1636 / 1683] pfm-bench-mlx-product
[1637 / 1683] CoreMLLLM
[1639 / 1689]
[1639 / 1689] CoreMLLLM
[1639 / 1689]
[1643 / 1689] PrivateFoundationModelsCoreML
[1664 / 1694]
[1664 / 1694] PrivateFoundationModelsCoreML
[1665 / 1694] pfm-serve-coreml-product
[1667 / 1696] pfm-serve-coreml-product
[1677 / 1705] pfm-bench-coreml-product
[1678 / 1705] pfm-serve-coreml-product
[1681 / 1705] pfm-deep-product
[1684 / 1705] pfm-portability-product
[1685 / 1705] pfm-verify-product
[1686 / 1705] CoreMLLLM
[1695 / 1705] PrivateFoundationModelsCoreML-product
[1695 / 1705] pfm-verify-product
[1704 / 1705] pfm-bench-coreml-product
Build complete! (74.78 sec)
Fetching https://github.com/john-rocky/CoreML-LLM
Fetching https://github.com/ml-explore/mlx-swift-lm
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/huggingface/swift-transformers
[1/6332] Fetching coreml-llm
[2/13359] Fetching coreml-llm, swift-transformers
[143/16112] Fetching coreml-llm, swift-transformers, swift-huggingface
[14720/96180] Fetching coreml-llm, swift-transformers, swift-huggingface, swift-syntax
[17715/117358] Fetching coreml-llm, swift-transformers, swift-huggingface, swift-syntax, mlx-swift-lm
Fetched https://github.com/john-rocky/CoreML-LLM (6.43s)
Fetched https://github.com/ml-explore/mlx-swift-lm (6.43s)
[23535/89848] Fetching swift-transformers, swift-huggingface, swift-syntax
Fetched https://github.com/huggingface/swift-transformers (23.06s)
Fetched https://github.com/huggingface/swift-huggingface.git (23.06s)
Fetched https://github.com/swiftlang/swift-syntax.git (23.06s)
Computing version for https://github.com/ml-explore/mlx-swift-lm
Computed https://github.com/ml-explore/mlx-swift-lm at 3.31.3 (0.60s)
Fetching https://github.com/ml-explore/mlx-swift
[1/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (4.56s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (7.51s)
Computing version for https://github.com/john-rocky/CoreML-LLM
Computed https://github.com/john-rocky/CoreML-LLM at 1.9.0 (0.59s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.65s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/18941] Fetching swift-argument-parser
[191/25581] Fetching swift-argument-parser, swift-numerics
Fetched https://github.com/apple/swift-argument-parser (3.20s)
Fetched https://github.com/apple/swift-numerics (3.20s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (3.89s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
[14/18852] Fetching eventsource, swift-crypto
Fetched https://github.com/apple/swift-crypto.git (5.98s)
Fetched https://github.com/mattt/EventSource.git (5.98s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (6.57s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.55s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.57s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/huggingface/swift-jinja.git
[1/1376] Fetching swift-jinja
[401/6275] Fetching swift-jinja, yyjson
[1007/33998] Fetching swift-jinja, yyjson, swift-collections
Fetched https://github.com/huggingface/swift-jinja.git (5.04s)
Fetched https://github.com/ibireme/yyjson.git (5.04s)
Fetched https://github.com/apple/swift-collections.git (5.04s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (5.73s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.55s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (2.21s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (2.03s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (2.73s)
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/john-rocky/CoreML-LLM
Working copy of https://github.com/john-rocky/CoreML-LLM resolved at 1.9.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/ml-explore/mlx-swift-lm
Working copy of https://github.com/ml-explore/mlx-swift-lm resolved at 3.31.3
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.6
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.11.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
warning: missing creator for mutated node: ('/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/mlx-swift_Cmlx.bundle/Contents/MacOS')
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal:6:
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/kernels/steel_attention.h:3:
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/attn.h:6:
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/../../steel/attn/mma.h:11:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/../../steel/utils/integral_constant.h:108:6: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (start < stop) {
^
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal:6:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/kernels/steel_attention.h:356:16: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (is_bool) {
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/kernels/steel_attention.h:426:14: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (BD == 128) {
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/../../../steel/attn/kernels/steel_attention.h:436:14: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
if constexpr (BD == 128) {
^
4 warnings generated.
/Users/admin/builder/spi-builder-workspace/Sources/PFMMacros/GenerableMacro.swift:168:84: [1;33mwarning: [1;39m'as' is deprecated: Use `TypeSyntax.init` for upcasting[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m166 |[0;0m if let identifier = type.as(IdentifierTypeSyntax.self),
[0;36m167 |[0;0m identifier.name.text == "Optional",
[0;36m168 |[0;0m let inner = identifier.genericArgumentClause?.arguments.first?.argument.as(TypeSyntax.self) {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'as' is deprecated: Use `TypeSyntax.init` for upcasting[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m169 |[0;0m return (true, inner)
[0;36m170 |[0;0m }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:224:13: [1;33mwarning: [1;39mswitch must be exhaustive[0;0m
[0;36m222 |[0;0m guard entries.count > seedCount else { return out }
[0;36m223 |[0;0m for entry in entries.dropFirst(seedCount) {
[0;36m224 |[0;0m switch entry {
[0;36m|[0;0m |- [1;33mwarning: [1;39mswitch must be exhaustive[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39madd missing case: '.reasoning(_)'[0;0m
[0;36m225 |[0;0m case .toolCalls(let calls):
[0;36m226 |[0;0m for call in calls {
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:258:13: [1;33mwarning: [1;39mswitch must be exhaustive[0;0m
[0;36m256 |[0;0m ) -> String {
[0;36m257 |[0;0m segments.map { segment -> String in
[0;36m258 |[0;0m switch segment {
[0;36m|[0;0m |- [1;33mwarning: [1;39mswitch must be exhaustive[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39madd missing case: '.attachment(_)'[0;0m
[0;36m259 |[0;0m case .text(let t): return t.content
[0;36m260 |[0;0m case .structure(let s):
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:485:26: [1;33mwarning: [1;39m'init(sampling:temperature:maximumResponseTokens:)' is deprecated: replaced by 'init(samplingMode:temperature:maximumResponseTokens:)'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m483 |[0;0m _ ours: PrivateFoundationModels.GenerationOptions
[0;36m484 |[0;0m ) -> FoundationModels.GenerationOptions {
[0;36m485 |[0;0m FoundationModels.GenerationOptions(
[0;36m|[0;0m |- [1;33mwarning: [1;39m'init(sampling:temperature:maximumResponseTokens:)' is deprecated: replaced by 'init(samplingMode:temperature:maximumResponseTokens:)'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39muse 'init(samplingMode:temperature:maximumResponseTokens:)' instead[0;0m
[0;36m486 |[0;0m sampling: ours.sampling.flatMap(Self.translateSampling),
[0;36m487 |[0;0m temperature: ours.temperature,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/PFMBenchKit/PFMBenchKit.swift:276:12: [1;33mwarning: [1;39m'init(cString:)' is deprecated: Use String(decoding: array, as: UTF8.self) instead, after truncating the null termination.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m274 |[0;0m var buffer = [CChar](repeating: 0, count: size)
[0;36m275 |[0;0m sysctlbyname("machdep.cpu.brand_string", &buffer, &size, nil, 0)
[0;36m276 |[0;0m return String(cString: buffer)
[0;36m|[0;0m `- [1;33mwarning: [1;39m'init(cString:)' is deprecated: Use String(decoding: array, as: UTF8.self) instead, after truncating the null termination.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m277 |[0;0m }
[0;36m278 |[0;0m
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsMLX/MLXBackend.swift:39:26: [1;33mwarning: [1;39m'perform' is deprecated: prefer perform(_:) that uses a ModelContext[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m37 |[0;0m
[0;36m38 |[0;0m public func tokenCount(_ text: String) async -> Int? {
[0;36m39 |[0;0m await underlying.perform { _, tokenizer in
[0;36m|[0;0m `- [1;33mwarning: [1;39m'perform' is deprecated: prefer perform(_:) that uses a ModelContext[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m40 |[0;0m tokenizer.encode(text: text).count
[0;36m41 |[0;0m }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
"dependencies" : [
{
"identity" : "coreml-llm",
"requirement" : {
"range" : [
{
"lower_bound" : "1.8.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/john-rocky/CoreML-LLM"
},
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "600.0.0",
"upper_bound" : "601.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "mlx-swift-lm",
"requirement" : {
"range" : [
{
"lower_bound" : "3.31.3",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ml-explore/mlx-swift-lm"
},
{
"identity" : "swift-huggingface",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-huggingface.git"
}
],
"manifest_display_name" : "PrivateFoundationModels",
"name" : "PrivateFoundationModels",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "visionos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "PrivateFoundationModels",
"targets" : [
"PrivateFoundationModels"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PrivateFoundationModelsCoreML",
"targets" : [
"PrivateFoundationModelsCoreML"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PrivateFoundationModelsMLX",
"targets" : [
"PrivateFoundationModelsMLX"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PrivateFoundationModelsApple",
"targets" : [
"PrivateFoundationModelsApple"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "pfm-verify",
"targets" : [
"PFMVerify"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-portability",
"targets" : [
"PFMPortability"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-deep",
"targets" : [
"PFMDeep"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-mlx-smoke",
"targets" : [
"PFMMLXSmoke"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-mlx-deep",
"targets" : [
"PFMMLXDeep"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-serve-apple",
"targets" : [
"PFMServeApple"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-serve-coreml",
"targets" : [
"PFMServeCoreML"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-serve-mlx",
"targets" : [
"PFMServeMLX"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-apple-smoke",
"targets" : [
"PFMAppleSmoke"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-apple-deep",
"targets" : [
"PFMAppleDeep"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-bench-apple",
"targets" : [
"PFMBenchApple"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-bench-coreml",
"targets" : [
"PFMBenchCoreML"
],
"type" : {
"executable" : null
}
},
{
"name" : "pfm-bench-mlx",
"targets" : [
"PFMBenchMLX"
],
"type" : {
"executable" : null
}
},
{
"name" : "PFMMacros",
"targets" : [
"PFMMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "PrivateFoundationModelsTests",
"module_type" : "SwiftTarget",
"name" : "PrivateFoundationModelsTests",
"path" : "Tests/PrivateFoundationModelsTests",
"sources" : [
"AttachmentTests.swift",
"GenerableDeepTests.swift",
"GenerableMacroTests.swift",
"GenerableTests.swift",
"GenerationOptionsTests.swift",
"InstructionsTests.swift",
"PartialJSONParserTests.swift",
"PromptAndGuardrailsTests.swift",
"SessionTests.swift",
"StubBackend.swift",
"SystemLanguageModelTests.swift",
"ToolsDeepTests.swift",
"TranscriptTests.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "test"
},
{
"c99name" : "PrivateFoundationModelsMLX",
"module_type" : "SwiftTarget",
"name" : "PrivateFoundationModelsMLX",
"path" : "Sources/PrivateFoundationModelsMLX",
"product_dependencies" : [
"MLXLLM",
"MLXVLM",
"MLXEmbedders",
"MLXLMCommon",
"MLXHuggingFace",
"Tokenizers",
"HuggingFace"
],
"product_memberships" : [
"PrivateFoundationModelsMLX",
"pfm-mlx-smoke",
"pfm-mlx-deep",
"pfm-serve-mlx",
"pfm-bench-mlx"
],
"sources" : [
"MLXBackend.swift",
"MLXEmbedder.swift",
"MLXLanguageModel.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PrivateFoundationModelsCoreML",
"module_type" : "SwiftTarget",
"name" : "PrivateFoundationModelsCoreML",
"path" : "Sources/PrivateFoundationModelsCoreML",
"product_dependencies" : [
"CoreMLLLM",
"Tokenizers"
],
"product_memberships" : [
"PrivateFoundationModelsCoreML",
"pfm-verify",
"pfm-portability",
"pfm-deep",
"pfm-serve-coreml",
"pfm-bench-coreml"
],
"sources" : [
"CoreMLLanguageModel.swift",
"HFFetcher.swift",
"Qwen3Backend.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PrivateFoundationModelsApple",
"module_type" : "SwiftTarget",
"name" : "PrivateFoundationModelsApple",
"path" : "Sources/PrivateFoundationModelsApple",
"product_memberships" : [
"PrivateFoundationModelsApple",
"pfm-serve-apple",
"pfm-apple-smoke",
"pfm-apple-deep",
"pfm-bench-apple"
],
"sources" : [
"AppleFoundationModelBackend.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PrivateFoundationModels",
"module_type" : "SwiftTarget",
"name" : "PrivateFoundationModels",
"path" : "Sources/PrivateFoundationModels",
"product_memberships" : [
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML",
"PrivateFoundationModelsMLX",
"PrivateFoundationModelsApple",
"pfm-verify",
"pfm-portability",
"pfm-deep",
"pfm-mlx-smoke",
"pfm-mlx-deep",
"pfm-serve-apple",
"pfm-serve-coreml",
"pfm-serve-mlx",
"pfm-apple-smoke",
"pfm-apple-deep",
"pfm-bench-apple",
"pfm-bench-coreml",
"pfm-bench-mlx"
],
"sources" : [
"AppleParity.swift",
"BackendAttachment.swift",
"EmbeddingBackend.swift",
"Generable.swift",
"GenerableMacro.swift",
"GenerationError.swift",
"GenerationOptions.swift",
"Guardrails.swift",
"Instructions.swift",
"JSONExtraction.swift",
"LanguageModelBackend.swift",
"LanguageModelSession.swift",
"PartialJSONParser.swift",
"Prompt.swift",
"Response.swift",
"ResponseStream.swift",
"SystemLanguageModel.swift",
"Tool.swift",
"Transcript.swift"
],
"target_dependencies" : [
"PFMMacros"
],
"type" : "library"
},
{
"c99name" : "PFMVerify",
"module_type" : "SwiftTarget",
"name" : "PFMVerify",
"path" : "Sources/PFMVerify",
"product_memberships" : [
"pfm-verify"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML"
],
"type" : "executable"
},
{
"c99name" : "PFMServeMLX",
"module_type" : "SwiftTarget",
"name" : "PFMServeMLX",
"path" : "Sources/PFMServeMLX",
"product_memberships" : [
"pfm-serve-mlx"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMServeKit",
"PrivateFoundationModels",
"PrivateFoundationModelsMLX"
],
"type" : "executable"
},
{
"c99name" : "PFMServeKit",
"module_type" : "SwiftTarget",
"name" : "PFMServeKit",
"path" : "Sources/PFMServeKit",
"product_memberships" : [
"pfm-serve-apple",
"pfm-serve-coreml",
"pfm-serve-mlx"
],
"sources" : [
"PFMServeKit.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PFMServeCoreML",
"module_type" : "SwiftTarget",
"name" : "PFMServeCoreML",
"path" : "Sources/PFMServeCoreML",
"product_memberships" : [
"pfm-serve-coreml"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMServeKit",
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML"
],
"type" : "executable"
},
{
"c99name" : "PFMServeApple",
"module_type" : "SwiftTarget",
"name" : "PFMServeApple",
"path" : "Sources/PFMServeApple",
"product_memberships" : [
"pfm-serve-apple"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMServeKit",
"PrivateFoundationModels",
"PrivateFoundationModelsApple"
],
"type" : "executable"
},
{
"c99name" : "PFMPortability",
"module_type" : "SwiftTarget",
"name" : "PFMPortability",
"path" : "Sources/PFMPortability",
"product_memberships" : [
"pfm-portability"
],
"sources" : [
"AppleFMCode.swift",
"PortabilityMain.swift"
],
"target_dependencies" : [
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML"
],
"type" : "executable"
},
{
"c99name" : "PFMMacros",
"module_type" : "SwiftTarget",
"name" : "PFMMacros",
"path" : "Sources/PFMMacros",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML",
"PrivateFoundationModelsMLX",
"PrivateFoundationModelsApple",
"pfm-verify",
"pfm-portability",
"pfm-deep",
"pfm-mlx-smoke",
"pfm-mlx-deep",
"pfm-serve-apple",
"pfm-serve-coreml",
"pfm-serve-mlx",
"pfm-apple-smoke",
"pfm-apple-deep",
"pfm-bench-apple",
"pfm-bench-coreml",
"pfm-bench-mlx",
"PFMMacros"
],
"sources" : [
"GenerableMacro.swift",
"GuideMacro.swift",
"Plugin.swift"
],
"type" : "macro"
},
{
"c99name" : "PFMMLXSmoke",
"module_type" : "SwiftTarget",
"name" : "PFMMLXSmoke",
"path" : "Sources/PFMMLXSmoke",
"product_memberships" : [
"pfm-mlx-smoke"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PrivateFoundationModels",
"PrivateFoundationModelsMLX"
],
"type" : "executable"
},
{
"c99name" : "PFMMLXDeep",
"module_type" : "SwiftTarget",
"name" : "PFMMLXDeep",
"path" : "Sources/PFMMLXDeep",
"product_memberships" : [
"pfm-mlx-deep"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMDeepKit",
"PrivateFoundationModels",
"PrivateFoundationModelsMLX"
],
"type" : "executable"
},
{
"c99name" : "PFMDeepKit",
"module_type" : "SwiftTarget",
"name" : "PFMDeepKit",
"path" : "Sources/PFMDeepKit",
"product_memberships" : [
"pfm-deep",
"pfm-mlx-deep",
"pfm-apple-deep"
],
"sources" : [
"PFMDeepKit.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PFMDeep",
"module_type" : "SwiftTarget",
"name" : "PFMDeep",
"path" : "Sources/PFMDeep",
"product_memberships" : [
"pfm-deep"
],
"sources" : [
"DeepMain.swift"
],
"target_dependencies" : [
"PFMDeepKit",
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML"
],
"type" : "executable"
},
{
"c99name" : "PFMBenchMLX",
"module_type" : "SwiftTarget",
"name" : "PFMBenchMLX",
"path" : "Sources/PFMBenchMLX",
"product_memberships" : [
"pfm-bench-mlx"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMBenchKit",
"PrivateFoundationModels",
"PrivateFoundationModelsMLX"
],
"type" : "executable"
},
{
"c99name" : "PFMBenchKit",
"module_type" : "SwiftTarget",
"name" : "PFMBenchKit",
"path" : "Sources/PFMBenchKit",
"product_memberships" : [
"pfm-bench-apple",
"pfm-bench-coreml",
"pfm-bench-mlx"
],
"sources" : [
"PFMBenchKit.swift"
],
"target_dependencies" : [
"PrivateFoundationModels"
],
"type" : "library"
},
{
"c99name" : "PFMBenchCoreML",
"module_type" : "SwiftTarget",
"name" : "PFMBenchCoreML",
"path" : "Sources/PFMBenchCoreML",
"product_memberships" : [
"pfm-bench-coreml"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMBenchKit",
"PrivateFoundationModels",
"PrivateFoundationModelsCoreML"
],
"type" : "executable"
},
{
"c99name" : "PFMBenchApple",
"module_type" : "SwiftTarget",
"name" : "PFMBenchApple",
"path" : "Sources/PFMBenchApple",
"product_memberships" : [
"pfm-bench-apple"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMBenchKit",
"PrivateFoundationModels",
"PrivateFoundationModelsApple"
],
"type" : "executable"
},
{
"c99name" : "PFMAppleSmoke",
"module_type" : "SwiftTarget",
"name" : "PFMAppleSmoke",
"path" : "Sources/PFMAppleSmoke",
"product_memberships" : [
"pfm-apple-smoke"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PrivateFoundationModels",
"PrivateFoundationModelsApple"
],
"type" : "executable"
},
{
"c99name" : "PFMAppleDeep",
"module_type" : "SwiftTarget",
"name" : "PFMAppleDeep",
"path" : "Sources/PFMAppleDeep",
"product_memberships" : [
"pfm-apple-deep"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"PFMDeepKit",
"PrivateFoundationModels",
"PrivateFoundationModelsApple"
],
"type" : "executable"
}
],
"tools_version" : "6.0"
}
Done.