The Swift Package Index logo.Swift Package Index

Build Information

Successful build of PrivateFoundationModels, reference main (29e093), with Swift 6.4 for macOS (SPM) on 25 Sep 2026 14:52:30 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/PrivateFoundationModels.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/john-rocky/PrivateFoundationModels
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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]
[Provisioning 6 / 93]
[Pre-planning 1 / 2091]
[Planning 1441 / 2091]
[Planning deferred tasks]
[Constructing 940 / 4757]
[Starting]
[124 / 1067] SwiftSyntaxBuilder
[383 / 1067] swift-crypto_Crypto
[389 / 1067]
[402 / 1075] _NumericsShims
[406 / 1085] yyjson
[415 / 1121]
[436 / 1121] SwiftSyntax510
[446 / 1121] SwiftSyntax600
[451 / 1121] ArgumentParserToolInfo
[465 / 1158]
[471 / 1172]
[488 / 1172] RealModule
[496 / 1172] InternalCollectionsUtilities
[502 / 1172]
[511 / 1173] SwiftSyntax
[524 / 1187] ComplexModule
[528 / 1198] OrderedCollections
[539 / 1210] ArgumentParser
[544 / 1221] SwiftSyntax
[546 / 1221]
[552 / 1221] SwiftSyntax
[555 / 1221] SwiftSyntax
[557 / 1221]
[559 / 1221]
[568 / 1221]
[569 / 1221]
[572 / 1221]
[575 / 1221] Jinja
[578 / 1221] ComplexModule
[581 / 1221] ComplexModule
[585 / 1221] OrderedCollections
[589 / 1225] Numerics
[599 / 1225]
[601 / 1237]
[607 / 1237] Crypto
[610 / 1237] EventSource
[617 / 1237] Crypto
[636 / 1237] Jinja-product
[637 / 1237] Jinja-product
[639 / 1237] Jinja
[640 / 1237] Jinja
[642 / 1237] EventSource-product
[645 / 1237] Crypto
[646 / 1237] SwiftSyntax
[653 / 1237] SwiftSyntax
[657 / 1237] EventSource
[660 / 1237] HuggingFace
[665 / 1237] ArgumentParser
[669 / 1237] ArgumentParser-product
[671 / 1237] encuda-product
[673 / 1237]
[682 / 1241] SwiftBasicFormat
[682 / 1241] Jinja
[685 / 1248] SwiftBasicFormat
[687 / 1270] SwiftParser
[703 / 1276] encuda-product
[706 / 1276] encuda-product
[711 / 1276] SwiftParser
[712 / 1276] SwiftParser
[715 / 1314]
[721 / 1314] SwiftParser
[732 / 1314]
[736 / 1314]
[741 / 1314]
[745 / 1314] SwiftDiagnostics
[749 / 1314] SwiftDiagnostics
[752 / 1314] SwiftOperators
[755 / 1314] SwiftDiagnostics
[760 / 1314] SwiftParserDiagnostics
[764 / 1314] ArgumentParser
[769 / 1316] SwiftBasicFormat
[775 / 1327] SwiftParserDiagnostics
[777 / 1338] SwiftParserDiagnostics
[780 / 1338] SwiftParserDiagnostics
[782 / 1338] SwiftOperators
[797 / 1338] SwiftSyntaxBuilder
[801 / 1338] SwiftOperators
[805 / 1338] SwiftOperators
[809 / 1338] HuggingFace
[814 / 1338] SwiftOperators
[816 / 1338] SwiftParserDiagnostics
[819 / 1338] HuggingFace
[821 / 1339]
[827 / 1340] HuggingFace
[830 / 1351] SwiftSyntaxBuilder
[831 / 1364] HuggingFace
[842 / 1364] MLX
[855 / 1364] HuggingFace
[858 / 1364] SwiftSyntaxBuilder
[862 / 1364] SwiftSyntaxBuilder
[865 / 1364] SwiftSyntaxBuilder
[869 / 1364] MLX
[871 / 1364] MLX
[872 / 1364] MLXNN
[873 / 1364] MLXNN
[876 / 1364] MLX
[879 / 1364] HuggingFace
[881 / 1365]
[886 / 1367] Cmlx
[888 / 1378] SwiftSyntaxMacros
[890 / 1389] MLXNN
[892 / 1391] Hub
[893 / 1461] SwiftSyntaxMacros
[902 / 1461]
[906 / 1461] Cmlx
[910 / 1461] MLXNN
[919 / 1461] Cmlx
[920 / 1461]
[922 / 1461]
[925 / 1461]
[928 / 1461]
[935 / 1461] Cmlx
[936 / 1461] Cmlx
[940 / 1461]
[945 / 1461]
[947 / 1461]
[950 / 1461]
[952 / 1461]
[954 / 1461]
[956 / 1461]
[959 / 1461]
[962 / 1461] Cmlx
[970 / 1461] Cmlx
[978 / 1461]
[979 / 1461]
[981 / 1461]
[983 / 1461] Cmlx
[986 / 1461]
[987 / 1461] Cmlx
[988 / 1461] Cmlx
[990 / 1461]
[992 / 1461]
[995 / 1461]
[1000 / 1461]
[1005 / 1461] Cmlx
[1007 / 1461] Cmlx
[1011 / 1461] Cmlx
[1012 / 1461]
[1013 / 1461]
[1014 / 1461]
[1016 / 1461] Cmlx
[1019 / 1461] Cmlx
[1020 / 1461] Cmlx
[1022 / 1461] Cmlx
[1023 / 1461]
[1024 / 1461] Cmlx
[1026 / 1461] Cmlx
[1029 / 1461] Cmlx
[1039 / 1461] Cmlx
[1040 / 1461] Cmlx
[1041 / 1461] Cmlx
[1042 / 1461] Cmlx
[1043 / 1461] Cmlx
[1044 / 1461] Cmlx
[1045 / 1461] Cmlx
[1048 / 1461] Cmlx
[1050 / 1461] Cmlx
[1052 / 1461] Cmlx
[1053 / 1461] Cmlx
[1055 / 1461] Cmlx
[1057 / 1461] Cmlx
[1058 / 1461] Cmlx
[1061 / 1461] Cmlx
[1062 / 1461] Cmlx
[1063 / 1461] Cmlx
[1064 / 1461] Cmlx
[1066 / 1461] Cmlx
[1067 / 1461] Cmlx
[1068 / 1461] Cmlx
[1069 / 1461] Cmlx
[1072 / 1461] Cmlx
[1074 / 1461] Cmlx
[1076 / 1461] Cmlx
[1077 / 1461] Cmlx
[1082 / 1461] Cmlx
[1086 / 1461] Cmlx
[1089 / 1461] Cmlx
[1090 / 1461] Cmlx
[1091 / 1461] Cmlx
[1093 / 1461] Cmlx
[1096 / 1461] Cmlx
[1097 / 1461] Cmlx
[1098 / 1461] Cmlx
[1100 / 1461] Cmlx
[1101 / 1461] Cmlx
[1102 / 1461] Cmlx
[1103 / 1461] Cmlx
[1105 / 1461] Cmlx
[1107 / 1461] Cmlx
[1108 / 1461] Cmlx
[1109 / 1461] Cmlx
[1112 / 1461] Cmlx
[1113 / 1461] Cmlx
[1115 / 1461] Cmlx
[1117 / 1461] Cmlx
[1118 / 1461] Cmlx
[1119 / 1461] Cmlx
[1120 / 1461] Cmlx
[1125 / 1461] Cmlx
[1128 / 1461] Cmlx
[1129 / 1461] Cmlx
[1130 / 1461] Cmlx
[1132 / 1461] Cmlx
[1134 / 1461] Cmlx
[1136 / 1461] Cmlx
[1137 / 1461] Cmlx
[1138 / 1461] Cmlx
[1141 / 1461] Cmlx
[1145 / 1461] Cmlx
[1146 / 1461] Cmlx
[1149 / 1461] SwiftSyntaxMacros
[1150 / 1461] SwiftSyntaxMacros-product
[1151 / 1461] SwiftSyntaxMacros-product
[1154 / 1461] SwiftSyntaxMacros
[1158 / 1461] SwiftSyntaxMacros
[1163 / 1461] MLXNN
[1167 / 1461] MLXNN
[1172 / 1461] MLX
[1174 / 1461] Hub
[1177 / 1461] Tokenizers
[1181 / 1462]
[1184 / 1463]
[1186 / 1464]
[1197 / 1495]
[1204 / 1495] SwiftSyntaxMacroExpansion
[1213 / 1508] MLXOptimizers
[1219 / 1519]
[1235 / 1519] Tokenizers
[1242 / 1519] Tokenizers
[1249 / 1519] Tokenizers-product
[1255 / 1519] SwiftSyntaxMacroExpansion
[1260 / 1519] MLXOptimizers-product
[1264 / 1520]
[1272 / 1522] SwiftSyntaxMacroExpansion
[1275 / 1522] Tokenizers
[1282 / 1533] SwiftCompilerPluginMessageHandling
[1283 / 1533] SwiftCompilerPluginMessageHandling
[1286 / 1533] Cmlx
[1296 / 1533]
[1297 / 1534] MLXLMCommon
[1304 / 1578]
[1308 / 1578]
[1315 / 1580]
[1327 / 1580] SwiftCompilerPlugin
[1346 / 1582]
[1347 / 1582]
[1347 / 1582] PFMMacros
[1357 / 1588] CoreMLLLM
[1364 / 1588] MLXLMCommon
[1365 / 1588] PFMMacros
[1373 / 1588] MLXLMCommon
[1375 / 1588] MLXVLM
[1378 / 1588] PFMMacros
[1380 / 1588] MLXHuggingFaceMacros
[1382 / 1588] CoreMLLLM
[1385 / 1588] CoreMLLLM
[1385 / 1588] Cmlx
[1388 / 1588] CoreMLLLM
[1389 / 1588] CoreMLLLM
[1390 / 1589]
[1400 / 1591] PrivateFoundationModels
[1400 / 1591]
[1402 / 1602] MLXVLM
[1403 / 1613] PrivateFoundationModels
[1404 / 1624] MLXLLM
[1407 / 1624] PrivateFoundationModels
[1409 / 1624] PrivateFoundationModels
[1413 / 1624] MLXVLM
[1423 / 1624] PrivateFoundationModels
[1432 / 1624] MLXVLM
[1435 / 1624] MLXVLM
[1437 / 1624] MLXLLM
[1438 / 1624] MLXLLM
[1440 / 1624] MLXLLM
[1447 / 1624] MLXLLM-product
[1449 / 1624] MLXLLM
[1450 / 1624] MLXLLM
[1453 / 1624] MLXVLM
[1456 / 1625] MLXLLM
[1458 / 1626] Cmlx
[1460 / 1627] CoreMLLLM
[1465 / 1640] PrivateFoundationModelsApple
[1467 / 1644] PFMDeepKit
[1476 / 1644]
[1488 / 1654] MLXEmbedders
[1490 / 1654] PrivateFoundationModelsCoreML
[1500 / 1654] MLXEmbedders
[1510 / 1654] PrivateFoundationModelsCoreML
[1521 / 1654]
[1537 / 1655] pfm-portability-product
[1542 / 1658]
[1543 / 1659]
[1545 / 1661] PFMBenchKit
[1553 / 1662] PFMDeepKit
[1555 / 1664] pfm-bench-coreml-product
[1563 / 1666] PFMServeKit
[1572 / 1668]
[1573 / 1669]
[1577 / 1675] pfm-verify-product
[1579 / 1680] pfm-apple-deep-product
[1581 / 1682] pfm-serve-coreml-product
[1590 / 1684] pfm-verify-product
[1602 / 1688] pfm-bench-coreml-product
[1607 / 1688] pfm-deep-product
[1614 / 1688]
[1617 / 1688] pfm-serve-apple-product
[1623 / 1688] MLXNN-product
[1638 / 1689] MLXEmbedders
[1642 / 1689] pfm-deep-product
[1648 / 1689] pfm-verify-product
[1649 / 1689] pfm-bench-coreml-product
[1650 / 1689] PrivateFoundationModelsMLX
[1655 / 1693] pfm-verify-product
[1674 / 1697] PrivateFoundationModelsMLX
[1677 / 1697] PrivateFoundationModelsMLX-product
[1677 / 1697] pfm-mlx-smoke-product
[1681 / 1704] pfm-mlx-deep-product
[1687 / 1705] pfm-mlx-deep-product
[1689 / 1705] pfm-serve-mlx-product
[1692 / 1705] pfm-serve-mlx-product
[1697 / 1705] pfm-bench-mlx-product
[1701 / 1705] pfm-bench-mlx-product
Build complete! (63.77 sec)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/ml-explore/mlx-swift-lm
Fetching https://github.com/john-rocky/CoreML-LLM
Fetching https://github.com/huggingface/swift-huggingface.git
[1/7027] Fetching swift-transformers
[2/13359] Fetching swift-transformers, coreml-llm
[1099/16112] Fetching swift-transformers, coreml-llm, swift-huggingface
[5309/96180] Fetching swift-transformers, coreml-llm, swift-huggingface, swift-syntax
[12349/117358] Fetching swift-transformers, coreml-llm, swift-huggingface, swift-syntax, mlx-swift-lm
Fetched https://github.com/john-rocky/CoreML-LLM (3.29s)
[21037/111026] Fetching swift-transformers, swift-huggingface, swift-syntax, mlx-swift-lm
Fetched https://github.com/huggingface/swift-huggingface.git (24.18s)
Fetched https://github.com/ml-explore/mlx-swift-lm (24.18s)
Fetched https://github.com/swiftlang/swift-syntax.git (24.18s)
Fetched https://github.com/huggingface/swift-transformers (24.18s)
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.59s)
Fetching https://github.com/ml-explore/mlx-swift
[1/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (3.08s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (6.07s)
Computing version for https://github.com/john-rocky/CoreML-LLM
Computed https://github.com/john-rocky/CoreML-LLM at 1.9.0 (0.54s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.60s)
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 (2.99s)
Fetched https://github.com/apple/swift-numerics (2.99s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (3.61s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
[129/18852] Fetching eventsource, swift-crypto
Fetched https://github.com/apple/swift-crypto.git (4.88s)
Fetched https://github.com/mattt/EventSource.git (4.88s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (5.50s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.59s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.60s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
[1/1376] Fetching swift-jinja
[332/6275] Fetching swift-jinja, yyjson
[993/33998] Fetching swift-jinja, yyjson, swift-collections
Fetched https://github.com/apple/swift-collections.git (5.40s)
Fetched https://github.com/huggingface/swift-jinja.git (5.40s)
Fetched https://github.com/ibireme/yyjson.git (5.40s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (6.07s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.53s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.64s)
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.16s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (1.92s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (2.63s)
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
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-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.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/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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
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/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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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/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/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
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: warning: 'as' is deprecated: Use `TypeSyntax.init` for upcasting [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
166 |         if let identifier = type.as(IdentifierTypeSyntax.self),
167 |            identifier.name.text == "Optional",
168 |            let inner = identifier.genericArgumentClause?.arguments.first?.argument.as(TypeSyntax.self) {
    |                                                                                    `- warning: 'as' is deprecated: Use `TypeSyntax.init` for upcasting [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
169 |             return (true, inner)
170 |         }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:224:13: warning: switch must be exhaustive
222 |         guard entries.count > seedCount else { return out }
223 |         for entry in entries.dropFirst(seedCount) {
224 |             switch entry {
    |             |- warning: switch must be exhaustive
    |             `- note: add missing case: '.reasoning(_)'
225 |             case .toolCalls(let calls):
226 |                 for call in calls {
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:258:13: warning: switch must be exhaustive
256 |     ) -> String {
257 |         segments.map { segment -> String in
258 |             switch segment {
    |             |- warning: switch must be exhaustive
    |             `- note: add missing case: '.attachment(_)'
259 |             case .text(let t): return t.content
260 |             case .structure(let s):
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsApple/AppleFoundationModelBackend.swift:485:26: warning: 'init(sampling:temperature:maximumResponseTokens:)' is deprecated: replaced by 'init(samplingMode:temperature:maximumResponseTokens:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
483 |         _ ours: PrivateFoundationModels.GenerationOptions
484 |     ) -> FoundationModels.GenerationOptions {
485 |         FoundationModels.GenerationOptions(
    |                          |- warning: 'init(sampling:temperature:maximumResponseTokens:)' is deprecated: replaced by 'init(samplingMode:temperature:maximumResponseTokens:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
    |                          `- note: use 'init(samplingMode:temperature:maximumResponseTokens:)' instead
486 |             sampling: ours.sampling.flatMap(Self.translateSampling),
487 |             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: warning: 'init(cString:)' is deprecated: Use String(decoding: array, as: UTF8.self) instead, after truncating the null termination. [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
274 |     var buffer = [CChar](repeating: 0, count: size)
275 |     sysctlbyname("machdep.cpu.brand_string", &buffer, &size, nil, 0)
276 |     return String(cString: buffer)
    |            `- warning: 'init(cString:)' is deprecated: Use String(decoding: array, as: UTF8.self) instead, after truncating the null termination. [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
277 | }
278 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/PrivateFoundationModelsMLX/MLXBackend.swift:39:26: warning: 'perform' is deprecated: prefer perform(_:) that uses a ModelContext [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 37 |
 38 |     public func tokenCount(_ text: String) async -> Int? {
 39 |         await underlying.perform { _, tokenizer in
    |                          `- warning: 'perform' is deprecated: prefer perform(_:) that uses a ModelContext [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 40 |             tokenizer.encode(text: text).count
 41 |         }
[#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.