Build Information
Successful build of mlx-libraries, reference main (378f24), with Swift 6.4 for macOS (SPM) on 23 Sep 2026 05:25:00 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/ml-explore/mlx-swift-examples.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ml-explore/mlx-swift-examples
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 378f244 MLXChatExample: fix VLM image handling on iOS (PhotosPicker, EXIF, empty assistant trim) (#472)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
378f2449c257788c5067b9f8b086731d76b39b33
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1011]
[Planning deferred tasks]
[Starting]
[33 / 603] StableDiffusion
[200 / 603] swift-crypto_Crypto
[202 / 603]
[213 / 609] system-zlib
[217 / 613] RealModule
[234 / 649] RealModule
[236 / 649] ArgumentParserToolInfo
[250 / 649] RealModule
[251 / 649]
[256 / 731] Crypto
[275 / 735]
[284 / 735] OrderedCollections
[292 / 735] InternalCollectionsUtilities
[300 / 735]
[308 / 736]
[316 / 749]
[321 / 760] OrderedCollections
[323 / 760] ComplexModule
[331 / 771] OrderedCollections
[335 / 771] OrderedCollections
[340 / 771]
[351 / 771]
[356 / 771] ComplexModule
[362 / 771]
[372 / 774]
[393 / 775]
[395 / 775] OrderedCollections
[396 / 775]
[400 / 789]
[401 / 789]
[404 / 789]
[414 / 789] Gzip
[418 / 789] EventSource
[432 / 789] Crypto
[441 / 789] ArgumentParser
[452 / 789] Jinja-product
[454 / 789] Jinja-product
[455 / 789] Jinja-product
[457 / 789] Gzip
[458 / 789] Gzip-product
[460 / 789] EventSource-product
[467 / 789] Crypto
[471 / 789] Gzip
[473 / 789] ArgumentParser
[485 / 789]
[487 / 791] ArgumentParser
[493 / 797] encuda-product
[494 / 797] encuda-product
[495 / 797] ArgumentParser
[508 / 835]
[513 / 835]
[517 / 835]
[519 / 835] encuda-product
[535 / 836] Cmlx
[539 / 836] Cmlx
[540 / 836]
[541 / 849]
[543 / 849] Cmlx
[545 / 849] Cmlx
[546 / 849]
[549 / 849] Cmlx
[550 / 849] HuggingFace
[553 / 849] Cmlx
[555 / 849] Cmlx
[556 / 849] MLX
[558 / 849] MLX
[567 / 849] Cmlx
[571 / 849] Cmlx
[578 / 849] Cmlx
[580 / 849] Cmlx
[581 / 849] Cmlx
[583 / 849] Cmlx
[585 / 849] HuggingFace
[593 / 849] Cmlx
[596 / 849] Cmlx
[599 / 849] Cmlx
[600 / 849] Cmlx
[601 / 849] Cmlx
[602 / 849] Cmlx
[604 / 849] Cmlx
[605 / 849] Cmlx
[608 / 849] Cmlx
[609 / 849] Cmlx
[612 / 849] Cmlx
[615 / 849] Cmlx
[616 / 849] Cmlx
[617 / 849] Cmlx
[619 / 849] Cmlx
[620 / 849] Cmlx
[621 / 849] Cmlx
[622 / 849] Cmlx
[623 / 849] Cmlx
[624 / 849] Cmlx
[625 / 849] Cmlx
[627 / 849] Cmlx
[628 / 849] Cmlx
[629 / 849] Cmlx
[632 / 849] Cmlx
[634 / 849] Cmlx
[635 / 849] Cmlx
[638 / 849] Cmlx
[640 / 849] Cmlx
[643 / 849] Cmlx
[644 / 849] Cmlx
[645 / 849] Cmlx
[646 / 849] Cmlx
[649 / 849] Cmlx
[651 / 849] Cmlx
[654 / 849] Cmlx
[657 / 849] Cmlx
[661 / 849] Cmlx
[665 / 849] Cmlx
[667 / 849] Cmlx
[668 / 849] Cmlx
[670 / 849] Cmlx
[673 / 849] Cmlx
[675 / 849] Cmlx
[676 / 849] Cmlx
[677 / 849] Cmlx
[678 / 849] Cmlx
[679 / 849] Cmlx
[680 / 849] Cmlx
[683 / 849] Cmlx
[684 / 849] Cmlx
[686 / 849] Cmlx
[689 / 849] Cmlx
[690 / 849] Cmlx
[692 / 849] Cmlx
[694 / 849] Cmlx
[695 / 849] Cmlx
[696 / 849] Cmlx
[697 / 849] Cmlx
[701 / 849] Cmlx
[705 / 849] Cmlx
[706 / 849] Cmlx
[707 / 849] Cmlx
[709 / 849] Cmlx
[710 / 849] Cmlx
[712 / 849] Cmlx
[714 / 849] Cmlx
[715 / 849] Cmlx
[721 / 849] Cmlx
[722 / 849] Cmlx
[725 / 849] MLX
[726 / 849] MLX
[727 / 849] MLX
[729 / 849] MLX
[730 / 849] MLXRandom
[734 / 849] MLX
[737 / 849] HuggingFace
[738 / 849] HuggingFace
[739 / 849] HuggingFace-product
[742 / 849] HuggingFace
[744 / 849] MLX
[746 / 849] Hub
[747 / 849]
[752 / 880] HuggingFace
[761 / 880] HuggingFace
[763 / 880] HuggingFace
[766 / 880] HuggingFace
[769 / 880]
[776 / 882]
[778 / 884] HuggingFace
[778 / 884] mlx-swift_Cmlx
[784 / 886]
[790 / 889] MLXFast
[803 / 900] MLXFast
[813 / 940]
[815 / 940]
[817 / 940] MLXNN
[824 / 940]
[838 / 940]
[844 / 940] MLXOptimizers
[853 / 940]
[856 / 940]
[860 / 940] MLXFast-product
[863 / 941]
[865 / 941] MLXNN
[869 / 944] MLXOptimizers
[876 / 945]
[879 / 950]
[889 / 950] MLXMNIST
[895 / 950] MLXMNIST
[903 / 951] MLXMNIST
[904 / 951] Tokenizers
[913 / 962] Tokenizers
[922 / 963]
[922 / 963] Tokenizers
[923 / 963] Tokenizers
[926 / 965] Generation
[938 / 974] Generation
[947 / 975]
[949 / 975]
[953 / 975] MLXFast
[955 / 975] MLXMNIST
[958 / 975] Models
[962 / 979] Models
[969 / 980] Models
[971 / 980] StableDiffusion
[981 / 990] StableDiffusion
[987 / 990] StableDiffusion
Build complete! (44.37 sec)
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/huggingface/swift-transformers
[1/1762] Fetching gzipswift
[178/8780] Fetching gzipswift, swift-transformers
[2606/25721] Fetching gzipswift, swift-transformers, mlx-swift
Fetched https://github.com/1024jp/GzipSwift (2.27s)
Fetched https://github.com/huggingface/swift-transformers (2.27s)
Fetched https://github.com/ml-explore/mlx-swift (2.27s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (5.21s)
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/6640] Fetching swift-numerics
[466/25558] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.95s)
Fetched https://github.com/apple/swift-numerics (1.95s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (2.59s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ibireme/yyjson.git
[1/2737] Fetching swift-huggingface
[2/21286] Fetching swift-huggingface, swift-crypto
[3/22646] Fetching swift-huggingface, swift-crypto, swift-jinja
[358/27545] Fetching swift-huggingface, swift-crypto, swift-jinja, yyjson
[2007/55231] Fetching swift-huggingface, swift-crypto, swift-jinja, yyjson, swift-collections
Fetched https://github.com/huggingface/swift-jinja.git (1.21s)
[2615/53871] Fetching swift-huggingface, swift-crypto, yyjson, swift-collections
Fetched https://github.com/huggingface/swift-huggingface.git (1.66s)
[12201/51134] Fetching swift-crypto, yyjson, swift-collections
Fetched https://github.com/apple/swift-collections.git (4.03s)
Fetched https://github.com/apple/swift-crypto.git (4.03s)
Fetched https://github.com/ibireme/yyjson.git (4.03s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (4.74s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.56s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (0.60s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git (0.92s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.51s)
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/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.58s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (2.28s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (1.12s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.82s)
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/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
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/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/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.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
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/Libraries/StableDiffusion/UNet.swift:134:13: [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m132 |[0;0m ) -> MLXArray {
[0;36m133 |[0;0m let inputX = x
[0;36m134 |[0;0m let dtype = x.dtype
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m135 |[0;0m var x = x
[0;36m136 |[0;0m
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:196:13: [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m194 |[0;0m
[0;36m195 |[0;0m func callAsFunction(_ x: MLXArray, timeEmbedding: MLXArray? = nil) -> MLXArray {
[0;36m196 |[0;0m let dtype = x.dtype
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m197 |[0;0m
[0;36m198 |[0;0m var y = norm1(x)
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:503:13: [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m501 |[0;0m
[0;36m502 |[0;0m // postprocess the output
[0;36m503 |[0;0m let dtype = x.dtype
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m504 |[0;0m x = convNormOut(x)
[0;36m505 |[0;0m x = silu(x)
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/Image.swift:135:20: [1;33mwarning: [1;39mimmutable value 'C' was never used; consider replacing with '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m133 |[0;0m
[0;36m134 |[0;0m let arrayData = raster.asData()
[0;36m135 |[0;0m let (H, W, C) = raster.shape3
[0;36m|[0;0m `- [1;33mwarning: [1;39mimmutable value 'C' was never used; consider replacing with '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m136 |[0;0m let cs = CGColorSpace(name: CGColorSpace.sRGB)!
[0;36m137 |[0;0m
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
Build complete.
{
"dependencies" : [
{
"identity" : "mlx-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.31.4",
"upper_bound" : "0.32.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ml-explore/mlx-swift"
},
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers"
},
{
"identity" : "gzipswift",
"requirement" : {
"range" : [
{
"lower_bound" : "6.0.1",
"upper_bound" : "6.0.2"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/1024jp/GzipSwift"
}
],
"manifest_display_name" : "mlx-libraries",
"name" : "mlx-libraries",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "MLXMNIST",
"targets" : [
"MLXMNIST"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StableDiffusion",
"targets" : [
"StableDiffusion"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StableDiffusion",
"module_type" : "SwiftTarget",
"name" : "StableDiffusion",
"path" : "Libraries/StableDiffusion",
"product_dependencies" : [
"MLX",
"MLXNN",
"MLXRandom",
"Transformers"
],
"product_memberships" : [
"StableDiffusion"
],
"sources" : [
"Clip.swift",
"Configuration.swift",
"Image.swift",
"Load.swift",
"Sampler.swift",
"StableDiffusion.swift",
"Tokenizer.swift",
"UNet.swift",
"VAE.swift"
],
"type" : "library"
},
{
"c99name" : "MLXMNIST",
"module_type" : "SwiftTarget",
"name" : "MLXMNIST",
"path" : "Libraries/MLXMNIST",
"product_dependencies" : [
"MLX",
"MLXFast",
"MLXNN",
"MLXOptimizers",
"MLXRandom",
"Gzip"
],
"product_memberships" : [
"MLXMNIST"
],
"sources" : [
"Files.swift",
"MNIST.swift",
"Random.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.