File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
drop-core/uniffi/bindings/swift Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 4646 xcode-select --install 2>/dev/null || true
4747 xcode-select -p
4848
49- - name : Build Library (for binding generation)
50- working-directory : ./drop-core/uniffi
51- run : |
52- echo "Building debug library for Swift binding generation..."
53- cargo build --lib
54- echo "Verifying library was built..."
55- ls -lh target/debug/libarkdrop_uniffi.* || echo "Warning: Library not found"
56-
5749 - name : Generate Swift Bindings
5850 working-directory : ./drop-core/uniffi/bindings/swift
5951 run : |
Original file line number Diff line number Diff line change 66
77SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
88UNIFFI_DIR=" $( cd " $SCRIPT_DIR /../.." && pwd) "
9+ WORKSPACE_ROOT=" $( cd " $UNIFFI_DIR /../.." && pwd) "
910OUTPUT_DIR=" $SCRIPT_DIR "
1011
1112echo " Generating Swift bindings..."
13+ echo " Workspace root: $WORKSPACE_ROOT "
1214echo " UniFFI directory: $UNIFFI_DIR "
1315echo " Output directory: $OUTPUT_DIR "
1416
1517cd " $UNIFFI_DIR "
1618
1719echo " Building library for binding generation..."
18- cargo build --lib
20+ cargo build --lib --release
1921
20- LIBRARY_PATH=" $UNIFFI_DIR /target/debug /libarkdrop_uniffi.a"
22+ LIBRARY_PATH=" $WORKSPACE_ROOT /target/release /libarkdrop_uniffi.a"
2123if [ ! -f " $LIBRARY_PATH " ]; then
2224 echo " ERROR: Library not found at $LIBRARY_PATH "
25+ echo " Looking for library in target directory..."
26+ find " $WORKSPACE_ROOT /target" -name " libarkdrop_uniffi.*" || true
2327 exit 1
2428fi
2529
30+ echo " Using library: $LIBRARY_PATH "
31+
2632echo " Generating Swift sources..."
2733if ! cargo run --bin uniffi-bindgen-swift -- --swift-sources " $LIBRARY_PATH " " $OUTPUT_DIR " ; then
2834 echo " ERROR: Failed to generate Swift sources"
You can’t perform that action at this time.
0 commit comments