Skip to content

Commit 7873917

Browse files
Fix v0.19.5: Use versioned framework structure for macOS slices
macOS frameworks require Versions/A/ directory structure with symlinks. The flat iOS-style structure caused linker errors on macOS builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4866e6a commit 7873917

3 files changed

Lines changed: 33 additions & 24 deletions

File tree

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import Foundation
3737
// ./scripts/build-swift.sh --set-remote (sets useLocalBinaries = false)
3838
//
3939
// =============================================================================
40-
let useLocalBinaries = true // Toggle: true for local dev, false for release
40+
let useLocalBinaries = false // Toggle: true for local dev, false for release
4141

4242
// Version for remote XCFrameworks (used when testLocal = false)
4343
// Updated automatically by CI/CD during releases
@@ -343,17 +343,17 @@ func binaryTargets() -> [Target] {
343343
.binaryTarget(
344344
name: "RACommonsBinary",
345345
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/RACommons-v\(sdkVersion).zip",
346-
checksum: "8ea58562a172ae24d805b1f582ce241981b9e1d812a0a6add538c6e44ab08d1a"
346+
checksum: "40ea84cf054f59fbc65e87d92550d4acb2bcbf433041438822c6b30985e3db24"
347347
),
348348
.binaryTarget(
349349
name: "RABackendLlamaCPPBinary",
350350
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/RABackendLLAMACPP-v\(sdkVersion).zip",
351-
checksum: "8003da544b87e274ff11502c18ba8792788b898b727f45fcf9ec3671e985d52f"
351+
checksum: "314dddb242caf3d2d0b19c0f919c35187023c6c66cc861de741d071faddbf58b"
352352
),
353353
.binaryTarget(
354354
name: "RABackendONNXBinary",
355355
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/RABackendONNX-v\(sdkVersion).zip",
356-
checksum: "4fd5dec6ae375d75984c9a1312e440ce185818d8a537b32e92cf8c84d4f5e003"
356+
checksum: "809e2510da49f71f6d019e77bcc0a7e12e967f3b739ba0b9eea7adb77936edc0"
357357
),
358358
.binaryTarget(
359359
name: "ONNXRuntimeiOSBinary",

Playground/YapRun/YapRun.xcodeproj/project.pbxproj

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
54398FFC2F497A34009D6B51 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54398FFB2F497A34009D6B51 /* WidgetKit.framework */; };
1212
54398FFE2F497A34009D6B51 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54398FFD2F497A34009D6B51 /* SwiftUI.framework */; };
1313
5439900B2F497A35009D6B51 /* YapRunActivityExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 54398FF92F497A34009D6B51 /* YapRunActivityExtension.appex */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
14-
54BE95652F4C419600B9011C /* RunAnywhere in Frameworks */ = {isa = PBXBuildFile; productRef = 54BE95642F4C419600B9011C /* RunAnywhere */; };
15-
54BE95672F4C419600B9011C /* RunAnywhereONNX in Frameworks */ = {isa = PBXBuildFile; productRef = 54BE95662F4C419600B9011C /* RunAnywhereONNX */; };
16-
54BE95692F4C419600B9011C /* RunAnywhereWhisperKit in Frameworks */ = {isa = PBXBuildFile; productRef = 54BE95682F4C419600B9011C /* RunAnywhereWhisperKit */; };
14+
54C28D9A2F4CF59300A5AA98 /* RunAnywhere in Frameworks */ = {isa = PBXBuildFile; productRef = 54C28D992F4CF59300A5AA98 /* RunAnywhere */; };
15+
54C28D9C2F4CF59300A5AA98 /* RunAnywhereONNX in Frameworks */ = {isa = PBXBuildFile; productRef = 54C28D9B2F4CF59300A5AA98 /* RunAnywhereONNX */; };
16+
54C28D9E2F4CF59300A5AA98 /* RunAnywhereWhisperKit in Frameworks */ = {isa = PBXBuildFile; productRef = 54C28D9D2F4CF59300A5AA98 /* RunAnywhereWhisperKit */; };
1717
/* End PBXBuildFile section */
1818

