From dadff8df162f3c39b6189ef288cb3475666db3b2 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 29 Aug 2026 13:00:20 +0300 Subject: [PATCH] bindings/dotnet: rename iOS sync dylib to the public sdk kit name Every native target builds turso_sync_sdk_kit and then renames the output to the public libturso_sdk_kit name, but the two iOS targets skipped the rename while IOS_DYLIB_FILE pointed at the sync name. The publish workflow only uploads libturso_sdk_kit.*, so the sync dylib never left the iOS build jobs and XCFramework packaging died on a missing file. The iOS artifacts were not empty: they carried the libturso_sdk_kit.dylib that cargo builds incidentally for the dependency crate, which has no sync ABI symbols. Matching the other platforms makes the uploaded file the one that was actually built. --- bindings/dotnet/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/dotnet/Makefile b/bindings/dotnet/Makefile index 307af70f9..ef9c4b842 100644 --- a/bindings/dotnet/Makefile +++ b/bindings/dotnet/Makefile @@ -19,7 +19,7 @@ RUST_RELEASE_OPT ?= RUST_PROFILE_DIR ?= debug DOTNET_RELEASE_OPT ?= IOS_FRAMEWORK_NAME = libturso_sdk_kit -IOS_DYLIB_FILE = libturso_sync_sdk_kit.dylib +IOS_DYLIB_FILE = libturso_sdk_kit.dylib IOS_FRAMEWORK_BUILD_DIR = ./rs_compiled/ios-frameworks IOS_XCFRAMEWORK_DIR = ./rs_compiled/ios-universal/native/$(IOS_FRAMEWORK_NAME).xcframework @@ -78,9 +78,13 @@ build-rust-android: build-rust-androidarm64 build-rust-androidarm build-rust-and build-rust-iosarm64: cargo build -p turso_sync_sdk_kit --target-dir ./rs_compiled --target aarch64-apple-ios $(RUST_RELEASE_OPT) + cp ./rs_compiled/aarch64-apple-ios/$(RUST_PROFILE_DIR)/libturso_sync_sdk_kit.dylib ./rs_compiled/aarch64-apple-ios/$(RUST_PROFILE_DIR)/libturso_sdk_kit.dylib + cp ./rs_compiled/aarch64-apple-ios/$(RUST_PROFILE_DIR)/libturso_sync_sdk_kit.a ./rs_compiled/aarch64-apple-ios/$(RUST_PROFILE_DIR)/libturso_sdk_kit.a build-rust-iossimulatorarm64: cargo build -p turso_sync_sdk_kit --target-dir ./rs_compiled --target aarch64-apple-ios-sim $(RUST_RELEASE_OPT) + cp ./rs_compiled/aarch64-apple-ios-sim/$(RUST_PROFILE_DIR)/libturso_sync_sdk_kit.dylib ./rs_compiled/aarch64-apple-ios-sim/$(RUST_PROFILE_DIR)/libturso_sdk_kit.dylib + cp ./rs_compiled/aarch64-apple-ios-sim/$(RUST_PROFILE_DIR)/libturso_sync_sdk_kit.a ./rs_compiled/aarch64-apple-ios-sim/$(RUST_PROFILE_DIR)/libturso_sdk_kit.a build-rust-ios: build-rust-iosarm64 build-rust-iossimulatorarm64