Skip to content

Commit

Permalink
Generate ffi files only using aarch64-apple-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed May 22, 2024
1 parent d2ecf46 commit f7e06d0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions bindings/apple/build_crypto_xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,11 @@ if ! ${only_ios}; then
-output "${GENERATED_DIR}/simulator/libmatrix_sdk_crypto_ffi.a"
fi

if ${only_ios}; then
# Generate uniffi files
cd ../matrix-sdk-crypto-ffi && cargo run --bin matrix_sdk_crypto_ffi generate \
--language swift \
--library "${TARGET_DIR}/aarch64-apple-ios/${REL_TYPE_DIR}/libmatrix_sdk_crypto_ffi.a" \
--out-dir ${GENERATED_DIR}
else
# Generate uniffi files
cd ../matrix-sdk-crypto-ffi && cargo run --bin matrix_sdk_crypto_ffi generate \
--language swift \
--library "${TARGET_DIR}/aarch64-apple-ios-sim/${REL_TYPE_DIR}/libmatrix_sdk_crypto_ffi.a" \
--out-dir ${GENERATED_DIR}
fi
# Generate uniffi files
cd ../matrix-sdk-crypto-ffi && cargo run --bin matrix_sdk_crypto_ffi generate \
--language swift \
--library "${TARGET_DIR}/aarch64-apple-ios/${REL_TYPE_DIR}/libmatrix_sdk_crypto_ffi.a" \
--out-dir ${GENERATED_DIR}

# Move headers to the right place
HEADERS_DIR=${GENERATED_DIR}/headers
Expand Down

0 comments on commit f7e06d0

Please sign in to comment.