Skip to content

Commit cb681dd

Browse files
chore(release): v0.19.12 — remove obsolete ONNXRuntime binary targets
The Swift CodeQL autobuild has been failing on every push to main: error: failed downloading onnxruntime-ios-v0.19.11.zip — 404 error: failed downloading onnxruntime-macos-v0.19.11.zip — 404 Root cause: Package.swift referenced separate ONNXRuntime{iOS,macOS}Binary targets that were distributed as standalone xcframeworks until v0.19.0. From v0.19.0+, ONNX Runtime is statically linked INTO RABackendONNX.a (confirmed via `nm libRABackendONNX.a | grep Ort` — Ort* symbols present). The release pipeline stopped producing onnxruntime-ios/macos-*.zip assets, but Package.swift still referenced them. Every fresh SPM resolve against v0.19.0-v0.19.11 would 404, including CodeQL on main. Fix: remove ONNXRuntimeiOSBinary + ONNXRuntimemacOSBinary targets from Package.swift (target definitions, dependencies, and the local-mode binaryTarget entries). RABackendONNXBinary alone provides everything. Also bumps 16 manifests 0.19.11 → 0.19.12. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 78209e2 commit cb681dd

16 files changed

Lines changed: 24 additions & 47 deletions

File tree

Package.swift

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let useLocalNatives = false // Toggle: true for local dev, false for release
4444

4545
// Version for remote XCFrameworks (used when useLocalNatives = false)
4646
// Updated automatically by CI/CD during releases
47-
let sdkVersion = "0.19.11"
47+
let sdkVersion = "0.19.12"
4848

