Build Information
Failed to build mlx-swift, reference 0.10.0 (7838f8), with Swift 6.3 for macOS (Xcode) using Xcode 26.4 on 29 Jun 2026 08:27:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme mlx-swift-Package -destination platform=macOS,arch=arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/mlx-swift.git
Reference: 0.10.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DePasqualeOrg/mlx-swift
* tag 0.10.0 -> FETCH_HEAD
HEAD is now at 7838f8c adopt latest mlx-c and mlx v0.3.0 (#6)
Submodule path 'Source/Cmlx/mlx': checked out 'bf7cd29970b603ed3e177cb2f4f6dc246a653555'
Submodule path 'Source/Cmlx/mlx-c': checked out '096e4196354f0e72331140f6049c1c1d15719cbe'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/Users/admin/builder/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/Users/admin/builder/spi-builder-workspace/Source/Cmlx/mlx-c'...
From https://github.com/ml-explore/mlx-c
* branch 096e4196354f0e72331140f6049c1c1d15719cbe -> FETCH_HEAD
Cloned https://github.com/DePasqualeOrg/mlx-swift.git
Revision (git rev-parse @):
7838f8cd93499f3d9e9a35b87cb74fe2664b325f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/DePasqualeOrg/mlx-swift.git at 0.10.0
========================================
Build
========================================
Selected platform: macosXcodebuild
Swift version: 6.3
Building package at path: $PWD
https://github.com/DePasqualeOrg/mlx-swift.git
Command line invocation:
/Applications/Xcode-26.4.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Fetching from https://github.com/apple/swift-numerics
Creating working copy of package ‘swift-numerics’
Checking out 1.1.1 of package ‘swift-numerics’
Resolve Package Graph
Resolved source packages:
mlx-swift: /Users/admin/builder/spi-builder-workspace
swift-numerics: https://github.com/apple/swift-numerics @ 1.1.1
resolved source packages: mlx-swift, swift-numerics
2026-06-29 04:27:26.760 xcodebuild[574:3231] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"cxx_language_standard" : "gnu++17",
"dependencies" : [
{
"identity" : "swift-numerics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-numerics"
}
],
"manifest_display_name" : "mlx-swift",
"name" : "mlx-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.3"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "MLX",
"targets" : [
"MLX"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXRandom",
"targets" : [
"MLXRandom"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXNN",
"targets" : [
"MLXNN"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXOptimizers",
"targets" : [
"MLXOptimizers"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXFFT",
"targets" : [
"MLXFFT"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXLinalg",
"targets" : [
"MLXLinalg"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PrepareMetalShaders",
"targets" : [
"PrepareMetalShaders"
],
"type" : {
"plugin" : null
}
},
{
"name" : "Tutorial",
"targets" : [
"Tutorial"
],
"type" : {
"executable" : null
}
},
{
"name" : "GenerateGrad",
"targets" : [
"GenerateGrad"
],
"type" : {
"executable" : null
}
},
{
"name" : "Example1",
"targets" : [
"Example1"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Tutorial",
"module_type" : "SwiftTarget",
"name" : "Tutorial",
"path" : "Source/Examples",
"product_memberships" : [
"Tutorial"
],
"sources" : [
"Tutorial.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "executable"
},
{
"c99name" : "PrepareMetalShaders",
"module_type" : "PluginTarget",
"name" : "PrepareMetalShaders",
"path" : "Plugins/PrepareMetalShaders",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"PrepareMetalShaders",
"Tutorial",
"Example1"
],
"sources" : [
"main.swift"
],
"type" : "plugin"
},
{
"c99name" : "MLXTests",
"module_type" : "SwiftTarget",
"name" : "MLXTests",
"path" : "Tests/MLXTests",
"sources" : [
"IntegrationTests.swift",
"LinalgTests.swift",
"MLXArray+IndexingTests.swift",
"MLXArray+InitTests.swift",
"MLXArray+OpsTests.swift",
"MLXArrayTests.swift",
"MLXRandomTests.swift",
"ModuleTests.swift",
"NestedTests.swift",
"OpsTests.swift",
"OptimizerTests.swift",
"PoolingTests.swift",
"SubclassTests.swift",
"TransformTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg"
],
"type" : "test"
},
{
"c99name" : "MLXRandom",
"module_type" : "SwiftTarget",
"name" : "MLXRandom",
"path" : "Source/MLXRandom",
"product_memberships" : [
"MLXRandom",
"MLXNN",
"MLXOptimizers"
],
"sources" : [
"Foundation+Util.swift",
"Random.swift",
"State.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLXOptimizers",
"module_type" : "SwiftTarget",
"name" : "MLXOptimizers",
"path" : "Source/MLXOptimizers",
"product_memberships" : [
"MLXOptimizers"
],
"sources" : [
"Optimizers.swift"
],
"target_dependencies" : [
"MLX",
"MLXNN"
],
"type" : "library"
},
{
"c99name" : "MLXNN",
"module_type" : "SwiftTarget",
"name" : "MLXNN",
"path" : "Source/MLXNN",
"product_memberships" : [
"MLXNN",
"MLXOptimizers"
],
"sources" : [
"Activations.swift",
"Cache.swift",
"Containers.swift",
"Convolution.swift",
"Dropout.swift",
"Embedding.swift",
"Linear.swift",
"Losses.swift",
"Module.swift",
"Normalization.swift",
"Pooling.swift",
"PositionalEncoding.swift",
"Quantized.swift",
"Transformer.swift",
"ValueAndGrad.swift"
],
"target_dependencies" : [
"MLX",
"MLXRandom"
],
"type" : "library"
},
{
"c99name" : "MLXLinalg",
"module_type" : "SwiftTarget",
"name" : "MLXLinalg",
"path" : "Source/MLXLinalg",
"product_memberships" : [
"MLXLinalg"
],
"sources" : [
"Cmlx+Util.swift",
"Foundation+Util.swift",
"Linalg.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLXFFT",
"module_type" : "SwiftTarget",
"name" : "MLXFFT",
"path" : "Source/MLXFFT",
"product_memberships" : [
"MLXFFT"
],
"sources" : [
"FFT.swift",
"Foundation+Util.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLX",
"module_type" : "SwiftTarget",
"name" : "MLX",
"path" : "Source/MLX",
"product_dependencies" : [
"Numerics"
],
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"Tutorial",
"Example1"
],
"sources" : [
"Cmlx+Util.swift",
"DType.swift",
"Device.swift",
"Factory.swift",
"Foundation+Util.swift",
"MLXArray+Indexing.swift",
"MLXArray+Init.swift",
"MLXArray+Ops.swift",
"MLXArray.swift",
"Nested.swift",
"Ops+Array.swift",
"Ops.swift",
"Protocols.swift",
"Stream.swift",
"Transforms+Compile.swift",
"Transforms+Eval.swift",
"Transforms+Grad.swift",
"Transforms+Internal.swift",
"Transforms.swift"
],
"target_dependencies" : [
"Cmlx"
],
"type" : "library"
},
{
"c99name" : "GenerateGrad",
"module_type" : "SwiftTarget",
"name" : "GenerateGrad",
"path" : "Source/Tools",
"product_memberships" : [
"GenerateGrad"
],
"sources" : [
"GenerateGrad.swift"
],
"type" : "executable"
},
{
"c99name" : "Example1",
"module_type" : "SwiftTarget",
"name" : "Example1",
"path" : "Source/Examples",
"product_memberships" : [
"Example1"
],
"sources" : [
"Example1.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "executable"
},
{
"c99name" : "CmlxTests",
"module_type" : "SwiftTarget",
"name" : "CmlxTests",
"path" : "Tests/CmlxTests",
"sources" : [
"CmlxTests.swift"
],
"target_dependencies" : [
"Cmlx"
],
"type" : "test"
},
{
"c99name" : "Cmlx",
"module_type" : "ClangTarget",
"name" : "Cmlx",
"path" : "Source/Cmlx",
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"Tutorial",
"Example1"
],
"sources" : [
"gguf-tools/fp16.c",
"gguf-tools/gguflib.c",
"gguf-tools/sds.c",
"include/mlx/c/array.cpp",
"include/mlx/c/closure.cpp",
"include/mlx/c/compile.cpp",
"include/mlx/c/device.cpp",
"include/mlx/c/fast.cpp",
"include/mlx/c/fft.cpp",
"include/mlx/c/io.cpp",
"include/mlx/c/ioutils.cpp",
"include/mlx/c/linalg.cpp",
"include/mlx/c/map.cpp",
"include/mlx/c/object.cpp",
"include/mlx/c/ops.cpp",
"include/mlx/c/random.cpp",
"include/mlx/c/stream.cpp",
"include/mlx/c/string.cpp",
"include/mlx/c/transforms.cpp",
"include/mlx/c/transforms_impl.cpp",
"mlx-generated/compiled_preamble.cpp",
"mlx/mlx/allocator.cpp",
"mlx/mlx/array.cpp",
"mlx/mlx/backend/common/arg_reduce.cpp",
"mlx/mlx/backend/common/binary.cpp",
"mlx/mlx/backend/common/compiled.cpp",
"mlx/mlx/backend/common/conv.cpp",
"mlx/mlx/backend/common/copy.cpp",
"mlx/mlx/backend/common/default_primitives.cpp",
"mlx/mlx/backend/common/erf.cpp",
"mlx/mlx/backend/common/fft.cpp",
"mlx/mlx/backend/common/indexing.cpp",
"mlx/mlx/backend/common/load.cpp",
"mlx/mlx/backend/common/primitives.cpp",
"mlx/mlx/backend/common/qrf.cpp",
"mlx/mlx/backend/common/quantized.cpp",
"mlx/mlx/backend/common/reduce.cpp",
"mlx/mlx/backend/common/rope.cpp",
"mlx/mlx/backend/common/scan.cpp",
"mlx/mlx/backend/common/softmax.cpp",
"mlx/mlx/backend/common/sort.cpp",
"mlx/mlx/backend/common/threefry.cpp",
"mlx/mlx/backend/metal/allocator.cpp",
"mlx/mlx/backend/metal/compiled.cpp",
"mlx/mlx/backend/metal/conv.cpp",
"mlx/mlx/backend/metal/copy.cpp",
"mlx/mlx/backend/metal/device.cpp",
"mlx/mlx/backend/metal/fft.cpp",
"mlx/mlx/backend/metal/indexing.cpp",
"mlx/mlx/backend/metal/matmul.cpp",
"mlx/mlx/backend/metal/metal.cpp",
"mlx/mlx/backend/metal/primitives.cpp",
"mlx/mlx/backend/metal/quantized.cpp",
"mlx/mlx/backend/metal/reduce.cpp",
"mlx/mlx/backend/metal/rope.cpp",
"mlx/mlx/backend/metal/scan.cpp",
"mlx/mlx/backend/metal/softmax.cpp",
"mlx/mlx/backend/metal/sort.cpp",
"mlx/mlx/compile.cpp",
"mlx/mlx/device.cpp",
"mlx/mlx/dtype.cpp",
"mlx/mlx/fast.cpp",
"mlx/mlx/fft.cpp",
"mlx/mlx/graph_utils.cpp",
"mlx/mlx/io/gguf.cpp",
"mlx/mlx/io/gguf_quants.cpp",
"mlx/mlx/io/load.cpp",
"mlx/mlx/io/safetensor.cpp",
"mlx/mlx/linalg.cpp",
"mlx/mlx/ops.cpp",
"mlx/mlx/primitives.cpp",
"mlx/mlx/random.cpp",
"mlx/mlx/scheduler.cpp",
"mlx/mlx/transforms.cpp",
"mlx/mlx/utils.cpp"
],
"target_dependencies" : [
"PrepareMetalShaders"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"Example1",
"GenerateGrad",
"MLX",
"mlx-swift-Package",
"MLXFFT",
"MLXLinalg",
"MLXNN",
"MLXOptimizers",
"MLXRandom",
"Tutorial"
]
}
}
2026-06-29 04:27:47.624 xcodebuild[789:4738] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme mlx-swift-Package -destination platform=macOS,arch=arm64
Command line invocation:
/Applications/Xcode-26.4.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme mlx-swift-Package -destination platform=macOS,arch=arm64
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
swift-numerics: https://github.com/apple/swift-numerics @ 1.1.1
mlx-swift: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
Compile plug-in “PrepareMetalShaders” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/PluginExecutables/PrepareMetalShaders
[debug]: Using compiler /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/PluginExecutables'
[debug]: Computed hash of plugin compilation inputs: 5d2cf0a7003c55cb01c5945cb56da57b79eb80d2f38976827007e12d407a5c63
/Users/admin/builder/spi-builder-workspace/Plugins/PrepareMetalShaders/main.swift:211:14: error: type 'Command' has no member '_prebuildCommand'
209 | // a prebuild command to inject the output directory so swiftpm knows to pick it up
210 | commands.append(
211 | ._prebuildCommand(
| `- error: type 'Command' has no member '_prebuildCommand'
212 | displayName: "Install Headers",
213 | executable: .init("/bin/echo"),
/Users/admin/builder/spi-builder-workspace/Plugins/PrepareMetalShaders/main.swift:213:30: error: cannot infer contextual base in reference to member 'init'
211 | ._prebuildCommand(
212 | displayName: "Install Headers",
213 | executable: .init("/bin/echo"),
| `- error: cannot infer contextual base in reference to member 'init'
214 | arguments: [],
215 | outputFilesDirectory: Path(destination.path(percentEncoded: false))))
2026-06-29 04:27:50.235 xcodebuild[798:4826] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:DriverKit, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
** BUILD FAILED **
The following build commands failed:
Compile plug-in “PrepareMetalShaders” in package “spi-builder-workspace”
eyJibHVlcHJpbnRQcm92aWRlcl9wcm92aWRlckZpbGVQYXRoU3RyaW5nIjoiXC9Vc2Vyc1wvYWRtaW5cL2J1aWxkZXJcL3NwaS1idWlsZGVyLXdvcmtzcGFjZSIsInR5cGUiOnsiYmx1ZXByaW50UHJvdmlkZXIiOnt9fX0=
Building workspace spi-builder-workspace with scheme mlx-swift-Package
(3 failures)
Command line invocation:
/Applications/Xcode-26.4.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
mlx-swift: /Users/admin/builder/spi-builder-workspace
swift-numerics: https://github.com/apple/swift-numerics @ 1.1.1
resolved source packages: mlx-swift, swift-numerics
2026-06-29 04:27:53.779 xcodebuild[825:4997] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"cxx_language_standard" : "gnu++17",
"dependencies" : [
{
"identity" : "swift-numerics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-numerics"
}
],
"manifest_display_name" : "mlx-swift",
"name" : "mlx-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.3"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "MLX",
"targets" : [
"MLX"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXRandom",
"targets" : [
"MLXRandom"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXNN",
"targets" : [
"MLXNN"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXOptimizers",
"targets" : [
"MLXOptimizers"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXFFT",
"targets" : [
"MLXFFT"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXLinalg",
"targets" : [
"MLXLinalg"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "PrepareMetalShaders",
"targets" : [
"PrepareMetalShaders"
],
"type" : {
"plugin" : null
}
},
{
"name" : "Tutorial",
"targets" : [
"Tutorial"
],
"type" : {
"executable" : null
}
},
{
"name" : "GenerateGrad",
"targets" : [
"GenerateGrad"
],
"type" : {
"executable" : null
}
},
{
"name" : "Example1",
"targets" : [
"Example1"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Tutorial",
"module_type" : "SwiftTarget",
"name" : "Tutorial",
"path" : "Source/Examples",
"product_memberships" : [
"Tutorial"
],
"sources" : [
"Tutorial.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "executable"
},
{
"c99name" : "PrepareMetalShaders",
"module_type" : "PluginTarget",
"name" : "PrepareMetalShaders",
"path" : "Plugins/PrepareMetalShaders",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"PrepareMetalShaders",
"Tutorial",
"Example1"
],
"sources" : [
"main.swift"
],
"type" : "plugin"
},
{
"c99name" : "MLXTests",
"module_type" : "SwiftTarget",
"name" : "MLXTests",
"path" : "Tests/MLXTests",
"sources" : [
"IntegrationTests.swift",
"LinalgTests.swift",
"MLXArray+IndexingTests.swift",
"MLXArray+InitTests.swift",
"MLXArray+OpsTests.swift",
"MLXArrayTests.swift",
"MLXRandomTests.swift",
"ModuleTests.swift",
"NestedTests.swift",
"OpsTests.swift",
"OptimizerTests.swift",
"PoolingTests.swift",
"SubclassTests.swift",
"TransformTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg"
],
"type" : "test"
},
{
"c99name" : "MLXRandom",
"module_type" : "SwiftTarget",
"name" : "MLXRandom",
"path" : "Source/MLXRandom",
"product_memberships" : [
"MLXRandom",
"MLXNN",
"MLXOptimizers"
],
"sources" : [
"Foundation+Util.swift",
"Random.swift",
"State.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLXOptimizers",
"module_type" : "SwiftTarget",
"name" : "MLXOptimizers",
"path" : "Source/MLXOptimizers",
"product_memberships" : [
"MLXOptimizers"
],
"sources" : [
"Optimizers.swift"
],
"target_dependencies" : [
"MLX",
"MLXNN"
],
"type" : "library"
},
{
"c99name" : "MLXNN",
"module_type" : "SwiftTarget",
"name" : "MLXNN",
"path" : "Source/MLXNN",
"product_memberships" : [
"MLXNN",
"MLXOptimizers"
],
"sources" : [
"Activations.swift",
"Cache.swift",
"Containers.swift",
"Convolution.swift",
"Dropout.swift",
"Embedding.swift",
"Linear.swift",
"Losses.swift",
"Module.swift",
"Normalization.swift",
"Pooling.swift",
"PositionalEncoding.swift",
"Quantized.swift",
"Transformer.swift",
"ValueAndGrad.swift"
],
"target_dependencies" : [
"MLX",
"MLXRandom"
],
"type" : "library"
},
{
"c99name" : "MLXLinalg",
"module_type" : "SwiftTarget",
"name" : "MLXLinalg",
"path" : "Source/MLXLinalg",
"product_memberships" : [
"MLXLinalg"
],
"sources" : [
"Cmlx+Util.swift",
"Foundation+Util.swift",
"Linalg.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLXFFT",
"module_type" : "SwiftTarget",
"name" : "MLXFFT",
"path" : "Source/MLXFFT",
"product_memberships" : [
"MLXFFT"
],
"sources" : [
"FFT.swift",
"Foundation+Util.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "library"
},
{
"c99name" : "MLX",
"module_type" : "SwiftTarget",
"name" : "MLX",
"path" : "Source/MLX",
"product_dependencies" : [
"Numerics"
],
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"Tutorial",
"Example1"
],
"sources" : [
"Cmlx+Util.swift",
"DType.swift",
"Device.swift",
"Factory.swift",
"Foundation+Util.swift",
"MLXArray+Indexing.swift",
"MLXArray+Init.swift",
"MLXArray+Ops.swift",
"MLXArray.swift",
"Nested.swift",
"Ops+Array.swift",
"Ops.swift",
"Protocols.swift",
"Stream.swift",
"Transforms+Compile.swift",
"Transforms+Eval.swift",
"Transforms+Grad.swift",
"Transforms+Internal.swift",
"Transforms.swift"
],
"target_dependencies" : [
"Cmlx"
],
"type" : "library"
},
{
"c99name" : "GenerateGrad",
"module_type" : "SwiftTarget",
"name" : "GenerateGrad",
"path" : "Source/Tools",
"product_memberships" : [
"GenerateGrad"
],
"sources" : [
"GenerateGrad.swift"
],
"type" : "executable"
},
{
"c99name" : "Example1",
"module_type" : "SwiftTarget",
"name" : "Example1",
"path" : "Source/Examples",
"product_memberships" : [
"Example1"
],
"sources" : [
"Example1.swift"
],
"target_dependencies" : [
"MLX"
],
"type" : "executable"
},
{
"c99name" : "CmlxTests",
"module_type" : "SwiftTarget",
"name" : "CmlxTests",
"path" : "Tests/CmlxTests",
"sources" : [
"CmlxTests.swift"
],
"target_dependencies" : [
"Cmlx"
],
"type" : "test"
},
{
"c99name" : "Cmlx",
"module_type" : "ClangTarget",
"name" : "Cmlx",
"path" : "Source/Cmlx",
"product_memberships" : [
"MLX",
"MLXRandom",
"MLXNN",
"MLXOptimizers",
"MLXFFT",
"MLXLinalg",
"Tutorial",
"Example1"
],
"sources" : [
"gguf-tools/fp16.c",
"gguf-tools/gguflib.c",
"gguf-tools/sds.c",
"include/mlx/c/array.cpp",
"include/mlx/c/closure.cpp",
"include/mlx/c/compile.cpp",
"include/mlx/c/device.cpp",
"include/mlx/c/fast.cpp",
"include/mlx/c/fft.cpp",
"include/mlx/c/io.cpp",
"include/mlx/c/ioutils.cpp",
"include/mlx/c/linalg.cpp",
"include/mlx/c/map.cpp",
"include/mlx/c/object.cpp",
"include/mlx/c/ops.cpp",
"include/mlx/c/random.cpp",
"include/mlx/c/stream.cpp",
"include/mlx/c/string.cpp",
"include/mlx/c/transforms.cpp",
"include/mlx/c/transforms_impl.cpp",
"mlx-generated/compiled_preamble.cpp",
"mlx/mlx/allocator.cpp",
"mlx/mlx/array.cpp",
"mlx/mlx/backend/common/arg_reduce.cpp",
"mlx/mlx/backend/common/binary.cpp",
"mlx/mlx/backend/common/compiled.cpp",
"mlx/mlx/backend/common/conv.cpp",
"mlx/mlx/backend/common/copy.cpp",
"mlx/mlx/backend/common/default_primitives.cpp",
"mlx/mlx/backend/common/erf.cpp",
"mlx/mlx/backend/common/fft.cpp",
"mlx/mlx/backend/common/indexing.cpp",
"mlx/mlx/backend/common/load.cpp",
"mlx/mlx/backend/common/primitives.cpp",
"mlx/mlx/backend/common/qrf.cpp",
"mlx/mlx/backend/common/quantized.cpp",
"mlx/mlx/backend/common/reduce.cpp",
"mlx/mlx/backend/common/rope.cpp",
"mlx/mlx/backend/common/scan.cpp",
"mlx/mlx/backend/common/softmax.cpp",
"mlx/mlx/backend/common/sort.cpp",
"mlx/mlx/backend/common/threefry.cpp",
"mlx/mlx/backend/metal/allocator.cpp",
"mlx/mlx/backend/metal/compiled.cpp",
"mlx/mlx/backend/metal/conv.cpp",
"mlx/mlx/backend/metal/copy.cpp",
"mlx/mlx/backend/metal/device.cpp",
"mlx/mlx/backend/metal/fft.cpp",
"mlx/mlx/backend/metal/indexing.cpp",
"mlx/mlx/backend/metal/matmul.cpp",
"mlx/mlx/backend/metal/metal.cpp",
"mlx/mlx/backend/metal/primitives.cpp",
"mlx/mlx/backend/metal/quantized.cpp",
"mlx/mlx/backend/metal/reduce.cpp",
"mlx/mlx/backend/metal/rope.cpp",
"mlx/mlx/backend/metal/scan.cpp",
"mlx/mlx/backend/metal/softmax.cpp",
"mlx/mlx/backend/metal/sort.cpp",
"mlx/mlx/compile.cpp",
"mlx/mlx/device.cpp",
"mlx/mlx/dtype.cpp",
"mlx/mlx/fast.cpp",
"mlx/mlx/fft.cpp",
"mlx/mlx/graph_utils.cpp",
"mlx/mlx/io/gguf.cpp",
"mlx/mlx/io/gguf_quants.cpp",
"mlx/mlx/io/load.cpp",
"mlx/mlx/io/safetensor.cpp",
"mlx/mlx/linalg.cpp",
"mlx/mlx/ops.cpp",
"mlx/mlx/primitives.cpp",
"mlx/mlx/random.cpp",
"mlx/mlx/scheduler.cpp",
"mlx/mlx/transforms.cpp",
"mlx/mlx/utils.cpp"
],
"target_dependencies" : [
"PrepareMetalShaders"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"Example1",
"GenerateGrad",
"MLX",
"mlx-swift-Package",
"MLXFFT",
"MLXLinalg",
"MLXNN",
"MLXOptimizers",
"MLXRandom",
"Tutorial"
]
}
}
2026-06-29 04:27:55.253 xcodebuild[836:5079] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme mlx-swift-Package -destination platform=macOS,arch=arm64
Command line invocation:
/Applications/Xcode-26.4.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme mlx-swift-Package -destination platform=macOS,arch=arm64
Resolve Package Graph
Resolved source packages:
swift-numerics: https://github.com/apple/swift-numerics @ 1.1.1
mlx-swift: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
Compile plug-in “PrepareMetalShaders” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/PluginExecutables/PrepareMetalShaders
[debug]: Using compiler /Applications/Xcode-26.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/PluginExecutables'
[debug]: Computed hash of plugin compilation inputs: 5d2cf0a7003c55cb01c5945cb56da57b79eb80d2f38976827007e12d407a5c63
/Users/admin/builder/spi-builder-workspace/Plugins/PrepareMetalShaders/main.swift:211:14: error: type 'Command' has no member '_prebuildCommand'
209 | // a prebuild command to inject the output directory so swiftpm knows to pick it up
210 | commands.append(
211 | ._prebuildCommand(
| `- error: type 'Command' has no member '_prebuildCommand'
212 | displayName: "Install Headers",
213 | executable: .init("/bin/echo"),
/Users/admin/builder/spi-builder-workspace/Plugins/PrepareMetalShaders/main.swift:213:30: error: cannot infer contextual base in reference to member 'init'
211 | ._prebuildCommand(
212 | displayName: "Install Headers",
213 | executable: .init("/bin/echo"),
| `- error: cannot infer contextual base in reference to member 'init'
214 | arguments: [],
215 | outputFilesDirectory: Path(destination.path(percentEncoded: false))))
2026-06-29 04:27:56.454 xcodebuild[840:5116] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:DriverKit, id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:c0b3e46d58ee6e1b06fdfcedc41d07701f61ae57, name:My Mac }
** BUILD FAILED **
The following build commands failed:
Compile plug-in “PrepareMetalShaders” in package “spi-builder-workspace”
eyJibHVlcHJpbnRQcm92aWRlcl9wcm92aWRlckZpbGVQYXRoU3RyaW5nIjoiXC9Vc2Vyc1wvYWRtaW5cL2J1aWxkZXJcL3NwaS1idWlsZGVyLXdvcmtzcGFjZSIsInR5cGUiOnsiYmx1ZXByaW50UHJvdmlkZXIiOnt9fX0=
Building workspace spi-builder-workspace with scheme mlx-swift-Package
(3 failures)
BUILD FAILURE 6.3 macosXcodebuild