diff --git a/aptos-mobile/build-android.sh b/aptos-mobile/build-android.sh index 0dccc25..98216fc 100644 --- a/aptos-mobile/build-android.sh +++ b/aptos-mobile/build-android.sh @@ -19,4 +19,4 @@ cargo ndk -o ./android/src/main/jniLibs \ build --release # Create Kotlin bindings -cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example \ No newline at end of file +cargo run --bin uniffi_bindgen generate --library ../target/debug/libaptos_mobile.dylib --language kotlin --out-dir ./android/src/main/com/example \ No newline at end of file diff --git a/aptos-mobile/build-ios.sh b/aptos-mobile/build-ios.sh index f9115c8..e83458f 100644 --- a/aptos-mobile/build-ios.sh +++ b/aptos-mobile/build-ios.sh @@ -6,7 +6,7 @@ rm -rf ./ios cargo build # Generate bindings -cargo run --bin uniffi_bindgen generate --library ./target/debug/libaptos_mobile.dylib --language swift --out-dir ./bindings +cargo run --bin uniffi_bindgen generate --library ../target/debug/libaptos_mobile.dylib --language swift --out-dir ./bindings # Add the iOS targets and build for TARGET in \ @@ -31,8 +31,8 @@ mv ./bindings/aptos_mobile.swift ./ios/bindings/aptos_mobile.swift # Recreate XCFramework rm -rf "ios/Mobile.xcframework" xcodebuild -create-xcframework \ - -library ./target/aarch64-apple-ios-sim/release/libaptos_mobile.a -headers ./bindings \ - -library ./target/aarch64-apple-ios/release/libaptos_mobile.a -headers ./bindings \ + -library ../target/aarch64-apple-ios-sim/release/libaptos_mobile.a -headers ./bindings \ + -library ../target/aarch64-apple-ios/release/libaptos_mobile.a -headers ./bindings \ -output "ios/AptosWasmBindings.xcframework" # Cleanup