4949
// MetalRT remote binary availability flag.
5050
// Set to `false` until a real checksum for RABackendMetalRT-v<sdkVersion>.zip
@@ -129,13 +129,16 @@ let package = Package(
129129

130130
// =================================================================
131131
// C Bridge Module - ONNX Backend Headers
132+
//
133+
// ONNX Runtime is now statically linked into RABackendONNX.a — no
134+
// separate ONNXRuntime{iOS,macOS}Binary targets needed. They were
135+
// previously distributed as separate xcframeworks but are bundled
136+
// since v0.19.0.
132137
// =================================================================
133138
.target(
134139
name: "ONNXBackend",
135140
dependencies: [
136141
"RABackendONNXBinary",
137-
.target(name: "ONNXRuntimeiOSBinary", condition: .when(platforms: [.iOS])),
138-
.target(name: "ONNXRuntimemacOSBinary", condition: .when(platforms: [.macOS])),
139142
],
140143
path: "sdk/runanywhere-swift/Sources/ONNXRuntime/include",
141144
publicHeadersPath: "."
@@ -175,8 +178,6 @@ let package = Package(
175178
"RunAnywhere",
176179
"ONNXBackend",
177180
"RABackendONNXBinary",
178-
.target(name: "ONNXRuntimeiOSBinary", condition: .when(platforms: [.iOS])),
179-
.target(name: "ONNXRuntimemacOSBinary", condition: .when(platforms: [.macOS])),
180181
],
181182
path: "sdk/runanywhere-swift/Sources/ONNXRuntime",
182183
exclude: ["include"],
@@ -304,7 +305,9 @@ func binaryTargets() -> [Target] {
304305
// For macOS support, build with --include-macos:
305306
// ./scripts/build-swift.sh --setup --include-macos
306307
// =====================================================================
307-
var targets: [Target] = [
308+
// ONNX Runtime is statically linked into RABackendONNX — no separate
309+
// local xcframework targets needed (v0.19.0+).
310+
return [
308311
.binaryTarget(
309312
name: "RACommonsBinary",
310313
path: "sdk/runanywhere-swift/Binaries/RACommons.xcframework"
@@ -322,22 +325,6 @@ func binaryTargets() -> [Target] {
322325
path: "sdk/runanywhere-swift/Binaries/RABackendMetalRT.xcframework"
323326
),
324327
]
325-
326-
// ONNX Runtime xcframeworks - split by platform
327-
// iOS: static library format (not embedded in app bundle)
328-
// macOS: dynamic framework format (embedded in app bundle)
329-
targets.append(contentsOf: [
330-
.binaryTarget(
331-
name: "ONNXRuntimeiOSBinary",
332-
path: "sdk/runanywhere-swift/Binaries/onnxruntime-ios.xcframework"
333-
),
334-
.binaryTarget(
335-
name: "ONNXRuntimemacOSBinary",
336-
path: "sdk/runanywhere-swift/Binaries/onnxruntime-macos.xcframework"
337-
),
338-
])
339-
340-
return targets
341328
} else {
342329
// =====================================================================
343330
// PRODUCTION MODE (for external SPM consumers)
@@ -360,16 +347,6 @@ func binaryTargets() -> [Target] {
360347
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/RABackendONNX-ios-v\(sdkVersion).zip",
361348
checksum: "809e2510da49f71f6d019e77bcc0a7e12e967f3b739ba0b9eea7adb77936edc0"
362349
),
363-
.binaryTarget(
364-
name: "ONNXRuntimeiOSBinary",
365-
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/onnxruntime-ios-v\(sdkVersion).zip",
366-
checksum: "310022d76a16b2d2d106577a1aa84a9e608c721bb6221c4ba47bf962a88bd9fd"
367-
),
368-
.binaryTarget(
369-
name: "ONNXRuntimemacOSBinary",
370-
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/onnxruntime-macos-v\(sdkVersion).zip",
371-
checksum: "f73db9dc09012325b35fd3da74de794a75f4e9971d9b923af0805d6ab1dfc243"
372-
),
373350
]
374351

375352
// MetalRT remote binary is only appended once a real checksum has been

sdk/runanywhere-commons/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.11
1+
0.19.12

sdk/runanywhere-commons/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# =============================================================================
1515

1616
# Project version (read from VERSION file, but also defined here for scripts)
17-
PROJECT_VERSION=0.19.11
17+
PROJECT_VERSION=0.19.12
1818

1919
# =============================================================================
2020
# Platform Deployment Targets

sdk/runanywhere-flutter/packages/runanywhere/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere
22
description: Privacy-first, on-device AI SDK for Flutter. Run LLMs, STT, TTS, and VAD directly on device with no data leaving the device.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_genie/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_genie
22
description: Qualcomm Genie NPU backend for RunAnywhere Flutter SDK. On-device LLM inference on Snapdragon NPU.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_llamacpp/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_llamacpp
22
description: LlamaCpp backend for RunAnywhere Flutter SDK. High-performance on-device LLM text generation with GGUF model support.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_onnx/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_onnx
22
description: ONNX Runtime backend for RunAnywhere Flutter SDK. On-device Speech-to-Text, Text-to-Speech, and Voice Activity Detection.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-kotlin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ runanywhere.coreVersion=0.1.4
6060
# Must match a GitHub release tag at: https://github.com/RunanywhereAI/runanywhere-sdks/releases
6161
# Contains: RACommons-android (librac_commons.so, librac_commons_jni.so)
6262
runanywhere.commonsVersion=0.1.4
63-
runanywhere.nativeLibVersion=0.19.11
63+
runanywhere.nativeLibVersion=0.19.12

sdk/runanywhere-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "runanywhere-react-native-monorepo",
3-
"version": "0.19.11",
3+
"version": "0.19.12",
44
"private": true,
55
"description": "RunAnywhere React Native SDK - Multi-Package Monorepo",
66
"workspaces": [

sdk/runanywhere-react-native/packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@runanywhere/core",
3-
"version": "0.19.11",
3+
"version": "0.19.12",
44
"description": "Core SDK for RunAnywhere React Native - includes RACommons bindings, native bridges, and public API",
55
"main": "src/index.ts",
66
"types": "src/index.ts",

0 commit comments

Comments
 (0)