diff --git a/build.sh b/build.sh index 1de08fe..d5b5a3b 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,17 @@ SDK=$(xcrun --show-sdk-path) RUST_LIB="$ROOT/core/target/release" echo "Building Rust core (release)..." cd "$ROOT/core" && cargo build --release +if [ $? -ne 0 ]; then + echo "ERROR: Rust build failed" + exit 1 +fi cd "$ROOT" + +if [ ! -f "$RUST_LIB/libswiftly_core.a" ]; then + echo "ERROR: libswiftly_core.a not found at $RUST_LIB" + exit 1 +fi + RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core" # --- App icon from SVG ---