1919
/* Begin PBXContainerItemProxy section */
@@ -139,9 +139,9 @@
139139
isa = PBXFrameworksBuildPhase;
140140
buildActionMask = 2147483647;
141141
files = (
142-
54BE95692F4C419600B9011C /* RunAnywhereWhisperKit in Frameworks */,
143-
54BE95672F4C419600B9011C /* RunAnywhereONNX in Frameworks */,
144-
54BE95652F4C419600B9011C /* RunAnywhere in Frameworks */,
142+
54C28D9E2F4CF59300A5AA98 /* RunAnywhereWhisperKit in Frameworks */,
143+
54C28D9C2F4CF59300A5AA98 /* RunAnywhereONNX in Frameworks */,
144+
54C28D9A2F4CF59300A5AA98 /* RunAnywhere in Frameworks */,
145145
);
146146
runOnlyForDeploymentPostprocessing = 0;
147147
};
@@ -237,9 +237,9 @@
237237
);
238238
name = YapRun;
239239
packageProductDependencies = (
240-
54BE95642F4C419600B9011C /* RunAnywhere */,
241-
54BE95662F4C419600B9011C /* RunAnywhereONNX */,
242-
54BE95682F4C419600B9011C /* RunAnywhereWhisperKit */,
240+
54C28D992F4CF59300A5AA98 /* RunAnywhere */,
241+
54C28D9B2F4CF59300A5AA98 /* RunAnywhereONNX */,
242+
54C28D9D2F4CF59300A5AA98 /* RunAnywhereWhisperKit */,
243243
);
244244
productName = YapRun;
245245
productReference = 54398FBA2F4979D2009D6B51 /* YapRun.app */;
@@ -374,7 +374,7 @@
374374
mainGroup = 54398FB12F4979D2009D6B51;
375375
minimizedProjectReferenceProxies = 1;
376376
packageReferences = (
377-
54BE95632F4C419600B9011C /* XCRemoteSwiftPackageReference "runanywhere-sdks" */,
377+
54C28D982F4CF59300A5AA98 /* XCRemoteSwiftPackageReference "runanywhere-sdks" */,
378378
);
379379
preferredProjectObjectVersion = 77;
380380
productRefGroup = 54398FBB2F4979D2009D6B51 /* Products */;
@@ -1011,7 +1011,7 @@
10111011
/* End XCConfigurationList section */
10121012

10131013
/* Begin XCRemoteSwiftPackageReference section */
1014-
54BE95632F4C419600B9011C /* XCRemoteSwiftPackageReference "runanywhere-sdks" */ = {
1014+
54C28D982F4CF59300A5AA98 /* XCRemoteSwiftPackageReference "runanywhere-sdks" */ = {
10151015
isa = XCRemoteSwiftPackageReference;
10161016
repositoryURL = "https://github.com/RunanywhereAI/runanywhere-sdks";
10171017
requirement = {
@@ -1022,19 +1022,19 @@
10221022
/* End XCRemoteSwiftPackageReference section */
10231023

10241024
/* Begin XCSwiftPackageProductDependency section */
1025-
54BE95642F4C419600B9011C /* RunAnywhere */ = {
1025+
54C28D992F4CF59300A5AA98 /* RunAnywhere */ = {
10261026
isa = XCSwiftPackageProductDependency;
1027-
package = 54BE95632F4C419600B9011C /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
1027+
package = 54C28D982F4CF59300A5AA98 /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
10281028
productName = RunAnywhere;
10291029
};
1030-
54BE95662F4C419600B9011C /* RunAnywhereONNX */ = {
1030+
54C28D9B2F4CF59300A5AA98 /* RunAnywhereONNX */ = {
10311031
isa = XCSwiftPackageProductDependency;
1032-
package = 54BE95632F4C419600B9011C /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
1032+
package = 54C28D982F4CF59300A5AA98 /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
10331033
productName = RunAnywhereONNX;
10341034
};
1035-
54BE95682F4C419600B9011C /* RunAnywhereWhisperKit */ = {
1035+
54C28D9D2F4CF59300A5AA98 /* RunAnywhereWhisperKit */ = {
10361036
isa = XCSwiftPackageProductDependency;
1037-
package = 54BE95632F4C419600B9011C /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
1037+
package = 54C28D982F4CF59300A5AA98 /* XCRemoteSwiftPackageReference "runanywhere-sdks" */;
10381038
productName = RunAnywhereWhisperKit;
10391039
};
10401040
/* End XCSwiftPackageProductDependency section */

Playground/YapRun/YapRun.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)