Skip to content

Commit 7065e4f

Browse files
committed
fix: unique headers
1 parent 2fe7c27 commit 7065e4f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/build_macos.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ CFLAGS_x86_64_apple_darwin="-target x86_64-apple-darwin" \
4444
$cargo_build --target x86_64-apple-darwin --locked --release
4545

4646
# copies the generated header into the build folder structure for local XCFramework usage
47-
mkdir -p "${BUILD_FOLDER}/includes"
48-
cp "${SWIFT_FOLDER}/loroFFI.h" "${BUILD_FOLDER}/includes"
49-
cp "${SWIFT_FOLDER}/loroFFI.modulemap" "${BUILD_FOLDER}/includes/module.modulemap"
47+
mkdir -p "${BUILD_FOLDER}/includes/loroFFI"
48+
cp "${SWIFT_FOLDER}/loroFFI.h" "${BUILD_FOLDER}/includes/loroFFI"
49+
cp "${SWIFT_FOLDER}/loroFFI.modulemap" "${BUILD_FOLDER}/includes/loroFFI/module.modulemap"
5050
cp -f "${SWIFT_FOLDER}/loro.swift" "${THIS_SCRIPT_DIR}/../Sources/Loro/LoroFFI.swift"
5151

5252
echo "▸ Lipo (merge) x86 and arm macOS static libraries into a fat static binary"

scripts/build_swift_ffi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ $cargo_build --target wasm32-wasi --locked --release
9898
# cp "${SWIFT_FOLDER}/automergeFFI.modulemap" "${SWIFT_FOLDER}/../Sources/_CAutomergeUniffi/include/module.modulemap"
9999

100100
# copies the generated header into the build folder structure for local XCFramework usage
101-
mkdir -p "${BUILD_FOLDER}/includes"
102-
cp "${SWIFT_FOLDER}/loroFFI.h" "${BUILD_FOLDER}/includes"
103-
cp "${SWIFT_FOLDER}/loroFFI.modulemap" "${BUILD_FOLDER}/includes/module.modulemap"
101+
mkdir -p "${BUILD_FOLDER}/includes/loroFFI"
102+
cp "${SWIFT_FOLDER}/loroFFI.h" "${BUILD_FOLDER}/includes/loroFFI"
103+
cp "${SWIFT_FOLDER}/loroFFI.modulemap" "${BUILD_FOLDER}/includes/loroFFI/module.modulemap"
104104

105105
echo "▸ Lipo (merge) x86 and arm simulator static libraries into a fat static binary"
106106
mkdir -p "${BUILD_FOLDER}/ios-simulator/release"

0 commit comments

Comments
 (0)