Skip to content

Commit

Permalink
chore: improve Swift build (#25)
Browse files Browse the repository at this point in the history
* chore: improve Swift build

* chore: fmt
  • Loading branch information
chris13524 authored Sep 19, 2024
1 parent 288328f commit f55f503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ffi/build-rust-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ lipo \
./../../target/universal-ios/debug/lib$PACKAGE_NAME.a

function create_package {
cargo install -f swift-bridge-cli
cargo install swift-bridge-cli
swift-bridge-cli create-package \
--bridges-dir ./generated \
--out-dir $SWIFT_PACKAGE_NAME \
Expand Down
1 change: 1 addition & 0 deletions crates/ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::path::PathBuf;

fn main() {
let out_dir = PathBuf::from("./generated");
println!("cargo:rerun-if-changed={}", out_dir.display());

let bridges = vec!["src/lib.rs"];
for path in &bridges {
Expand Down

0 comments on commit f55f503

Please sign in to comment.