Skip to content

Commit

Permalink
pushing latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekinstnt committed Dec 10, 2024
1 parent 619c665 commit b897d9e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aries_framework_vcx/src/scripts/ios.build.cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

pushd ${UNIFFI_ROOT}
cargo build --target ${TARGET} --features "aries_vcx_anoncreds/zmq_vendored"

cp ${ARIES_VCX_ROOT}/target/${TARGET}/debug/libuniffi_vcx.a ${ABI_PATH}/libuniffi_vcx.a

popd
Expand All @@ -62,6 +63,10 @@

mv ${IOS_APP_DIR}/Source/aries_framework_vcxFFI.modulemap ${IOS_APP_DIR}/Source/module.modulemap

if [ -d "${ABI_PATH}/vcx.xcframework" ]; then
rm -R "${ABI_PATH}/vcx.xcframework"
fi

xcodebuild -create-xcframework -library ${ABI_PATH}/libuniffi_vcx.a -headers ${IOS_APP_DIR}/Source -output "${ABI_PATH}/vcx.xcframework"

cd ${ABI_PATH}
Expand All @@ -72,6 +77,11 @@

}

local_cleanup() {
export IOS_APP_DIR="${ARIES_VCX_ROOT}/aries_framework_vcx/ios"
rm -R ${ABI_PATH}/vcx.xcframework.zip
}

delete_existing_xcframework() {

export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries_framework_vcx"
Expand Down Expand Up @@ -163,4 +173,5 @@
upload_framework
else
echo "Running locally"
local_cleanup
fi

0 comments on commit b897d9e

Please sign in to comment.