Skip to content

Commit 8a46ebc

Browse files
Fix missing ONNXRuntimeBinary target in Package.swift
Replace stale "ONNXRuntimeBinary" dependency (which doesn't exist) with platform-conditional ONNXRuntimeiOSBinary/ONNXRuntimemacOSBinary targets. This was preventing SPM from resolving the package graph. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2c3e97b commit 8a46ebc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ let package = Package(
172172
"RunAnywhere",
173173
"ONNXBackend",
174174
"RABackendONNXBinary",
175-
"ONNXRuntimeBinary",
175+
.target(name: "ONNXRuntimeiOSBinary", condition: .when(platforms: [.iOS])),
176+
.target(name: "ONNXRuntimemacOSBinary", condition: .when(platforms: [.macOS])),
176177
],
177178
path: "sdk/runanywhere-swift/Sources/ONNXRuntime",
178179
exclude: ["include"],

0 commit comments

Comments
 (0)