add build error checking

This commit is contained in:
jess 2026-04-04 22:06:34 -07:00
parent 19a231d6d3
commit fe3a5d60d1
1 changed files with 10 additions and 0 deletions

View File

@ -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 ---