diff --git a/bdk-swift/build-xcframework.sh b/bdk-swift/build-xcframework.sh index 0c4ab353..41b6e8b8 100755 --- a/bdk-swift/build-xcframework.sh +++ b/bdk-swift/build-xcframework.sh @@ -50,6 +50,7 @@ mv "${HEADERPATH_BITCOIN_FFI}" "${NEW_HEADER_DIR}" mv "${MODMAPPATH}" "${NEW_HEADER_DIR}/module.modulemap" echo -e "\n" >> "${NEW_HEADER_DIR}/module.modulemap" cat "${MODMAPPATH_BITCOIN_FFI}" >> "${NEW_HEADER_DIR}/module.modulemap" +rm "${MODMAPPATH_BITCOIN_FFI}" # remove old xcframework directory rm -rf "${OUTDIR}/${NAME}.xcframework"